View Javadoc

1   /**
2    * Copyright 2005-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.document;
17  
18  
19  /**
20   * Determines what actions are applicable to the given document, irrespective of user
21   * or other state.  These initial actions are used as inputs for further filtering depending
22   * on context.
23   * @see DocumentAuthorizer
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public interface DocumentPresentationController {
27  
28      public boolean canInitiate(String documentTypeName);
29  
30      public boolean canEdit(Document document);
31  
32      public boolean canAnnotate(Document document);
33  
34      public boolean canReload(Document document);
35  
36      public boolean canClose(Document document);
37  
38      public boolean canSave(Document document);
39  
40      public boolean canRoute(Document document);
41  
42      public boolean canCancel(Document document);
43  
44      public boolean canCopy(Document document);
45  
46      public boolean canPerformRouteReport(Document document);
47  
48      public boolean canAddAdhocRequests(Document document);
49  
50      public boolean canBlanketApprove(Document document);
51  
52      public boolean canApprove(Document document);
53  
54      public boolean canDisapprove(Document document);
55  
56      public boolean canSendAdhocRequests(Document document);
57  
58      public boolean canSendNoteFyi(Document document);
59  
60      public boolean canEditDocumentOverview(Document document);
61  
62      public boolean canFyi(Document document);
63  
64      public boolean canAcknowledge(Document document);
65  
66      /**
67       * @since 2.1
68       */
69      public boolean canRecall(Document document);
70  }