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

All Superinterfaces:
BusinessObjectAuthorizer
All Known Subinterfaces:
MaintenanceDocumentAuthorizer, TransactionalDocumentAuthorizer
All Known Implementing Classes:
AgendaEditorAuthorizer, DocumentAuthorizerBase, IdentityManagementKimDocumentAuthorizer, MaintenanceDocumentAuthorizerBase, TransactionalDocumentAuthorizerBase, TravelDocumentAuthorizer

public interface DocumentAuthorizer
extends BusinessObjectAuthorizer

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 canAddNoteAttachment(Document document, String attachmentTypeCode, Person user)
           
 boolean canDeleteNoteAttachment(Document document, String attachmentTypeCode, String createdBySelfOnly, Person user)
           
 boolean canInitiate(String documentTypeName, Person user)
           
 boolean canOpen(Document document, Person user)
           
 boolean canReceiveAdHoc(Document document, Person user, String actionRequestCode)
           
 boolean canSendAdHocRequests(Document document, String actionRequestCd, 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.krad.authorization.BusinessObjectAuthorizer
getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate
 

Method Detail

getDocumentActions

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

canInitiate

boolean canInitiate(String documentTypeName,
                    Person user)

canOpen

boolean canOpen(Document document,
                Person user)

canReceiveAdHoc

boolean canReceiveAdHoc(Document document,
                        Person user,
                        String actionRequestCode)

canAddNoteAttachment

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

canDeleteNoteAttachment

boolean canDeleteNoteAttachment(Document document,
                                String attachmentTypeCode,
                                String createdBySelfOnly,
                                Person user)

canViewNoteAttachment

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

canSendAdHocRequests

boolean canSendAdHocRequests(Document document,
                             String actionRequestCd,
                             Person user)


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