org.kuali.rice.kim.document
Class IdentityManagementRoleDocument

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.document.DocumentBase
              extended by org.kuali.rice.kns.document.TransactionalDocumentBase
                  extended by org.kuali.rice.kim.document.IdentityManagementKimDocument
                      extended by org.kuali.rice.kim.document.IdentityManagementTypeAttributeTransactionalDocument
                          extended by org.kuali.rice.kim.document.IdentityManagementRoleDocument
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, PersistableBusinessObject, Document, SessionDocument, TransactionalDocument

public class IdentityManagementRoleDocument
extends IdentityManagementTypeAttributeTransactionalDocument

This is a description of what this class does - bhargavp don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  boolean editing
           
protected  List<KimDocumentRoleMember> members
           
protected  List<KimDocumentRolePermission> permissions
           
protected  List<KimDocumentRoleResponsibility> responsibilities
           
protected  String roleDescription
           
protected  String roleId
           
protected  String roleName
           
protected  String roleNamespace
           
protected  String roleTypeId
           
protected  String roleTypeName
           
 
Fields inherited from class org.kuali.rice.kim.document.IdentityManagementTypeAttributeTransactionalDocument
attributeEntry, attributes, definitions, kimType, kimTypeService
 
Fields inherited from class org.kuali.rice.kim.document.IdentityManagementKimDocument
LOG, sequenceAccessorService
 
Fields inherited from class org.kuali.rice.kns.document.DocumentBase
documentBusinessObject, documentHeader, documentNumber
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
IdentityManagementRoleDocument()
           
 
Method Summary
 void addDelegationMember(RoleDocumentDelegationMember newDelegationMember)
           
 void addMember(KimDocumentRoleMember member)
           
 void addResponsibility(KimDocumentRoleResponsibility roleResponsibility)
           
 void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
          Handle the doRouteStatusChange event from the post processor
 RoleDocumentDelegationMember getBlankDelegationMember()
           
 KimDocumentRoleMember getBlankMember()
           
 List<RoleDocumentDelegationMember> getDelegationMembers()
           
 List<RoleDocumentDelegation> getDelegations()
           
 KimDocumentRoleMember getMember(String roleMemberId)
           
 List<KimDocumentRoleMember> getMembers()
           
protected  KimDocumentRoleResponsibilityAction getNewRespAction(KimDocumentRoleResponsibility roleResponsibility)
           
 List<KimDocumentRolePermission> getPermissions()
           
 List<KimDocumentRoleResponsibility> getResponsibilities()
           
 org.kuali.rice.kim.service.ResponsibilityService getResponsibilityService()
           
 String getRoleDescription()
           
 String getRoleId()
           
 String getRoleName()
           
 String getRoleNamespace()
           
 String getRoleTypeId()
           
 String getRoleTypeName()
           
 void initializeDocumentForNewRole()
           
 boolean isActive()
           
 boolean isEditing()
           
 void prepareForSave()
          This method provides a hook that will be called before the document is saved.
 void setActive(boolean active)
           
protected  void setAttrDefnIdForDelMemberQualifier(RoleDocumentDelegationMemberQualifier qualifier, AttributeDefinition definition)
           
 void setDelegationMembers(List<RoleDocumentDelegationMember> delegationMembers)
           
 void setDelegations(List<RoleDocumentDelegation> delegations)
           
 void setEditing(boolean editing)
           
 void setKimType(KimTypeInfo kimType)
           
 void setMembers(List<KimDocumentRoleMember> members)
           
 void setPermissions(List<KimDocumentRolePermission> permissions)
           
 void setResponsibilities(List<KimDocumentRoleResponsibility> responsibilities)
           
 void setRoleDescription(String roleDescription)
           
 void setRoleId(String roleId)
           
 void setRoleName(String roleName)
           
 void setRoleNamespace(String roleNamespace)
           
 void setRoleTypeId(String roleTypeId)
           
 void setRoleTypeName(String roleTypeName)
           
 void setupMemberRspActions(KimDocumentRoleMember member)
           
 void setupMemberRspActions(KimDocumentRoleResponsibility roleResp, KimDocumentRoleMember member)
           
 void updateMembers(IdentityManagementRoleDocumentForm roleDocumentForm)
           
 void updateMembers(KimDocumentRoleResponsibility newResponsibility)
           
 
Methods inherited from class org.kuali.rice.kim.document.IdentityManagementTypeAttributeTransactionalDocument
getAttributeEntry, getAttributes, getCommaDelimitedAttributesLabels, getDefinitions, getDefinitionsKeyedByAttributeName, getKimType, getKimTypeService, getSequenceAccessorService, setAttributes, setDefinitions
 
Methods inherited from class org.kuali.rice.kim.document.IdentityManagementKimDocument
addDelegationMemberToDelegation, getDelegationId, getKimAttributeDefnId, getPrimaryDelegation, getSecondaryDelegation
 
Methods inherited from class org.kuali.rice.kns.document.TransactionalDocumentBase
getAllowsCopy, isSessionDocument
 
Methods inherited from class org.kuali.rice.kns.document.DocumentBase
addCopyErrorDocumentNote, addPessimisticLock, afterLookup, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, doRouteLevelChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postProcessSave, prepareForSave, processAfterRetrieve, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNewDocumentHeader, setPessimisticLocks, toCopy, toString, toStringBuilder, toStringMapper, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.document.Document
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject
addNote, buildListOfDeletionAwareLists, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow, refresh
 
Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate
 

Field Detail

roleId

protected String roleId

roleTypeId

protected String roleTypeId

roleTypeName

protected String roleTypeName

roleNamespace

protected String roleNamespace

roleName

protected String roleName

roleDescription

protected String roleDescription

active

protected boolean active

editing

