1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.cms.core;
35
36 import info.magnolia.jcr.util.NodeTypes;
37
38 import java.io.Serializable;
39
40 import org.apache.jackrabbit.JcrConstants;
41
42
43
44
45
46
47 @Deprecated
48 public final class ItemType implements Serializable {
49
50
51
52
53 public static final String NT_BASE = JcrConstants.NT_BASE;
54
55
56
57
58 public static final String NT_UNSTRUCTURED = JcrConstants.NT_UNSTRUCTURED;
59
60
61
62
63 public static final String NT_HIERARCHY = JcrConstants.NT_HIERARCHYNODE;
64
65
66
67
68 public static final String NT_FOLDER = NodeTypes.Folder.NAME;
69
70
71
72
73 public static final String NT_FILE = JcrConstants.NT_FILE;
74
75
76
77
78 public static final String NT_RESOURCE = NodeTypes.Resource.NAME;
79
80
81
82
83 public static final String NT_METADATA = NodeTypes.MetaData.NAME;
84
85
86
87
88 public static final ItemTypehtml#ItemType">ItemType WORKITEM = new ItemType("workItem");
89
90
91
92
93 public static final ItemTypeml#ItemType">ItemType EXPRESSION = new ItemType("expression");
94
95
96
97
98 public static final String MIX_ACCESSCONTROLLABLE = MgnlNodeType.MIX_ACCESSCONTROLLABLE;
99
100
101
102
103 public static final String MIX_REFERENCEABLE = JcrConstants.MIX_REFERENCEABLE;
104
105
106
107
108 public static final String MIX_VERSIONABLE = JcrConstants.MIX_VERSIONABLE;
109
110 public static final String MIX_LOCKABLE = JcrConstants.MIX_LOCKABLE;
111
112 public static final String DELETED_NODE_MIXIN = NodeTypes.Deleted.NAME;
113
114
115
116
117 public static final String NT_CONTENT = NodeTypes.Content.NAME;
118
119 public static final String MGNL_NODE_DATA = MgnlNodeType.MGNL_NODE_DATA;
120
121 public static final String NT_FROZENNODE = JcrConstants.NT_FROZENNODE;
122
123 public static final String JCR_FROZENNODE = JcrConstants.JCR_FROZENNODE;
124
125 public static final String JCR_FROZEN_PRIMARY_TYPE = JcrConstants.JCR_FROZENPRIMARYTYPE;
126
127 public static final String JCR_PRIMARY_TYPE = JcrConstants.JCR_PRIMARYTYPE;
128
129 public static final String JCR_DATA = JcrConstants.JCR_DATA;
130
131
132
133
134
135
136 @Deprecated
137 public static final String NT_CONTENTNODE = NodeTypes.ContentNode.NAME;
138
139 public static final ItemType.html#ItemType">ItemType CONTENT = new ItemType(NT_CONTENT);
140
141 public static final ItemTypel#ItemType">ItemType CONTENTNODE = new ItemType(NT_CONTENTNODE);
142
143 public static final ItemTypeype.html#ItemType">ItemType USER = new ItemType(NodeTypes.User.NAME);
144
145 public static final ItemTypeype.html#ItemType">ItemType ROLE = new ItemType(NodeTypes.Role.NAME);
146
147 public static final ItemTypepe.html#ItemType">ItemType GROUP = new ItemType(NodeTypes.Group.NAME);
148
149 public static final ItemTypee.html#ItemType">ItemType SYSTEM = new ItemType(NodeTypes.System.NAME);
150
151 public static final ItemTypel#ItemType">ItemType JCR_CONTENT = new ItemType(JcrConstants.JCR_CONTENT);
152
153 public static final ItemTypee.html#ItemType">ItemType FOLDER = new ItemType(NT_FOLDER);
154
155 public static final ItemTypeype.html#ItemType">ItemType PAGE = new ItemType(NodeTypes.Page.NAME);
156 public static final ItemTypeype.html#ItemType">ItemType AREA = new ItemType(NodeTypes.Area.NAME);
157 public static final ItemTypetml#ItemType">ItemType COMPONENT = new ItemType(NodeTypes.Component.NAME);
158
159
160
161
162 private final String systemName;
163
164
165
166
167
168
169 public ItemType(String systemName) {
170 this.systemName = systemName;
171 }
172
173
174
175
176
177
178 public String getSystemName() {
179 return this.systemName;
180 }
181
182
183
184
185 @Override
186 public boolean equals(Object object) {
187 if (!(object instanceof ItemType)) {
188 return false;
189 }
190 ItemType"../../../../info/magnolia/cms/core/ItemType.html#ItemType">ItemType rhs = (ItemType) object;
191 return this.systemName.equals(rhs.systemName);
192 }
193
194
195
196
197 @Override
198 public String toString() {
199 return this.systemName;
200 }
201
202
203
204
205 @Override
206 public int hashCode() {
207 return this.systemName.hashCode();
208 }
209
210 }