public class DocumentAuthorizerBase extends BusinessObjectAuthorizerBase implements DocumentAuthorizer
Modifier and Type | Field and Description |
---|---|
static String |
EDIT_MODE_DEFAULT_TRUE_VALUE |
protected static org.apache.commons.logging.Log |
LOG |
static String |
PRE_ROUTING_ROUTE_NAME |
static String |
USER_SESSION_METHOD_TO_CALL_COMPLETE_MARKER |
static String |
USER_SESSION_METHOD_TO_CALL_COMPLETE_OBJECT_KEY |
static String |
USER_SESSION_METHOD_TO_CALL_OBJECT_KEY |
Constructor and Description |
---|
DocumentAuthorizerBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
addStandardAttributes(Document document,
Map<String,String> attributes) |
boolean |
canAcknowledge(Document document,
Person user) |
boolean |
canAddNoteAttachment(Document document,
String attachmentTypeCode,
Person user) |
boolean |
canAnnotate(Document document,
Person user) |
boolean |
canApprove(Document document,
Person user) |
boolean |
canBlanketApprove(Document document,
Person user) |
boolean |
canCancel(Document document,
Person user) |
boolean |
canClose(Document document,
Person user) |
boolean |
canCopy(Document document,
Person user) |
boolean |
canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String createdBySelfOnly,
Person user) |
boolean |
canDisapprove(Document document,
Person user) |
boolean |
canEdit(Document document,
Person user) |
boolean |
canEditDocumentOverview(Document document,
Person user) |
boolean |
canFyi(Document document,
Person user) |
boolean |
canInitiate(String documentTypeName,
Person user) |
boolean |
canOpen(Document document,
Person user) |
boolean |
canPerformRouteReport(Document document,
Person user) |
boolean |
canReceiveAdHoc(Document document,
Person user,
String actionRequestCode) |
boolean |
canReload(Document document,
Person user) |
boolean |
canRoute(Document document,
Person user) |
boolean |
canSave(Document document,
Person user) |
boolean |
canSendAdHocRequests(Document document,
String actionRequestCd,
Person user) |
boolean |
canSendAnyTypeAdHocRequests(Document document,
Person user) |
boolean |
canSendNoteFyi(Document document,
Person user) |
boolean |
canTakeRequestedAction(Document document,
String actionRequestCode,
Person user) |
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
Person user) |
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user) |
Set<String> |
getDocumentActions(Document document,
Person user,
Set<String> documentActions)
Individual document families will need to reimplement this according to
their own needs; this version should be good enough to be usable during
initial development.
|
protected boolean |
isDocumentInitiator(Document document,
Person user) |
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, getDataDictionaryService, getKualiModuleService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate
getPermissionDetailValues, getPermissionService, getPersonService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate, permissionExistsByTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
protected static org.apache.commons.logging.Log LOG
public static final String PRE_ROUTING_ROUTE_NAME
public static final String EDIT_MODE_DEFAULT_TRUE_VALUE
public static final String USER_SESSION_METHOD_TO_CALL_OBJECT_KEY
public static final String USER_SESSION_METHOD_TO_CALL_COMPLETE_OBJECT_KEY
public static final String USER_SESSION_METHOD_TO_CALL_COMPLETE_MARKER
public DocumentAuthorizerBase()
public Set<String> getDocumentActions(Document document, Person user, Set<String> documentActions)
public final boolean canInitiate(String documentTypeName, Person user)
canInitiate
in interface DocumentAuthorizer
public boolean canEdit(Document document, Person user)
canEdit
in interface DocumentAuthorizer
public boolean canAnnotate(Document document, Person user)
canAnnotate
in interface DocumentAuthorizer
public boolean canReload(Document document, Person user)
canReload
in interface DocumentAuthorizer
public boolean canClose(Document document, Person user)
canClose
in interface DocumentAuthorizer
public boolean canSave(Document document, Person user)
canSave
in interface DocumentAuthorizer
public boolean canRoute(Document document, Person user)
canRoute
in interface DocumentAuthorizer
public boolean canCancel(Document document, Person user)
canCancel
in interface DocumentAuthorizer
public boolean canCopy(Document document, Person user)
canCopy
in interface DocumentAuthorizer
public boolean canPerformRouteReport(Document document, Person user)
canPerformRouteReport
in interface DocumentAuthorizer
public boolean canBlanketApprove(Document document, Person user)
canBlanketApprove
in interface DocumentAuthorizer
public boolean canApprove(Document document, Person user)
canApprove
in interface DocumentAuthorizer
public boolean canDisapprove(Document document, Person user)
canDisapprove
in interface DocumentAuthorizer
public boolean canSendNoteFyi(Document document, Person user)
canSendNoteFyi
in interface DocumentAuthorizer
public boolean canFyi(Document document, Person user)
canFyi
in interface DocumentAuthorizer
public boolean canAcknowledge(Document document, Person user)
canAcknowledge
in interface DocumentAuthorizer
public final boolean canReceiveAdHoc(Document document, Person user, String actionRequestCode)
canReceiveAdHoc
in interface DocumentAuthorizer
public final boolean canOpen(Document document, Person user)
canOpen
in interface DocumentAuthorizer
public final boolean canAddNoteAttachment(Document document, String attachmentTypeCode, Person user)
canAddNoteAttachment
in interface DocumentAuthorizer
public final boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String createdBySelfOnly, Person user)
canDeleteNoteAttachment
in interface DocumentAuthorizer
public final boolean canViewNoteAttachment(Document document, String attachmentTypeCode, Person user)
public boolean canViewNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user)
canViewNoteAttachment
in interface DocumentAuthorizer
public final boolean canSendAdHocRequests(Document document, String actionRequestCd, Person user)
canSendAdHocRequests
in interface DocumentAuthorizer
public boolean canEditDocumentOverview(Document document, Person user)
canEditDocumentOverview
in interface DocumentAuthorizer
public final boolean canSendAnyTypeAdHocRequests(Document document, Person user)
canSendAnyTypeAdHocRequests
in interface DocumentAuthorizer
public boolean canTakeRequestedAction(Document document, String actionRequestCode, Person user)
canTakeRequestedAction
in interface DocumentAuthorizer
protected void addPermissionDetails(Object dataObject, Map<String,String> attributes)
DataObjectAuthorizerBase
addPermissionDetails
in class DataObjectAuthorizerBase
dataObject
- - the primary data object (i.e. the main object instance
behind the lookup result row or inquiry) or the documentattributes
- - permission details will be added to this mapprotected void addRoleQualification(Object dataObject, Map<String,String> attributes)
DataObjectAuthorizerBase
addRoleQualification
in class DataObjectAuthorizerBase
dataObject
- - the primary data object (i.e. the main object instance
behind the lookup result row or inquiry) or the documentattributes
- - role qualifiers will be added to this mapprotected void addStandardAttributes(Document document, Map<String,String> attributes)
protected boolean isDocumentInitiator(Document document, Person user)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.