|
||||||||||
| 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.uif.view.ViewAuthorizerBase
org.kuali.rice.krad.document.DocumentViewAuthorizerBase
public class DocumentViewAuthorizerBase
Implementation of ViewAuthorizer for
DocumentView instances
Performs KIM permission checks for the various document actions such as save, approve, cancel
By default delegates to the DocumentAuthorizer configured for the document in the data dictionary
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
|
static String |
PRE_ROUTING_ROUTE_NAME
|
| Constructor Summary | |
|---|---|
DocumentViewAuthorizerBase()
|
|
| 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 |
canEditView(View view,
ViewModel model,
Person user)
Checks for an edit view permission for the view id, and if found verifies the user has that permission |
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 |
canOpenView(View view,
ViewModel model,
Person user)
Checks for an open view permission for the view id, and if found verifies the user has that permission |
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)
|
Set<String> |
getActionFlags(View view,
ViewModel model,
Person user,
Set<String> actions)
Returns the set of action flags that are authorized for the given user |
DocumentAuthorizer |
getDocumentAuthorizer()
|
protected boolean |
isDocumentInitiator(Document document,
Person user)
|
void |
setDocumentAuthorizer(DocumentAuthorizer documentAuthorizer)
|
void |
setDocumentAuthorizerClass(Class<? extends DocumentAuthorizer> documentAuthorizerClass)
|
| 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 |
|---|
protected static org.apache.commons.logging.Log LOG
public static final String PRE_ROUTING_ROUTE_NAME
| Constructor Detail |
|---|
public DocumentViewAuthorizerBase()
| Method Detail |
|---|
public Set<String> getActionFlags(View view,
ViewModel model,
Person user,
Set<String> actions)
ViewAuthorizer
Action flags are created for views to indicate some action or feature should be enabled. These flags can be
used within expressions for configuring the view content.
For example:
For each action flag, KIM is consulted to determine if a permission exist for the template associated with the action flag. If so, a check is then made to determine if the user has that permission. If the permission fails for the user, the action flag is removed from the returned set.
The Set of available action flags should first be exported by the
ViewPresentationController.getActionFlags(View, org.kuali.rice.krad.web.form.UifFormBase) method. The
set returned from this method will be passed as the method argument here by the framework.
getActionFlags in interface ViewAuthorizergetActionFlags in class ViewAuthorizerBaseview - - view instance the action flags apply tomodel - - object containing the view datauser - - user we are authorizing the actions foractions - - set of action flags to authorize
org.kuali.rice.krad.uif.view.ViewAuthorizer#getActionFlags(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.kim.api.identity.Person,
java.util.Set)
public final boolean canInitiate(String documentTypeName,
Person user)
DocumentAuthorizer
canInitiate in interface DocumentAuthorizer
public final boolean canOpen(Document document,
Person user)
DocumentAuthorizer
canOpen in interface DocumentAuthorizer
public boolean canOpenView(View view,
ViewModel model,
Person user)
ViewAuthorizerBase
canOpenView in interface ViewAuthorizercanOpenView in class ViewAuthorizerBaseview - - view instance to check authorization formodel - - object containing the view datauser - - user to authorize
ViewAuthorizer.canOpenView(View, ViewModel, org.kuali.rice.kim.api.identity.Person)
public boolean canEdit(Document document,
Person user)
DocumentAuthorizer
canEdit in interface DocumentAuthorizer
public boolean canEditView(View view,
ViewModel model,
Person user)
ViewAuthorizerBase
canEditView in interface ViewAuthorizercanEditView in class ViewAuthorizerBaseview - - view instance to check authorization formodel - - object containing the view datauser - - user to authorize
ViewAuthorizer.canEditView(org.kuali.rice.krad.uif.view.View, org.kuali.rice.krad.uif.view.ViewModel,
org.kuali.rice.kim.api.identity.Person)
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 DocumentAuthorizer
public boolean canCancel(Document document,
Person user)
DocumentAuthorizer
canCancel in interface DocumentAuthorizer
public boolean canRecall(Document document,
Person user)
canRecall in interface DocumentAuthorizer
public boolean canCopy(Document document,
Person user)
DocumentAuthorizer
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 canAddNoteAttachment(Document document,
String attachmentTypeCode,
Person user)
canAddNoteAttachment in interface DocumentAuthorizer
public final boolean canDeleteNoteAttachment(Document document,
String attachmentTypeCode,
String authorUniversalIdentifier,
Person user)
canDeleteNoteAttachment in interface DocumentAuthorizer
public final 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 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)
public DocumentAuthorizer getDocumentAuthorizer()
public void setDocumentAuthorizer(DocumentAuthorizer documentAuthorizer)
public void setDocumentAuthorizerClass(Class<? extends DocumentAuthorizer> documentAuthorizerClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||