public class IdentityManagementPersonDocumentRule extends TransactionalDocumentRuleBase implements AddGroupRule, AddRoleRule, AddPersonDocumentRoleQualifierRule, AddPersonDelegationMemberRule
Modifier and Type | Field and Description |
---|---|
protected ActiveRoleMemberHelper |
activeRoleMemberHelper |
protected AddGroupRule |
addGroupRule |
protected Class<? extends AddGroupRule> |
addGroupRuleClass |
protected AddPersonDelegationMemberRule |
addPersonDelegationMemberRule |
protected Class<? extends AddPersonDelegationMemberRule> |
addPersonDelegationMemberRuleClass |
protected AddRoleRule |
addRoleRule |
protected Class<? extends AddRoleRule> |
addRoleRuleClass |
protected AttributeValidationHelper |
attributeValidationHelper |
protected IdentityManagementKimDocumentAuthorizer |
authorizer |
Constructor and Description |
---|
IdentityManagementPersonDocumentRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
canModifyEntity(String currentUserPrincipalId,
String toModifyPrincipalId) |
boolean |
canOverrideEntityPrivacyPreferences(String currentUserPrincipalId,
String toModifyPrincipalId) |
protected boolean |
checkAffiliationEithOneEMpInfo(List<PersonDocumentAffiliation> affiliations) |
protected boolean |
checkAffiliationTypeChange(List<PersonDocumentAffiliation> affiliations) |
protected boolean |
checkMultipleDefault(List<? extends PersonDocumentBoDefaultBase> boList,
String listName) |
protected boolean |
checkPrimaryEmploymentInfo(List<PersonDocumentAffiliation> affiliations) |
protected boolean |
checkUniqueAffiliationTypePerCampus(List<PersonDocumentAffiliation> affiliations) |
protected boolean |
doesPrincipalNameExist(String principalName,
String principalId) |
Set<String> |
findUniqueQualificationAttributes(PersonDocumentRole role,
List<KimAttributeField> attributeDefinitions)
Finds the set of unique qualification attributes for the given role
|
AddGroupRule |
getAddGroupRule() |
Class<? extends AddGroupRule> |
getAddGroupRuleClass() |
AddPersonDelegationMemberRule |
getAddPersonDelegationMemberRule() |
AddRoleRule |
getAddRoleRule() |
Class<? extends AddRoleRule> |
getAddRoleRuleClass() |
protected IdentityManagementKimDocumentAuthorizer |
getAuthorizer(IdentityManagementPersonDocument document) |
protected IdentityService |
getIdentityService() |
protected RoleService |
getRoleService() |
protected boolean |
isPersonAnEmployee(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,
Set<String> uniqueQualifierAttributes)
Determines if two seperate memberships have the same qualifications
|
void |
setAddGroupRuleClass(Class<? extends AddGroupRule> addGroupRuleClass)
Can be overridden by subclasses to indicate the rule class to use when adding groups.
|
void |
setAddRoleRuleClass(Class<? extends AddRoleRule> addRoleRuleClass)
Can be overridden by subclasses to indicate the rule class to use when adding roles.
|
protected boolean |
validActiveDatesForDelegations(List<RoleDocumentDelegationMember> delegationMembers) |
protected boolean |
validActiveDatesForGroup(List<PersonDocumentGroup> groups) |
protected boolean |
validActiveDatesForRole(List<PersonDocumentRole> roles) |
protected boolean |
validateActiveDate(String errorPath,
Timestamp activeFromDate,
Timestamp activeToDate) |
protected boolean |
validateAffiliationAndName(IdentityManagementPersonDocument personDoc) |
protected boolean |
validateDelegationMemberRoleQualifier(List<RoleDocumentDelegationMember> delegationMembers) |
protected boolean |
validateEntityInformation(boolean isCreatingNew,
IdentityManagementPersonDocument personDoc) |
protected boolean |
validateRoleQualifier(List<PersonDocumentRole> roles) |
protected boolean |
validateUniquePersonRoleQualifiersUniqueForMembership(PersonDocumentRole role,
KimDocumentRoleMember membershipToCheck,
int membershipToCheckIndex,
Set<String> uniqueQualifierAttributes,
int roleIndex,
List<RemotableAttributeError> 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(List<PersonDocumentAffiliation> affiliations) |
getDictionaryValidationService
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddCollectionLine, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddCollectionLineBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
protected AddGroupRule addGroupRule
protected AddRoleRule addRoleRule
protected AddPersonDelegationMemberRule addPersonDelegationMemberRule
protected IdentityManagementKimDocumentAuthorizer authorizer
protected Class<? extends AddGroupRule> addGroupRuleClass
protected Class<? extends AddRoleRule> addRoleRuleClass
protected Class<? extends AddPersonDelegationMemberRule> addPersonDelegationMemberRuleClass
protected ActiveRoleMemberHelper activeRoleMemberHelper
protected AttributeValidationHelper attributeValidationHelper
public IdentityManagementPersonDocumentRule()
protected boolean processCustomSaveDocumentBusinessRules(Document document)
DocumentRuleBase
processCustomSaveDocumentBusinessRules
in class DocumentRuleBase
protected boolean validateEntityInformation(boolean isCreatingNew, IdentityManagementPersonDocument personDoc)
protected boolean validDuplicatePrincipalName(IdentityManagementPersonDocument personDoc)
protected boolean processCustomRouteDocumentBusinessRules(Document document)
DocumentRuleBase
processCustomRouteDocumentBusinessRules
in class DocumentRuleBase
protected boolean checkMultipleDefault(List<? extends PersonDocumentBoDefaultBase> boList, String listName)
protected boolean checkPrimaryEmploymentInfo(List<PersonDocumentAffiliation> affiliations)
protected boolean checkAffiliationTypeChange(List<PersonDocumentAffiliation> affiliations)
protected boolean validEmployeeIDForAffiliation(List<PersonDocumentAffiliation> affiliations)
protected boolean isPersonAnEmployee(List<PersonDocumentAffiliation> affiliations)
protected boolean checkUniqueAffiliationTypePerCampus(List<PersonDocumentAffiliation> affiliations)
protected boolean checkAffiliationEithOneEMpInfo(List<PersonDocumentAffiliation> affiliations)
protected boolean validateAffiliationAndName(IdentityManagementPersonDocument personDoc)
protected boolean doesPrincipalNameExist(String principalName, String principalId)
protected boolean validateRoleQualifier(List<PersonDocumentRole> roles)
protected boolean validateUniquePersonRoleQualifiersUniqueForMembership(PersonDocumentRole role, KimDocumentRoleMember membershipToCheck, int membershipToCheckIndex, Set<String> uniqueQualifierAttributes, int roleIndex, List<RemotableAttributeError> validationErrors)
roleIndex
- the index of the role on the document (for error reporting purposes)membershipToCheckIndex
- the index of the person's membership in the role (for error reporting purposes)protected boolean sameMembershipQualifications(KimDocumentRoleMember membershipA, KimDocumentRoleMember membershipB, Set<String> uniqueQualifierAttributes)
membershipA
- the first membership to checkmembershipB
- the second membership to checkuniqueQualifierAttributes
- the set of qualifier attributes which need to be uniquepublic Set<String> findUniqueQualificationAttributes(PersonDocumentRole role, List<KimAttributeField> 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 uniqueprotected boolean validActiveDatesForRole(List<PersonDocumentRole> roles)
protected boolean validActiveDatesForGroup(List<PersonDocumentGroup> groups)
protected boolean validActiveDatesForDelegations(List<RoleDocumentDelegationMember> delegationMembers)
protected boolean validateActiveDate(String errorPath, Timestamp activeFromDate, 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
protected IdentityService getIdentityService()
protected RoleService getRoleService()
protected IdentityManagementKimDocumentAuthorizer getAuthorizer(IdentityManagementPersonDocument document)
public Class<? extends AddGroupRule> getAddGroupRuleClass()
public void setAddGroupRuleClass(Class<? extends AddGroupRule> addGroupRuleClass)
addGroupRuleClass
- the addGroupRuleClass to setpublic Class<? extends AddRoleRule> getAddRoleRuleClass()
public void setAddRoleRuleClass(Class<? extends AddRoleRule> addRoleRuleClass)
addRoleRuleClass
- the addRoleRuleClass to setpublic AddGroupRule getAddGroupRule()
public AddRoleRule getAddRoleRule()
public AddPersonDelegationMemberRule getAddPersonDelegationMemberRule()
public boolean processAddPersonDocumentRoleQualifier(IdentityManagementPersonDocument document, PersonDocumentRole role, KimDocumentRoleMember kimDocumentRoleMember, int selectedRoleIdx)
processAddPersonDocumentRoleQualifier
in interface AddPersonDocumentRoleQualifierRule
protected boolean validateDelegationMemberRoleQualifier(List<RoleDocumentDelegationMember> delegationMembers)
public boolean canModifyEntity(String currentUserPrincipalId, String toModifyPrincipalId)
public boolean canOverrideEntityPrivacyPreferences(String currentUserPrincipalId, String toModifyPrincipalId)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.