protected boolean editing

permissions

protected List<KimDocumentRolePermission> permissions

responsibilities

protected List<KimDocumentRoleResponsibility> responsibilities

members

protected List<KimDocumentRoleMember> members
Constructor Detail

IdentityManagementRoleDocument

public IdentityManagementRoleDocument()
Method Detail

isActive

public boolean isActive()
Returns:
the active

setActive

public void setActive(boolean active)
Parameters:
active - the active to set

setRoleId

public void setRoleId(String roleId)
Parameters:
roleId - the roleId to set

getRoleName

public String getRoleName()
Returns:
the roleName

setRoleName

public void setRoleName(String roleName)
Parameters:
roleName - the roleName to set

getRoleDescription

public String getRoleDescription()
Returns:
the roleDescription

setRoleDescription

public void setRoleDescription(String roleDescription)
Parameters:
roleDescription - the roleDescription to set

getRoleNamespace

public String getRoleNamespace()
Returns:
the roleNamespace

setRoleNamespace

public void setRoleNamespace(String roleNamespace)
Parameters:
roleNamespace - the roleNamespace to set

getRoleTypeId

public String getRoleTypeId()
Returns:
the roleTypeId

setRoleTypeId

public void setRoleTypeId(String roleTypeId)
Parameters:
roleTypeId - the roleTypeId to set

getRoleTypeName

public String getRoleTypeName()
Returns:
the roleTypeName

setRoleTypeName

public void setRoleTypeName(String roleTypeName)
Parameters:
roleTypeName - the roleTypeName to set

getDelegationMembers

public List<RoleDocumentDelegationMember> getDelegationMembers()
Overrides:
getDelegationMembers in class IdentityManagementKimDocument
Returns:
the delegationMembers

setDelegationMembers

public void setDelegationMembers(List<RoleDocumentDelegationMember> delegationMembers)
Overrides:
setDelegationMembers in class IdentityManagementKimDocument
Parameters:
delegationMembers - the delegationMembers to set

getPermissions

public List<KimDocumentRolePermission> getPermissions()
Returns:
the permissions

setPermissions

public void setPermissions(List<KimDocumentRolePermission> permissions)
Parameters:
permissions - the permissions to set

getResponsibilities

public List<KimDocumentRoleResponsibility> getResponsibilities()
Returns:
the responsibilities

setResponsibilities

public void setResponsibilities(List<KimDocumentRoleResponsibility> responsibilities)
Parameters:
responsibilities - the responsibilities to set

getMembers

public List<KimDocumentRoleMember> getMembers()
Returns:
the members

getMember

public KimDocumentRoleMember getMember(String roleMemberId)
Returns:
the members

setMembers

public void setMembers(List<KimDocumentRoleMember> members)
Parameters:
members - the members to set

addResponsibility

public void addResponsibility(KimDocumentRoleResponsibility roleResponsibility)

getNewRespAction

protected KimDocumentRoleResponsibilityAction getNewRespAction(KimDocumentRoleResponsibility roleResponsibility)

addDelegationMember

public void addDelegationMember(RoleDocumentDelegationMember newDelegationMember)

addMember

public void addMember(KimDocumentRoleMember member)
Parameters:
members - the members to set

getBlankMember

public KimDocumentRoleMember getBlankMember()
Parameters:
members - the members to set

getBlankDelegationMember

public RoleDocumentDelegationMember getBlankDelegationMember()
Parameters:
members - the members to set

setupMemberRspActions

public void setupMemberRspActions(KimDocumentRoleMember member)

updateMembers

public void updateMembers(IdentityManagementRoleDocumentForm roleDocumentForm)

updateMembers

public void updateMembers(KimDocumentRoleResponsibility newResponsibility)

setupMemberRspActions

public void setupMemberRspActions(KimDocumentRoleResponsibility roleResp,
                                  KimDocumentRoleMember member)

setAttrDefnIdForDelMemberQualifier

protected void setAttrDefnIdForDelMemberQualifier(RoleDocumentDelegationMemberQualifier qualifier,
                                                  AttributeDefinition definition)

doRouteStatusChange

public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
Description copied from interface: Document
Handle the doRouteStatusChange event from the post processor

Specified by:
doRouteStatusChange in interface Document
Overrides:
doRouteStatusChange in class DocumentBase
See Also:
DocumentBase.doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO)

initializeDocumentForNewRole

public void initializeDocumentForNewRole()

getRoleId

public String getRoleId()

prepareForSave

public void prepareForSave()
Description copied from interface: Document
This method provides a hook that will be called before the document is saved. This method is useful for applying document level data to children. For example, if someone changes data at the document level, and that data needs to be propagated to child objects or child lists of objects, you can use this method to update the child object or iterate through the list of child objects and apply the document level data to them. Any document that follows this paradigm will need to make use of this method to apply all of those changes.

Specified by:
prepareForSave in interface Document
Overrides:
prepareForSave in class DocumentBase
See Also:
Document.prepareForSave()

getResponsibilityService

public org.kuali.rice.kim.service.ResponsibilityService getResponsibilityService()

isEditing

public boolean isEditing()
Returns:
the editing

setEditing

public void setEditing(boolean editing)
Parameters:
editing - the editing to set

getDelegations

public List<RoleDocumentDelegation> getDelegations()
Overrides:
getDelegations in class IdentityManagementKimDocument
Returns:
the delegations

setDelegations

public void setDelegations(List<RoleDocumentDelegation> delegations)
Overrides:
setDelegations in class IdentityManagementKimDocument
Parameters:
delegations - the delegations to set

setKimType

public void setKimType(KimTypeInfo kimType)
Overrides:
setKimType in class IdentityManagementTypeAttributeTransactionalDocument
Parameters:
kimType - the kimType to set


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.