org.kuali.rice.kns.document.authorization
Interface DocumentAuthorizer

All Superinterfaces:
BusinessObjectAuthorizer, DataObjectAuthorizer, DocumentAuthorizer
All Known Subinterfaces:
TransactionalDocumentAuthorizer
All Known Implementing Classes:
IdentityManagementKimDocumentAuthorizer, TransactionalDocumentAuthorizerBase, TravelDocumentAuthorizer

public interface DocumentAuthorizer
extends BusinessObjectAuthorizer, DocumentAuthorizer

The DocumentAuthorizer class associated with a given Document is used to dynamically determine what editing mode and what actions are allowed for a given user on a given document instance.


Method Summary
 boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String createdBySelfOnly, Person user)
           
 boolean canViewNoteAttachment(Document document, String attachmentTypeCode, Person user)
           
 Set<String> getDocumentActions(Document document, Person user, Set<String> documentActions)
           
 
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, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canOpen, canPerformRouteReport, canReceiveAdHoc, canReload, canRoute, canSave, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canTakeRequestedAction, canViewNoteAttachment
 
Methods inherited from interface org.kuali.rice.krad.bo.DataObjectAuthorizer
isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
 

Method Detail

getDocumentActions

Set<String> getDocumentActions(Document document,
                               Person user,
                               Set<String> documentActions)

canDeleteNoteAttachment

boolean canDeleteNoteAttachment(Document document,
                                String attachmentTypeCode,
                                String createdBySelfOnly,
                                Person user)
Specified by:
canDeleteNoteAttachment in interface DocumentAuthorizer

canViewNoteAttachment

boolean canViewNoteAttachment(Document document,
                              String attachmentTypeCode,
                              Person user)


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