|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.rules.DocumentRuleBase org.kuali.rice.krad.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 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
|
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kim.api.services.IdentityService |
identityService
|
protected org.kuali.rice.kim.api.role.RoleService |
roleService
|
protected UiDocumentService |
uiDocumentService
|
Constructor Summary | |
---|---|
IdentityManagementPersonDocumentRule()
|
Method Summary | |
---|---|
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 |
checkUnassignableRoles(IdentityManagementPersonDocument document)
|
protected boolean |
checkUniqueAffiliationTypePerCampus(List<PersonDocumentAffiliation> affiliations)
|
protected boolean |
checkUnpopulatableGroups(IdentityManagementPersonDocument document)
|
protected boolean |
doesPrincipalNameExist(String principalName,
String principalId)
|
Set<String> |
findUniqueQualificationAttributes(PersonDocumentRole role,
org.kuali.rice.kim.bo.types.dto.AttributeDefinitionMap 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()
|
IdentityManagementKimDocumentAuthorizer |
getAuthorizer(IdentityManagementPersonDocument document)
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
|
org.kuali.rice.kim.api.services.IdentityService |
getIdentityService()
|
org.kuali.rice.kim.api.role.RoleService |
getRoleService()
|
UiDocumentService |
getUIDocumentService()
|
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(org.kuali.rice.krad.document.Document document)
|
protected boolean |
processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
|
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,
Map<String,String> 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)
|
Methods inherited from class org.kuali.rice.krad.rules.DocumentRuleBase |
---|
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, getWorkflowInfoService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setMaxDictionaryValidationDepth, validateSensitiveDataValue |
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 org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kim.api.services.IdentityService identityService
protected org.kuali.rice.kim.api.role.RoleService roleService
protected UiDocumentService uiDocumentService
protected Class<? extends AddGroupRule> addGroupRuleClass
protected Class<? extends AddRoleRule> addRoleRuleClass
protected Class<? extends AddPersonDelegationMemberRule> addPersonDelegationMemberRuleClass
protected AttributeValidationHelper attributeValidationHelper
Constructor Detail |
---|
public IdentityManagementPersonDocumentRule()
Method Detail |
---|
protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
processCustomSaveDocumentBusinessRules
in class org.kuali.rice.krad.rules.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(org.kuali.rice.krad.document.Document document)
processCustomRouteDocumentBusinessRules
in class org.kuali.rice.krad.rules.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, Map<String,String> 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, Set<String> uniqueQualifierAttributes)
membershipA
- the first membership to checkmembershipB
- the second membership to checkuniqueQualifierAttributes
- the set of qualifier attributes which need to be unique
public Set<String> findUniqueQualificationAttributes(PersonDocumentRole role, org.kuali.rice.kim.bo.types.dto.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(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
public org.kuali.rice.kim.api.services.IdentityService getIdentityService()
public org.kuali.rice.kim.api.role.RoleService getRoleService()
public UiDocumentService getUIDocumentService()
public 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 org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public boolean processAddPersonDocumentRoleQualifier(IdentityManagementPersonDocument document, PersonDocumentRole role, KimDocumentRoleMember kimDocumentRoleMember, int selectedRoleIdx)
processAddPersonDocumentRoleQualifier
in interface AddPersonDocumentRoleQualifierRule
protected boolean validateDelegationMemberRoleQualifier(List<RoleDocumentDelegationMember> delegationMembers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |