|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.rules.DocumentRuleBase org.kuali.rice.kns.rules.TransactionalDocumentRuleBase org.kuali.rice.kim.document.rule.IdentityManagementPersonDocumentRule
public class IdentityManagementPersonDocumentRule
This is a description of what this class does - shyu don't forget to fill this in.
Field Summary | |
---|---|
protected AddGroupRule |
addGroupRule
|
protected java.lang.Class<? extends AddGroupRule> |
addGroupRuleClass
|
protected AddPersonDelegationMemberRule |
addPersonDelegationMemberRule
|
protected java.lang.Class<? extends AddPersonDelegationMemberRule> |
addPersonDelegationMemberRuleClass
|
protected AddRoleRule |
addRoleRule
|
protected java.lang.Class<? extends AddRoleRule> |
addRoleRuleClass
|
protected AttributeValidationHelper |
attributeValidationHelper
|
protected IdentityManagementKimDocumentAuthorizer |
authorizer
|
protected BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kim.service.IdentityService |
identityService
|
protected org.kuali.rice.kim.service.RoleService |
roleService
|
protected UiDocumentService |
uiDocumentService
|
Constructor Summary | |
---|---|
IdentityManagementPersonDocumentRule()
|
Method Summary | |
---|---|
protected boolean |
checkAffiliationEithOneEMpInfo(java.util.List<PersonDocumentAffiliation> affiliations)
|
protected boolean |
checkAffiliationTypeChange(java.util.List<PersonDocumentAffiliation> affiliations)
|
protected boolean |
checkMultipleDefault(java.util.List<? extends PersonDocumentBoDefaultBase> boList,
java.lang.String listName)
|
protected boolean |
checkPrimaryEmploymentInfo(java.util.List<PersonDocumentAffiliation> affiliations)
|
protected boolean |
checkUnassignableRoles(IdentityManagementPersonDocument document)
|
protected boolean |
checkUniqueAffiliationTypePerCampus(java.util.List<PersonDocumentAffiliation> affiliations)
|
protected boolean |
checkUnpopulatableGroups(IdentityManagementPersonDocument document)
|
protected boolean |
doesPrincipalNameExist(java.lang.String principalName,
java.lang.String principalId)
|
java.util.Set<java.lang.String> |
findUniqueQualificationAttributes(PersonDocumentRole role,
AttributeDefinitionMap attributeDefinitions)
Finds the set of unique qualification attributes for the given role |
AddGroupRule |
getAddGroupRule()
|
java.lang.Class<? extends AddGroupRule> |
getAddGroupRuleClass()
|
AddPersonDelegationMemberRule |
getAddPersonDelegationMemberRule()
|
AddRoleRule |
getAddRoleRule()
|
java.lang.Class<? extends AddRoleRule> |
getAddRoleRuleClass()
|
IdentityManagementKimDocumentAuthorizer |
getAuthorizer(IdentityManagementPersonDocument document)
|
BusinessObjectService |
getBusinessObjectService()
|
org.kuali.rice.kim.service.IdentityService |
getIdentityService()
|
org.kuali.rice.kim.service.RoleService |
getRoleService()
|
UiDocumentService |
getUIDocumentService()
|
protected boolean |
isPersonAnEmployee(java.util.List<PersonDocumentAffiliation> affiliations)
|
boolean |
processAddGroup(AddGroupEvent addGroupEvent)
|
boolean |
processAddPersonDelegationMember(AddPersonDelegationMemberEvent addPersonDelegationMemberEvent)
|
boolean |
processAddPersonDocumentRoleQualifier(IdentityManagementPersonDocument document,
PersonDocumentRole role,
KimDocumentRoleMember kimDocumentRoleMember,
int selectedRoleIdx)
|
boolean |
processAddRole(AddRoleEvent addRoleEvent)
|
protected boolean |
processCustomRouteDocumentBusinessRules(Document document)
This method should be overridden by children rule classes as a hook to implement document specific business rule checks for the "route document" event. |
protected boolean |
processCustomSaveDocumentBusinessRules(Document document)
This method should be overridden by children rule classes as a hook to implement document specific business rule checks for the "save document" event. |
protected boolean |
sameMembershipQualifications(KimDocumentRoleMember membershipA,
KimDocumentRoleMember membershipB,
java.util.Set<java.lang.String> uniqueQualifierAttributes)
Determines if two seperate memberships have the same qualifications |
void |
setAddGroupRuleClass(java.lang.Class<? extends AddGroupRule> addGroupRuleClass)
Can be overridden by subclasses to indicate the rule class to use when adding groups. |
void |
setAddRoleRuleClass(java.lang.Class<? extends AddRoleRule> addRoleRuleClass)
Can be overridden by subclasses to indicate the rule class to use when adding roles. |
protected boolean |
validActiveDatesForDelegations(java.util.List<RoleDocumentDelegationMember> delegationMembers)
|
protected boolean |
validActiveDatesForGroup(java.util.List<PersonDocumentGroup> groups)
|
protected boolean |
validActiveDatesForRole(java.util.List<PersonDocumentRole> roles)
|
protected boolean |
validateActiveDate(java.lang.String errorPath,
java.sql.Timestamp activeFromDate,
java.sql.Timestamp activeToDate)
|
protected boolean |
validateAffiliationAndName(IdentityManagementPersonDocument personDoc)
|
protected boolean |
validateDelegationMemberRoleQualifier(java.util.List<RoleDocumentDelegationMember> delegationMembers)
|
protected boolean |
validateEntityInformation(boolean isCreatingNew,
IdentityManagementPersonDocument personDoc)
|
protected boolean |
validateRoleQualifier(java.util.List<PersonDocumentRole> roles)
|
protected boolean |
validateUniquePersonRoleQualifiersUniqueForMembership(PersonDocumentRole role,
KimDocumentRoleMember membershipToCheck,
int membershipToCheckIndex,
java.util.Set<java.lang.String> uniqueQualifierAttributes,
int roleIndex,
org.kuali.rice.kim.bo.types.dto.AttributeSet validationErrors)
Checks all the qualifiers for the given membership, so that all qualifiers which should be unique are guaranteed to be unique |
protected boolean |
validDuplicatePrincipalName(IdentityManagementPersonDocument personDoc)
|
protected boolean |
validEmployeeIDForAffiliation(java.util.List<PersonDocumentAffiliation> affiliations)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AddGroupRule addGroupRule
protected AddRoleRule addRoleRule
protected AddPersonDelegationMemberRule addPersonDelegationMemberRule
protected IdentityManagementKimDocumentAuthorizer authorizer
protected BusinessObjectService businessObjectService
protected org.kuali.rice.kim.service.IdentityService identityService
protected org.kuali.rice.kim.service.RoleService roleService
protected UiDocumentService uiDocumentService
protected java.lang.Class<? extends AddGroupRule> addGroupRuleClass
protected java.lang.Class<? extends AddRoleRule> addRoleRuleClass
protected java.lang.Class<? extends AddPersonDelegationMemberRule> addPersonDelegationMemberRuleClass
protected AttributeValidationHelper attributeValidationHelper
Constructor Detail |
---|
public IdentityManagementPersonDocumentRule()
Method Detail |
---|
protected boolean processCustomSaveDocumentBusinessRules(Document document)
DocumentRuleBase
processCustomSaveDocumentBusinessRules
in class DocumentRuleBase
protected boolean validateEntityInformation(boolean isCreatingNew, IdentityManagementPersonDocument personDoc)
protected boolean validDuplicatePrincipalName(IdentityManagementPersonDocument personDoc)
protected boolean checkUnassignableRoles(IdentityManagementPersonDocument document)
protected boolean checkUnpopulatableGroups(IdentityManagementPersonDocument document)
protected boolean processCustomRouteDocumentBusinessRules(Document document)
DocumentRuleBase
processCustomRouteDocumentBusinessRules
in class DocumentRuleBase
protected boolean checkMultipleDefault(java.util.List<? extends PersonDocumentBoDefaultBase> boList, java.lang.String listName)
protected boolean checkPrimaryEmploymentInfo(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean checkAffiliationTypeChange(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean validEmployeeIDForAffiliation(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean isPersonAnEmployee(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean checkUniqueAffiliationTypePerCampus(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean checkAffiliationEithOneEMpInfo(java.util.List<PersonDocumentAffiliation> affiliations)
protected boolean validateAffiliationAndName(IdentityManagementPersonDocument personDoc)
protected boolean doesPrincipalNameExist(java.lang.String principalName, java.lang.String principalId)
protected boolean validateRoleQualifier(java.util.List<PersonDocumentRole> roles)
protected boolean validateUniquePersonRoleQualifiersUniqueForMembership(PersonDocumentRole role, KimDocumentRoleMember membershipToCheck, int membershipToCheckIndex, java.util.Set<java.lang.String> uniqueQualifierAttributes, int roleIndex, org.kuali.rice.kim.bo.types.dto.AttributeSet validationErrors)
membership
- the membership to checkattributeDefinitions
- the Map of attribute definitions used by the roleroleIndex
- the index of the role on the document (for error reporting purposes)memberIndex
- the index of the person's membership in the role (for error reporting purposes)
protected boolean sameMembershipQualifications(KimDocumentRoleMember membershipA, KimDocumentRoleMember membershipB, java.util.Set<java.lang.String> uniqueQualifierAttributes)
membershipA
- the first membership to checkmembershipB
- the second membership to checkuniqueQualifierAttributes
- the set of qualifier attributes which need to be unique
public java.util.Set<java.lang.String> findUniqueQualificationAttributes(PersonDocumentRole role, AttributeDefinitionMap attributeDefinitions)
role
- the role associated with this personattributeDefinitions
- the Map of attribute definitions where we can find out if a KimAttribute is supposed to be unique
protected boolean validActiveDatesForRole(java.util.List<PersonDocumentRole> roles)
protected boolean validActiveDatesForGroup(java.util.List<PersonDocumentGroup> groups)
protected boolean validActiveDatesForDelegations(java.util.List<RoleDocumentDelegationMember> delegationMembers)
protected boolean validateActiveDate(java.lang.String errorPath, java.sql.Timestamp activeFromDate, java.sql.Timestamp activeToDate)
public boolean processAddGroup(AddGroupEvent addGroupEvent)
processAddGroup
in interface AddGroupRule
public boolean processAddRole(AddRoleEvent addRoleEvent)
processAddRole
in interface AddRoleRule
public boolean processAddPersonDelegationMember(AddPersonDelegationMemberEvent addPersonDelegationMemberEvent)
processAddPersonDelegationMember
in interface AddPersonDelegationMemberRule
public org.kuali.rice.kim.service.IdentityService getIdentityService()
public org.kuali.rice.kim.service.RoleService getRoleService()
public UiDocumentService getUIDocumentService()
public IdentityManagementKimDocumentAuthorizer getAuthorizer(IdentityManagementPersonDocument document)
public java.lang.Class<? extends AddGroupRule> getAddGroupRuleClass()
public void setAddGroupRuleClass(java.lang.Class<? extends AddGroupRule> addGroupRuleClass)
addGroupRuleClass
- the addGroupRuleClass to setpublic java.lang.Class<? extends AddRoleRule> getAddRoleRuleClass()
public void setAddRoleRuleClass(java.lang.Class<? extends AddRoleRule> addRoleRuleClass)
addRoleRuleClass
- the addRoleRuleClass to setpublic AddGroupRule getAddGroupRule()
public AddRoleRule getAddRoleRule()
public AddPersonDelegationMemberRule getAddPersonDelegationMemberRule()
public BusinessObjectService getBusinessObjectService()
public boolean processAddPersonDocumentRoleQualifier(IdentityManagementPersonDocument document, PersonDocumentRole role, KimDocumentRoleMember kimDocumentRoleMember, int selectedRoleIdx)
processAddPersonDocumentRoleQualifier
in interface AddPersonDocumentRoleQualifierRule
protected boolean validateDelegationMemberRoleQualifier(java.util.List<RoleDocumentDelegationMember> delegationMembers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |