org.openregistry.core.web
Class RoleAction

java.lang.Object
  extended by org.openregistry.core.web.AbstractPersonServiceAction
      extended by org.openregistry.core.web.RoleAction

@Named(value="roleAction")
public final class RoleAction
extends AbstractPersonServiceAction

Created by IntelliJ IDEA. User: Nancy Mond Date: May 4, 2009 Time: 10:52:01 AM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from class org.openregistry.core.web.AbstractPersonServiceAction
logger, STATIC_SOR_NAME
 
Constructor Summary
RoleAction(PersonService personService, ReferenceRepository referenceRepository)
           
 
Method Summary
protected  SorRole addRole(SorPerson sorPerson, Type affiliationType)
          Add and initialize new role.
 boolean addSorRole(SorPerson sorPerson, SorRole sorRole, org.springframework.binding.message.MessageContext context)
           
 boolean expireRole(SorRole role, org.springframework.binding.message.MessageContext context)
           
 boolean isRoleNewForPerson(SorPerson sorPerson, Type affiliationType, org.springframework.binding.message.MessageContext context)
           
 boolean renewRole(SorRole role, org.springframework.binding.message.MessageContext context)
           
 boolean updateSorRole(SorPerson sorPerson, SorRole role, org.springframework.binding.message.MessageContext context)
           
 
Methods inherited from class org.openregistry.core.web.AbstractPersonServiceAction
convertAndReturnStatus, getPersonService, getSpringErrorValidationErrorConverter, setConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleAction

@Inject
public RoleAction(PersonService personService,
                         ReferenceRepository referenceRepository)
Method Detail

addRole

protected SorRole addRole(SorPerson sorPerson,
                          Type affiliationType)
Add and initialize new role.

Parameters:
sorPerson -
Returns:
sorRole

isRoleNewForPerson

public boolean isRoleNewForPerson(SorPerson sorPerson,
                                  Type affiliationType,
                                  org.springframework.binding.message.MessageContext context)

addSorRole

public boolean addSorRole(SorPerson sorPerson,
                          SorRole sorRole,
                          org.springframework.binding.message.MessageContext context)

updateSorRole

public boolean updateSorRole(SorPerson sorPerson,
                             SorRole role,
                             org.springframework.binding.message.MessageContext context)

expireRole

public boolean expireRole(SorRole role,
                          org.springframework.binding.message.MessageContext context)

renewRole

public boolean renewRole(SorRole role,
                         org.springframework.binding.message.MessageContext context)


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.