|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.bo.DataObjectAuthorizerBase
org.kuali.rice.krad.document.DocumentAuthorizerBase
public class DocumentAuthorizerBase
Default implementation for DocumentAuthorizer that perform KIM permission checks to authorize the actions
| Field Summary | |
|---|---|
static String |
PRE_ROUTING_ROUTE_NAME
|
| Constructor Summary | |
|---|---|
DocumentAuthorizerBase()
|
|
| 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. |
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)
Determines if the user has permission to cancel the document |
boolean |
canClose(Document document,
Person user)
|
boolean |
canCopy(Document document,
Person user)
Determines if the user has permission to copy the document |
boolean |
canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user)
|
boolean |
canDisapprove(Document document,
Person user)
|
boolean |
canEdit(Document document,
Person user)
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)
|
boolean |
canFyi(Document document,
Person user)
|
boolean |
canInitiate(String documentTypeName,
Person user)
Checks if a user has the permissions to initiate a document |
boolean |
canOpen(Document document,
Person user)
Checks if a user has the permissions to open a document |
boolean |
canPerformRouteReport(Document document,
Person user)
|
boolean |
canRecall(Document document,
Person user)
|
boolean |
canReceiveAdHoc(Document document,
Person user,
String actionRequestCode)
|
boolean |
canReload(Document document,
Person user)
|
boolean |
canRoute(Document document,
Person user)
Determines if the user has permission to route the document |
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,
String authorUniversalIdentifier,
Person user)
|
protected boolean |
isDocumentInitiator(Document document,
Person user)
|
| 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.krad.bo.DataObjectAuthorizer |
|---|
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate |
| Field Detail |
|---|
public static final String PRE_ROUTING_ROUTE_NAME
| Constructor Detail |
|---|
public DocumentAuthorizerBase()
| Method Detail |
|---|
public final boolean canInitiate(String documentTypeName,
Person user)
DocumentAuthorizer
canInitiate in interface DocumentAuthorizerdocumentTypeName - document type nameuser - current user
public boolean canOpen(Document document,
Person user)
DocumentAuthorizer
canOpen in interface DocumentAuthorizerdocument - document to checkuser - current user
public boolean canEdit(Document document,
Person user)
DocumentAuthorizer
canEdit in interface DocumentAuthorizerdocument - document to checkuser - current user
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)
DocumentAuthorizer
canRoute in interface DocumentAuthorizerdocument - document to checkuser - current user
public boolean canCancel(Document document,
Person user)
DocumentAuthorizer
canCancel in interface DocumentAuthorizerdocument - document to checkuser - current user
public boolean canRecall(Document document,
Person user)
canRecall in interface DocumentAuthorizer
public boolean canCopy(Document document,
Person user)
DocumentAuthorizer
canCopy in interface DocumentAuthorizerdocument - document to checkuser - current user
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 boolean canReceiveAdHoc(Document document,
Person user,
String actionRequestCode)
canReceiveAdHoc in interface DocumentAuthorizer
public boolean canAddNoteAttachment(Document document,
String attachmentTypeCode,
Person user)
canAddNoteAttachment in interface DocumentAuthorizer
public boolean canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user)
canDeleteNoteAttachment 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
protected void addPermissionDetails(Object dataObject,
Map<String,String> attributes)
DataObjectAuthorizerBase
addPermissionDetails in class DataObjectAuthorizerBasedataObject - - 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 map
protected void addRoleQualification(Object dataObject,
Map<String,String> attributes)
DataObjectAuthorizerBase
addRoleQualification in class DataObjectAuthorizerBasedataObject - - 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 map
protected void addStandardAttributes(Document document,
Map<String,String> attributes)
protected boolean isDocumentInitiator(Document document,
Person user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||