@Deprecated public class DocumentAuthorizerBase extends BusinessObjectAuthorizerBase implements DocumentAuthorizer
Modifier and Type | Field and Description |
---|---|
static String |
EDIT_MODE_DEFAULT_TRUE_VALUE
Deprecated.
|
protected static org.apache.commons.logging.Log |
LOG
Deprecated.
|
static String |
PRE_ROUTING_ROUTE_NAME
Deprecated.
|
static String |
USER_SESSION_METHOD_TO_CALL_COMPLETE_MARKER
Deprecated.
|
static String |
USER_SESSION_METHOD_TO_CALL_COMPLETE_OBJECT_KEY
Deprecated.
|
static String |
USER_SESSION_METHOD_TO_CALL_OBJECT_KEY
Deprecated.
|
Constructor and Description |
---|
DocumentAuthorizerBase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPermissionDetails(Object dataObject,
Map<String,String> attributes)
Deprecated.
Override this method to populate the permission details from the primary
data object or document.
|
protected void |
addRoleQualification(Object dataObject,
Map<String,String> attributes)
Deprecated.
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)
Deprecated.
|
boolean |
canAcknowledge(Document document,
Person user)
Deprecated.
|
boolean |
canAddNoteAttachment(Document document,
String attachmentTypeCode,
Person user)
Deprecated.
|
boolean |
canAnnotate(Document document,
Person user)
Deprecated.
|
boolean |
canApprove(Document document,
Person user)
Deprecated.
|
boolean |
canBlanketApprove(Document document,
Person user)
Deprecated.
|
boolean |
canCancel(Document document,
Person user)
Deprecated.
Determines if the user has permission to cancel the document
|
boolean |
canClose(Document document,
Person user)
Deprecated.
|
boolean |
canCopy(Document document,
Person user)
Deprecated.
Determines if the user has permission to copy the document
|
boolean |
canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String createdBySelfOnly,
Person user)
Deprecated.
|
boolean |
canDisapprove(Document document,
Person user)
Deprecated.
|
boolean |
canEdit(Document document,
Person user)
Deprecated.
Determines if the document can be edited; if false is returned, then all fields are in a
read only state
|
boolean |
canEditDocumentOverview(Document document,
Person user)
Deprecated.
|
boolean |
canFyi(Document document,
Person user)
Deprecated.
|
boolean |
canInitiate(String documentTypeName,
Person user)
Deprecated.
Checks if a user has the permissions to initiate a document
|
boolean |
canOpen(Document document,
Person user)
Deprecated.
Checks if a user has the permissions to open a document
|
boolean |
canPerformRouteReport(Document document,
Person user)
Deprecated.
|
boolean |
canRecall(Document document,
Person user)
Deprecated.
|
boolean |
canReceiveAdHoc(Document document,
Person user,
String actionRequestCode)
Deprecated.
|
boolean |
canReload(Document document,
Person user)
Deprecated.
|
boolean |
canRoute(Document document,
Person user)
Deprecated.
Determines if the user has permission to route the document
|
boolean |
canSave(Document document,
Person user)
Deprecated.
|
boolean |
canSendAdHocRequests(Document document,
String actionRequestCd,
Person user)
Deprecated.
|
boolean |
canSendAnyTypeAdHocRequests(Document document,
Person user)
Deprecated.
|
boolean |
canSendNoteFyi(Document document,
Person user)
Deprecated.
|
boolean |
canSuperUserApprove(Document document,
Person user)
Deprecated.
Determines if the user has permission to approve a document as a super user.
|
boolean |
canSuperUserDisapprove(Document document,
Person user)
Deprecated.
Determines if the user has permission to disapprove a document as a super user.
|
boolean |
canSuperUserTakeAction(Document document,
Person user)
Deprecated.
Determines if the user has permission to take a super user action.
|
boolean |
canTakeRequestedAction(Document document,
String actionRequestCode,
Person user)
Deprecated.
|
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
Person user)
Deprecated.
|
boolean |
canViewNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user)
Deprecated.
|
Set<String> |
getDocumentActions(Document document,
Person user,
Set<String> documentActions)
Deprecated.
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)
Deprecated.
|
void |
setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
Deprecated.
|
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 boolean canInitiate(String documentTypeName, Person user)
DocumentAuthorizer
canInitiate
in interface DocumentAuthorizer
documentTypeName
- document type nameuser
- current userpublic boolean canEdit(Document document, Person user)
DocumentAuthorizer
canEdit
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic 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)
DocumentAuthorizer
canRoute
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic boolean canCancel(Document document, Person user)
DocumentAuthorizer
canCancel
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic boolean canRecall(Document document, Person user)
canRecall
in interface DocumentAuthorizer
public boolean canCopy(Document document, Person user)
DocumentAuthorizer
canCopy
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic 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 boolean canReceiveAdHoc(Document document, Person user, String actionRequestCode)
canReceiveAdHoc
in interface DocumentAuthorizer
public boolean canOpen(Document document, Person user)
DocumentAuthorizer
canOpen
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic boolean canAddNoteAttachment(Document document, String attachmentTypeCode, Person user)
canAddNoteAttachment
in interface DocumentAuthorizer
public boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String createdBySelfOnly, Person user)
canDeleteNoteAttachment
in interface DocumentAuthorizer
public boolean canViewNoteAttachment(Document document, String attachmentTypeCode, Person user)
canViewNoteAttachment
in interface DocumentAuthorizer
public boolean canViewNoteAttachment(Document document, String attachmentTypeCode, String authorUniversalIdentifier, Person user)
canViewNoteAttachment
in interface DocumentAuthorizer
public boolean canSendAdHocRequests(Document document, String actionRequestCd, Person user)
canSendAdHocRequests
in interface DocumentAuthorizer
public boolean canEditDocumentOverview(Document document, Person user)
canEditDocumentOverview
in interface DocumentAuthorizer
public boolean canSendAnyTypeAdHocRequests(Document document, Person user)
canSendAnyTypeAdHocRequests
in interface DocumentAuthorizer
public boolean canTakeRequestedAction(Document document, String actionRequestCode, Person user)
canTakeRequestedAction
in interface DocumentAuthorizer
public boolean canSuperUserTakeAction(Document document, Person user)
canSuperUserTakeAction
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic boolean canSuperUserApprove(Document document, Person user)
canSuperUserApprove
in interface DocumentAuthorizer
document
- document to checkuser
- current userpublic boolean canSuperUserDisapprove(Document document, Person user)
canSuperUserDisapprove
in interface DocumentAuthorizer
document
- document to checkuser
- current userprotected 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)
public void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
setDocumentRequestAuthorizationCache
in interface DocumentAuthorizer
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.