1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.portalsite.menu;
18
19 import org.apache.jetspeed.om.folder.impl.StandardMenuDefinitionImpl;
20
21 /***
22 * This class provides a menu definition for default menus
23 * constructed from folders within menus with depth expansion
24 * specified.
25 *
26 * @author <a href="mailto:rwatler@apache.org">Randy Watler</a>
27 * @version $Id: DefaultMenuDefinition.java 516448 2007-03-09 16:25:47Z ate $
28 */
29 public class DefaultMenuDefinition extends StandardMenuDefinitionImpl
30 {
31 /***
32 * options - options path specification for menu
33 */
34 private String options;
35
36 /***
37 * depth - inclusion depth for menu
38 */
39 private int depth;
40
41 /***
42 * profile - profile locator for menu and its elements
43 */
44 private String profile;
45
46 /***
47 * DefaultMenuDefinition - constructor
48 */
49 public DefaultMenuDefinition(String options, int depth, String locatorName)
50 {
51 super();
52 this.options = options;
53 this.depth = depth;
54 this.profile = locatorName;
55 }
56
57 /***
58 * getOptions - get comma separated menu options if not specified as elements
59 *
60 * @return option paths specification
61 */
62 public String getOptions()
63 {
64 return options;
65 }
66
67 /***
68 * getDepth - get depth of inclusion for folder menu options
69 *
70 * @return inclusion depth
71 */
72 public int getDepth()
73 {
74 return depth;
75 }
76
77 /***
78 * getProfile - get profile locator used to filter specified options
79 *
80 * @return profile locator name
81 */
82 public String getProfile()
83 {
84 return profile;
85 }
86 }