KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > methodhead > shim > ShimPolicy


1 /*
2  * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
3  *
4  * This file is part of TransferCM.
5  *
6  * TransferCM is free software; you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation; either version 2 of the License, or (at your option) any later
9  * version.
10  *
11  * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
18  * Fifth Floor, Boston, MA 02110-1301 USA
19  */

20
21 package com.methodhead.shim;
22
23 import com.methodhead.auth.AuthUser;
24 import com.methodhead.util.OperationContext;
25
26 public interface ShimPolicy {
27
28   // constants ////////////////////////////////////////////////////////////////
29

30   // constructors /////////////////////////////////////////////////////////////
31

32   // methods //////////////////////////////////////////////////////////////////
33

34   /**
35    * Instantiates a new <tt>Page</tt>.
36    */

37   public Page newPage();
38
39   /**
40    * Instantiates a new <tt>Template</tt>.
41    */

42   public Template newTemplate();
43
44   /**
45    * Instantiates a new <tt>TextModule</tt>.
46    */

47   public TextModule newTextModule();
48
49   /**
50    * Instantiates a new <tt>TextModule</tt>.
51    */

52   public NavModule newNavModule();
53
54   /**
55    * Instantiates a new <tt>IncludeModule</tt>.
56    */

57   public IncludeModule newIncludeModule();
58
59   /**
60    * Instantiates a new <tt>TextModule</tt>.
61    */

62   public Thumbnailer newThumbnailer();
63
64   /**
65    * Returns <tt>true</tt> if <tt>user</tt> is authorized to execute the
66    * specified path.
67    */

68   public boolean isMappingAuthorized(
69     AuthUser user,
70     String JavaDoc path );
71
72   public String JavaDoc isHomeAuthorized(
73     OperationContext op );
74
75   public String JavaDoc isSiteMapAuthorized(
76     OperationContext op );
77
78   public String JavaDoc isLinkAuthorized(
79     OperationContext op );
80
81   public String JavaDoc isHtmlFragmentDeleteAuthorized(
82     OperationContext op );
83
84   public String JavaDoc isHtmlFragmentListAuthorized(
85     OperationContext op );
86
87   public String JavaDoc isHtmlFragmentSaveAuthorized(
88     OperationContext op );
89
90   public String JavaDoc isHtmlFragmentSaveNewAuthorized(
91     OperationContext op );
92
93   public String JavaDoc isHtmlFragmentNewAuthorized(
94     OperationContext op );
95
96   public String JavaDoc isHtmlFragmentEditAuthorized(
97     OperationContext op );
98
99   public String JavaDoc isEditorListImagesAuthorized(
100     OperationContext op );
101
102   public String JavaDoc isEditorPickImageAuthorized(
103     OperationContext op );
104
105   public String JavaDoc isEditorDisplayFilesAuthorized(
106     OperationContext op );
107
108   public String JavaDoc isEditorPickFileAuthorized(
109     OperationContext op );
110
111   public String JavaDoc isEditorPickPageAuthorized(
112     OperationContext op );
113
114   public String JavaDoc isEditorListPagesAuthorized(
115     OperationContext op );
116
117   public String JavaDoc isConfigureTextModuleAuthorized(
118     OperationContext op );
119
120   public String JavaDoc isConfigureNavModuleAuthorized(
121     OperationContext op );
122
123   public String JavaDoc isConfigureIncludeModuleAuthorized(
124     OperationContext op );
125
126   public String JavaDoc isNewPageFormAuthorized(
127     OperationContext op );
128
129   public String JavaDoc isConfigurePageAuthorized(
130     OperationContext op );
131
132   public String JavaDoc isConfigurePageFormAuthorized(
133     OperationContext op );
134
135   public String JavaDoc isEditPageAuthorized(
136     OperationContext op );
137
138   public String JavaDoc isConfigureModuleAuthorized(
139     OperationContext op );
140
141   public String JavaDoc isEditPanelAuthorized(
142     OperationContext op );
143
144   public String JavaDoc isSavePanelAuthorized(
145     OperationContext op );
146
147   public String JavaDoc isDeletePageFormAuthorized(
148     OperationContext op );
149
150   public String JavaDoc isDeletePageAuthorized(
151     OperationContext op );
152
153   public String JavaDoc isMovePageFormAuthorized(
154     OperationContext op );
155
156   public String JavaDoc isMovePageAuthorized(
157     OperationContext op );
158
159   public String JavaDoc isConfigurePanelFormAuthorized(
160     OperationContext op );
161
162   public String JavaDoc isConfigurePanelAuthorized(
163     OperationContext op );
164
165   public String JavaDoc isSwitchAuthorized(
166     OperationContext op );
167
168   public void setUpMenu(
169     OperationContext op );
170
171   public void setUpEditorMenu(
172     OperationContext op,
173     Page page );
174 }
175
Popular Tags