org.kuali.kfs.coa.document.authorization
Class OrganizationDocumentAuthorizer
java.lang.Object
org.kuali.rice.kns.authorization.BusinessObjectAuthorizerBase
org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase
org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase
org.kuali.kfs.sys.document.authorization.FinancialSystemMaintenanceDocumentAuthorizerBase
org.kuali.kfs.coa.document.authorization.OrganizationDocumentAuthorizer
- All Implemented Interfaces:
- org.kuali.rice.kns.authorization.BusinessObjectAuthorizer, org.kuali.rice.kns.authorization.InquiryOrMaintenanceDocumentAuthorizer, org.kuali.rice.kns.document.authorization.DocumentAuthorizer, org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizer
public class OrganizationDocumentAuthorizer
- extends FinancialSystemMaintenanceDocumentAuthorizerBase
Document Authorizer for the Organization document.
Field Summary |
protected static org.apache.log4j.Logger |
LOG
|
Fields inherited from class org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase |
maintenanceDocumentDictionaryService |
Fields inherited from class org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase |
EDIT_MODE_DEFAULT_TRUE_VALUE, PRE_ROUTING_ROUTE_NAME, USER_SESSION_METHOD_TO_CALL_COMPLETE_MARKER, USER_SESSION_METHOD_TO_CALL_COMPLETE_OBJECT_KEY, USER_SESSION_METHOD_TO_CALL_OBJECT_KEY |
Method Summary |
protected void |
addRoleQualification(org.kuali.rice.kns.bo.BusinessObject businessObject,
Map<String,String> attributes)
|
protected boolean |
checkPlantAttributes(org.kuali.rice.kns.document.Document document)
This checks to see if a user is authorized for plant fields modification. |
Set<String> |
getDocumentActions(org.kuali.rice.kns.document.Document document,
org.kuali.rice.kim.bo.Person user,
Set<String> documentActions)
|
protected boolean |
isPlantAuthorized(org.kuali.rice.kim.bo.Person user,
org.kuali.rice.kns.document.Document document)
This method tests whether the specified user is part of the group that grants authorization to the Plant fields. |
Methods inherited from class org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase |
addPermissionDetails, canCreate, canCreateOrMaintain, canMaintain, getMaintenanceDocumentDictionaryService, getSecurePotentiallyHiddenSectionIds, getSecurePotentiallyReadOnlySectionIds |
Methods inherited from class org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase |
addStandardAttributes, canAddNoteAttachment, canDeleteNoteAttachment, canEditDocumentOverview, canInitiate, canOpen, canReceiveAdHoc, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canTakeRequestedAction, canViewNoteAttachment, getRouteHeaderService, isDocumentInitiator |
Methods inherited from class org.kuali.rice.kns.authorization.BusinessObjectAuthorizerBase |
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, getDataDictionaryService, getIdentityManagementService, getKualiModuleService, getPermissionDetailValues, getPersonService, getRoleQualification, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate, permissionExistsByTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kns.document.authorization.DocumentAuthorizer |
canAddNoteAttachment, canDeleteNoteAttachment, canInitiate, canOpen, canReceiveAdHoc, canSendAdHocRequests, canViewNoteAttachment |
Methods inherited from interface org.kuali.rice.kns.authorization.BusinessObjectAuthorizer |
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate |
LOG
protected static org.apache.log4j.Logger LOG
OrganizationDocumentAuthorizer
public OrganizationDocumentAuthorizer()
getDocumentActions
public Set<String> getDocumentActions(org.kuali.rice.kns.document.Document document,
org.kuali.rice.kim.bo.Person user,
Set<String> documentActions)
- Specified by:
getDocumentActions
in interface org.kuali.rice.kns.document.authorization.DocumentAuthorizer
- Overrides:
getDocumentActions
in class org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase
checkPlantAttributes
protected boolean checkPlantAttributes(org.kuali.rice.kns.document.Document document)
- This checks to see if a user is authorized for plant fields modification. If not then it returns true (without activating
fields). If the org does not have to report to itself then it checks to see if the plant fields have been filled out
correctly and fails if they haven't
- Returns:
- false if user can edit plant fields but they have not been filled out correctly
isPlantAuthorized
protected boolean isPlantAuthorized(org.kuali.rice.kim.bo.Person user,
org.kuali.rice.kns.document.Document document)
- This method tests whether the specified user is part of the group that grants authorization to the Plant fields.
- Parameters:
user
- - the user to test, document to get plant fund account
- Returns:
- true if user is part of the group, false otherwise
addRoleQualification
protected void addRoleQualification(org.kuali.rice.kns.bo.BusinessObject businessObject,
Map<String,String> attributes)
- Overrides:
addRoleQualification
in class org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.