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

java.lang.Object
  extended by org.kuali.rice.krad.rules.DocumentRuleBase
      extended by org.kuali.rice.krad.rules.TransactionalDocumentRuleBase
          extended by org.kuali.rice.kim.document.rule.IdentityManagementGroupDocumentRule
All Implemented Interfaces:
AddGroupMemberRule, AddAdHocRoutePersonRule, AddAdHocRouteWorkgroupRule, AddNoteRule, ApproveDocumentRule, BusinessRule, 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)
           
 
Methods inherited from class org.kuali.rice.krad.rules.DocumentRuleBase
getDataDictionaryService, getDictionaryValidationService, getDocumentHelperService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomRouteDocumentBusinessRules, 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

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)

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-2011 The Kuali Foundation. All Rights Reserved.