01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.actionlist;
18:
19: import edu.iu.uis.eden.actionitem.ActionItem;
20: import edu.iu.uis.eden.actions.ActionSet;
21: import edu.iu.uis.eden.plugin.attributes.CustomActionListAttribute;
22: import edu.iu.uis.eden.web.session.UserSession;
23:
24: /**
25: * The default implementation of a CustomActionListAttribute. Shows only FYI actions.
26: *
27: * @author ewestfal
28: */
29: public class DefaultCustomActionListAttribute implements
30: CustomActionListAttribute {
31:
32: private static final long serialVersionUID = 6776164670024486696L;
33:
34: /**
35: * Sets up the default ActionSet which includes only FYIs.
36: */
37: private static ActionSet DEFAULT_LEGAL_ACTIONS = new ActionSet();
38: static {
39: DEFAULT_LEGAL_ACTIONS.addFyi();
40: }
41:
42: public DefaultCustomActionListAttribute() {
43: }
44:
45: public ActionSet getLegalActions(UserSession userSession,
46: ActionItem actionItem) throws Exception {
47: return DEFAULT_LEGAL_ACTIONS;
48: }
49:
50: public DisplayParameters getDocHandlerDisplayParameters(
51: UserSession userSession, ActionItem actionItem)
52: throws Exception {
53: return null;
54: }
55:
56: }
|