|
@@ -3,14 +3,12 @@ |
3 |
3 |
|
import org.litesoft.orsup.nonpublic.*; |
4 |
4 |
|
|
5 |
5 |
|
public abstract class UserNamesGO |
6 |
|
- |
extends AbstractPONames |
7 |
|
- |
{ |
|
6 |
+ |
extends AbstractPONames { |
8 |
7 |
|
public static final String OBJECT_NAME = "User"; |
9 |
8 |
|
|
10 |
9 |
|
public static final String DATASTORE_NAME = "org.litesoft.datt.server.pos.User"; |
11 |
10 |
|
|
12 |
|
- |
protected UserNamesGO( AbstractPONames pBuiltBy, String pParentPath ) |
13 |
|
- |
{ |
|
11 |
+ |
protected UserNamesGO( AbstractPONames pBuiltBy, String pParentPath ) { |
14 |
12 |
|
super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath ); |
15 |
13 |
|
} |
16 |
14 |
|
|
|
@@ -29,8 +27,7 @@ |
29 |
27 |
|
*/ |
30 |
28 |
|
public final String aCurrentRestrictedResource = mParentPath + "CurrentRestrictedResource"; |
31 |
29 |
|
|
32 |
|
- |
public UserXrefRestrictedResourceNames rCurrentRestrictedResource() |
33 |
|
- |
{ |
|
30 |
+ |
public UserXrefRestrictedResourceNames rCurrentRestrictedResource() { |
34 |
31 |
|
return (UserXrefRestrictedResourceNames) toOne( this, aCurrentRestrictedResource, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
35 |
32 |
|
} |
36 |
33 |
|
|
|
@@ -74,8 +71,7 @@ |
74 |
71 |
|
*/ |
75 |
72 |
|
public final String aLastRestrictedResource = mParentPath + "LastRestrictedResource"; |
76 |
73 |
|
|
77 |
|
- |
public RestrictedResourceNames rLastRestrictedResource() |
78 |
|
- |
{ |
|
74 |
+ |
public RestrictedResourceNames rLastRestrictedResource() { |
79 |
75 |
|
return (RestrictedResourceNames) toOne( this, aLastRestrictedResource, RestrictedResourceNames.Factory.INSTANCE ); |
80 |
76 |
|
} |
81 |
77 |
|
|
|
@@ -129,13 +125,11 @@ |
129 |
125 |
|
*/ |
130 |
126 |
|
public final String aCreatedTasks = mParentPath + "CreatedTasks"; |
131 |
127 |
|
|
132 |
|
- |
public TaskNames rCreatedTasks() |
133 |
|
- |
{ |
|
128 |
+ |
public TaskNames rCreatedTasks() { |
134 |
129 |
|
return (TaskNames) toOne( this, aCreatedTasks, TaskNames.Factory.INSTANCE ); |
135 |
130 |
|
} |
136 |
131 |
|
|
137 |
|
- |
public TaskNames cCreatedTasks() |
138 |
|
- |
{ |
|
132 |
+ |
public TaskNames cCreatedTasks() { |
139 |
133 |
|
return (TaskNames) toMany( this, aCreatedTasks, TaskNames.Factory.INSTANCE ); |
140 |
134 |
|
} |
141 |
135 |
|
|
|
@@ -144,13 +138,11 @@ |
144 |
138 |
|
*/ |
145 |
139 |
|
public final String aEmails = mParentPath + "Emails"; |
146 |
140 |
|
|
147 |
|
- |
public EmailNames rEmails() |
148 |
|
- |
{ |
|
141 |
+ |
public EmailNames rEmails() { |
149 |
142 |
|
return (EmailNames) toOne( this, aEmails, EmailNames.Factory.INSTANCE ); |
150 |
143 |
|
} |
151 |
144 |
|
|
152 |
|
- |
public EmailNames cEmails() |
153 |
|
- |
{ |
|
145 |
+ |
public EmailNames cEmails() { |
154 |
146 |
|
return (EmailNames) toMany( this, aEmails, EmailNames.Factory.INSTANCE ); |
155 |
147 |
|
} |
156 |
148 |
|
|
|
@@ -159,13 +151,11 @@ |
159 |
151 |
|
*/ |
160 |
152 |
|
public final String aPhones = mParentPath + "Phones"; |
161 |
153 |
|
|
162 |
|
- |
public PhoneNames rPhones() |
163 |
|
- |
{ |
|
154 |
+ |
public PhoneNames rPhones() { |
164 |
155 |
|
return (PhoneNames) toOne( this, aPhones, PhoneNames.Factory.INSTANCE ); |
165 |
156 |
|
} |
166 |
157 |
|
|
167 |
|
- |
public PhoneNames cPhones() |
168 |
|
- |
{ |
|
158 |
+ |
public PhoneNames cPhones() { |
169 |
159 |
|
return (PhoneNames) toMany( this, aPhones, PhoneNames.Factory.INSTANCE ); |
170 |
160 |
|
} |
171 |
161 |
|
|
|
@@ -174,13 +164,11 @@ |
174 |
164 |
|
*/ |
175 |
165 |
|
public final String aPrimaryOwnedResources = mParentPath + "PrimaryOwnedResources"; |
176 |
166 |
|
|
177 |
|
- |
public RestrictedResourceNames rPrimaryOwnedResources() |
178 |
|
- |
{ |
|
167 |
+ |
public RestrictedResourceNames rPrimaryOwnedResources() { |
179 |
168 |
|
return (RestrictedResourceNames) toOne( this, aPrimaryOwnedResources, RestrictedResourceNames.Factory.INSTANCE ); |
180 |
169 |
|
} |
181 |
170 |
|
|
182 |
|
- |
public RestrictedResourceNames cPrimaryOwnedResources() |
183 |
|
- |
{ |
|
171 |
+ |
public RestrictedResourceNames cPrimaryOwnedResources() { |
184 |
172 |
|
return (RestrictedResourceNames) toMany( this, aPrimaryOwnedResources, RestrictedResourceNames.Factory.INSTANCE ); |
185 |
173 |
|
} |
186 |
174 |
|
|
|
@@ -189,13 +177,11 @@ |
189 |
177 |
|
*/ |
190 |
178 |
|
public final String aRestrictedResources = mParentPath + "RestrictedResources"; |
191 |
179 |
|
|
192 |
|
- |
public UserXrefRestrictedResourceNames rRestrictedResources() |
193 |
|
- |
{ |
|
180 |
+ |
public UserXrefRestrictedResourceNames rRestrictedResources() { |
194 |
181 |
|
return (UserXrefRestrictedResourceNames) toOne( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
195 |
182 |
|
} |
196 |
183 |
|
|
197 |
|
- |
public UserXrefRestrictedResourceNames cRestrictedResources() |
198 |
|
- |
{ |
|
184 |
+ |
public UserXrefRestrictedResourceNames cRestrictedResources() { |
199 |
185 |
|
return (UserXrefRestrictedResourceNames) toMany( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
200 |
186 |
|
} |
201 |
187 |
|
|
|
@@ -204,13 +190,11 @@ |
204 |
190 |
|
*/ |
205 |
191 |
|
public final String aStories = mParentPath + "Stories"; |
206 |
192 |
|
|
207 |
|
- |
public StoryNames rStories() |
208 |
|
- |
{ |
|
193 |
+ |
public StoryNames rStories() { |
209 |
194 |
|
return (StoryNames) toOne( this, aStories, StoryNames.Factory.INSTANCE ); |
210 |
195 |
|
} |
211 |
196 |
|
|
212 |
|
- |
public StoryNames cStories() |
213 |
|
- |
{ |
|
197 |
+ |
public StoryNames cStories() { |
214 |
198 |
|
return (StoryNames) toMany( this, aStories, StoryNames.Factory.INSTANCE ); |
215 |
199 |
|
} |
216 |
200 |
|
|
|
@@ -219,13 +203,11 @@ |
219 |
203 |
|
*/ |
220 |
204 |
|
public final String aStoryUpdates = mParentPath + "StoryUpdates"; |
221 |
205 |
|
|
222 |
|
- |
public StoryUpdateNames rStoryUpdates() |
223 |
|
- |
{ |
|
206 |
+ |
public StoryUpdateNames rStoryUpdates() { |
224 |
207 |
|
return (StoryUpdateNames) toOne( this, aStoryUpdates, StoryUpdateNames.Factory.INSTANCE ); |
225 |
208 |
|
} |
226 |
209 |
|
|
227 |
|
- |
public StoryUpdateNames cStoryUpdates() |
228 |
|
- |
{ |
|
210 |
+ |
public StoryUpdateNames cStoryUpdates() { |
229 |
211 |
|
return (StoryUpdateNames) toMany( this, aStoryUpdates, StoryUpdateNames.Factory.INSTANCE ); |
230 |
212 |
|
} |
231 |
213 |
|
|
|
@@ -234,56 +216,47 @@ |
234 |
216 |
|
*/ |
235 |
217 |
|
public final String aTasks = mParentPath + "Tasks"; |
236 |
218 |
|
|
237 |
|
- |
public UserXrefTaskNames rTasks() |
238 |
|
- |
{ |
|
219 |
+ |
public UserXrefTaskNames rTasks() { |
239 |
220 |
|
return (UserXrefTaskNames) toOne( this, aTasks, UserXrefTaskNames.Factory.INSTANCE ); |
240 |
221 |
|
} |
241 |
222 |
|
|
242 |
|
- |
public UserXrefTaskNames cTasks() |
243 |
|
- |
{ |
|
223 |
+ |
public UserXrefTaskNames cTasks() { |
244 |
224 |
|
return (UserXrefTaskNames) toMany( this, aTasks, UserXrefTaskNames.Factory.INSTANCE ); |
245 |
225 |
|
} |
246 |
226 |
|
|
247 |
227 |
|
public static class CollectionOf |
248 |
228 |
|
extends UserNames |
249 |
|
- |
implements CollectionOfPONamesAccessor |
250 |
|
- |
{ |
|
229 |
+ |
implements CollectionOfPONamesAccessor { |
251 |
230 |
|
private String mCollectionPath; |
252 |
231 |
|
|
253 |
|
- |
public CollectionOf( String pCollectionPath ) |
254 |
|
- |
{ |
|
232 |
+ |
public CollectionOf( String pCollectionPath ) { |
255 |
233 |
|
super( null, "" ); |
256 |
234 |
|
|
257 |
235 |
|
mCollectionPath = pCollectionPath; |
258 |
236 |
|
} |
259 |
237 |
|
|
260 |
238 |
|
@Override |
261 |
|
- |
public String getCollectionPath() |
262 |
|
- |
{ |
|
239 |
+ |
public String getCollectionPath() { |
263 |
240 |
|
return mCollectionPath; |
264 |
241 |
|
} |
265 |
242 |
|
|
266 |
243 |
|
@Override |
267 |
|
- |
public String toString() |
268 |
|
- |
{ |
|
244 |
+ |
public String toString() { |
269 |
245 |
|
return "c" + super.toString(); |
270 |
246 |
|
} |
271 |
247 |
|
} |
272 |
248 |
|
|
273 |
249 |
|
public static class Factory |
274 |
|
- |
implements IFactory |
275 |
|
- |
{ |
|
250 |
+ |
implements IFactory { |
276 |
251 |
|
public static final IFactory INSTANCE = new Factory(); |
277 |
252 |
|
|
278 |
253 |
|
@Override |
279 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
280 |
|
- |
{ |
|
254 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
281 |
255 |
|
return new UserNames( pBuiltBy, pParentPath ); |
282 |
256 |
|
} |
283 |
257 |
|
|
284 |
258 |
|
@Override |
285 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
286 |
|
- |
{ |
|
259 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
287 |
260 |
|
return new UserNames.CollectionOf( pCollectionPath ); |
288 |
261 |
|
} |
289 |
262 |
|
} |