org.kuali.rice.kim.document.rule
Class IdentityManagementGroupDocumentRule

java.lang.Object
  extended by org.kuali.rice.krad.rules.DocumentRuleBase
      extended by org.kuali.rice.kns.rules.DocumentRuleBase
          extended by org.kuali.rice.kns.rules.TransactionalDocumentRuleBase
              extended by org.kuali.rice.kim.document.rule.IdentityManagementGroupDocumentRule
All Implemented Interfaces:
AddGroupMemberRule, AddAdHocRoutePersonRule, AddAdHocRouteWorkgroupRule, AddNoteRule, ApproveDocumentRule, BusinessRule, CompleteDocumentRule, RouteDocumentRule, SaveDocumentRule, SendAdHocRequestsRule

public class IdentityManagementGroupDocumentRule
extends TransactionalDocumentRuleBase
implements AddGroupMemberRule

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
protected  AddGroupMemberRule addGroupMemberRule
           
protected  Class<? extends GroupDocumentMemberRule> addGroupMemberRuleClass
           
protected  AttributeValidationHelper attributeValidationHelper
           
protected  BusinessObjectService businessObjectService
           
protected  IdentityService identityService
           
 
Constructor Summary
IdentityManagementGroupDocumentRule()
           
 
Method Summary
 AddGroupMemberRule getAddGroupMemberRule()
           
 BusinessObjectService getBusinessObjectService()
           
 IdentityService getIdentityService()
           
 boolean processAddGroupMember(AddGroupMemberEvent addGroupMemberEvent)
           
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 validAssignGroup(IdentityManagementGroupDocument document)
           
protected  boolean validateActiveDate(String errorPath, Timestamp activeFromDate, Timestamp activeToDate)
           
protected  boolean validateGroupQualifier(List<GroupDocumentQualifier> groupQualifiers, KimType kimType)
           
protected  boolean validDuplicateGroupName(IdentityManagementGroupDocument groupDoc)
           
protected  boolean validGroupMemberActiveDates(List<GroupDocumentMember> groupMembers)
           
protected  boolean validGroupMemberPrincipalIDs(List<GroupDocumentMember> groupMembers)
           
 
Methods inherited from class org.kuali.rice.kns.rules.DocumentRuleBase
getDictionaryValidationService
 
Methods inherited from class org.kuali.rice.krad.rules.DocumentRuleBase
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addGroupMemberRule

protected AddGroupMemberRule addGroupMemberRule

attributeValidationHelper

protected AttributeValidationHelper attributeValidationHelper

businessObjectService

protected BusinessObjectService businessObjectService

addGroupMemberRuleClass

protected Class<? extends GroupDocumentMemberRule> addGroupMemberRuleClass

identityService

protected IdentityService identityService
Constructor Detail

IdentityManagementGroupDocumentRule

public IdentityManagementGroupDocumentRule()
Method Detail

getIdentityService

public IdentityService getIdentityService()

processCustomSaveDocumentBusinessRules

protected boolean processCustomSaveDocumentBusinessRules(Document document)
Description copied from class: DocumentRuleBase
This method should be overridden by children rule classes as a hook to implement document specific business rule checks for the "save document" event.

Overrides:
processCustomSaveDocumentBusinessRules in class DocumentRuleBase
Returns:
boolean True if the rules checks passed, false otherwise.

validAssignGroup

protected boolean validAssignGroup(IdentityManagementGroupDocument document)

validDuplicateGroupName

protected boolean validDuplicateGroupName(IdentityManagementGroupDocument groupDoc)

validGroupMemberActiveDates

protected boolean validGroupMemberActiveDates(List<GroupDocumentMember> groupMembers)

validGroupMemberPrincipalIDs

protected boolean validGroupMemberPrincipalIDs(List<GroupDocumentMember> groupMembers)

validateGroupQualifier

protected boolean validateGroupQualifier(List<GroupDocumentQualifier> groupQualifiers,
                                         KimType kimType)

validateActiveDate

protected boolean validateActiveDate(String errorPath,
                                     Timestamp activeFromDate,
                                     Timestamp activeToDate)

getAddGroupMemberRule

public AddGroupMemberRule getAddGroupMemberRule()
Returns:
the addGroupMemberRule

processAddGroupMember

public boolean processAddGroupMember(AddGroupMemberEvent addGroupMemberEvent)
Specified by:
processAddGroupMember in interface AddGroupMemberRule

getBusinessObjectService

public BusinessObjectService getBusinessObjectService()
Returns:
the businessObjectService


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.