org.kuali.rice.kns.document.authorization
Class MaintenanceDocumentAuthorizerBase

java.lang.Object
  extended by org.kuali.rice.krad.bo.DataObjectAuthorizerBase
      extended by org.kuali.rice.kns.bo.authorization.BusinessObjectAuthorizerBase
          extended by org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase
              extended by org.kuali.rice.kns.document.authorization.MaintenanceDocumentAuthorizerBase
All Implemented Interfaces:
Serializable, BusinessObjectAuthorizer, InquiryOrMaintenanceDocumentAuthorizer, DataObjectAuthorizer, DocumentAuthorizer, MaintenanceDocumentAuthorizer

public class MaintenanceDocumentAuthorizerBase
extends DocumentAuthorizerBase
implements MaintenanceDocumentAuthorizer

See Also:
Serialized Form

Field Summary
protected static DocumentDictionaryService documentDictionaryService
           
 
Fields inherited from class org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase
EDIT_MODE_DEFAULT_TRUE_VALUE, LOG, 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
 
Constructor Summary
MaintenanceDocumentAuthorizerBase()
           
 
Method Summary
protected  void addPermissionDetails(Object dataObject, Map<String,String> attributes)
          Override this method to populate the permission details from the primary data object or document.
protected  void addRoleQualification(Object dataObject, Map<String,String> attributes)
          Override this method to populate the role qualifier attributes from the primary data object or document.
 boolean canCreate(Class boClass, Person user)
          Determines whether the user has the permission to create a new MaintenanceDocument
 boolean canCreateOrMaintain(MaintenanceDocument maintenanceDocument, Person user)
          Determines whether the user has the permission to create or maintain a MaintenanceDocument
 boolean canMaintain(Object dataObject, Person user)
          Determines whether the user has the permission to maintain a MaintenanceDocument
protected static DocumentDictionaryService getDocumentDictionaryService()
           
 Set<String> getSecurePotentiallyHiddenSectionIds()
           
 Set<String> getSecurePotentiallyReadOnlySectionIds()
           
 
Methods inherited from class org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase
addStandardAttributes, canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canBlanketApprove, canCancel, canClose, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canRoute, canSave, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canTakeRequestedAction, canViewNoteAttachment, canViewNoteAttachment, getDocumentActions, isDocumentInitiator
 
Methods inherited from class org.kuali.rice.kns.bo.authorization.BusinessObjectAuthorizerBase
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, getDataDictionaryService, getKualiModuleService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate
 
Methods inherited from class org.kuali.rice.krad.bo.DataObjectAuthorizerBase
getPermissionDetailValues, getPermissionService, getPersonService, 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.authorization.BusinessObjectAuthorizer
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
 
Methods inherited from interface org.kuali.rice.krad.document.DocumentAuthorizer
canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canBlanketApprove, canCancel, canClose, canCopy, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canRoute, canSave, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canTakeRequestedAction, canViewNoteAttachment
 
Methods inherited from interface org.kuali.rice.krad.bo.DataObjectAuthorizer
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
 

Field Detail

documentDictionaryService

protected static transient DocumentDictionaryService documentDictionaryService
Constructor Detail

MaintenanceDocumentAuthorizerBase

public MaintenanceDocumentAuthorizerBase()
Method Detail

canCreate

public final boolean canCreate(Class boClass,
                               Person user)
Description copied from interface: MaintenanceDocumentAuthorizer
Determines whether the user has the permission to create a new MaintenanceDocument

Specified by:
canCreate in interface MaintenanceDocumentAuthorizer
Parameters:
boClass - Class of the MaintenanceDocument
user - Person instance of the current user
Returns:
true if the user is allowed to create a new MaintenanceDocument for the boClass, false otherwise

canMaintain

public final boolean canMaintain(Object dataObject,
                                 Person user)
Description copied from interface: MaintenanceDocumentAuthorizer
Determines whether the user has the permission to maintain a MaintenanceDocument

Specified by:
canMaintain in interface MaintenanceDocumentAuthorizer
Parameters:
dataObject - Object of the MaintenanceDocument
user - Person instance of the current user
Returns:
true if the user is allowed to maintain the dataObject, false otherwise

canCreateOrMaintain

public final boolean canCreateOrMaintain(MaintenanceDocument maintenanceDocument,
                                         Person user)
Description copied from interface: MaintenanceDocumentAuthorizer
Determines whether the user has the permission to create or maintain a MaintenanceDocument

Specified by:
canCreateOrMaintain in interface MaintenanceDocumentAuthorizer
Parameters:
maintenanceDocument - the MaintenanceDocument
user - Person instance of the current user
Returns:
true if the user is allowed to create or maintain the MaintenanceDocument, false otherwise

getSecurePotentiallyHiddenSectionIds

public Set<String> getSecurePotentiallyHiddenSectionIds()
Specified by:
getSecurePotentiallyHiddenSectionIds in interface InquiryOrMaintenanceDocumentAuthorizer

getSecurePotentiallyReadOnlySectionIds

public Set<String> getSecurePotentiallyReadOnlySectionIds()

addRoleQualification

protected void addRoleQualification(Object dataObject,
                                    Map<String,String> attributes)
Description copied from class: DataObjectAuthorizerBase
Override this method to populate the role qualifier attributes from the primary data object or document. This will only be called once per request.

Overrides:
addRoleQualification in class DocumentAuthorizerBase
Parameters:
dataObject - - the primary data object (i.e. the main object instance behind the lookup result row or inquiry) or the document
attributes - - role qualifiers will be added to this map

addPermissionDetails

protected void addPermissionDetails(Object dataObject,
                                    Map<String,String> attributes)
Description copied from class: DataObjectAuthorizerBase
Override this method to populate the permission details from the primary data object or document. This will only be called once per request.

Overrides:
addPermissionDetails in class DocumentAuthorizerBase
Parameters:
dataObject - - the primary data object (i.e. the main object instance behind the lookup result row or inquiry) or the document
attributes - - permission details will be added to this map

getDocumentDictionaryService

protected static DocumentDictionaryService getDocumentDictionaryService()


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