|
@@ -3,14 +3,12 @@ |
3 |
3 |
|
import org.litesoft.orsup.nonpublic.*; |
4 |
4 |
|
|
5 |
5 |
|
public abstract class RestrictedResourceNamesGO |
6 |
|
- |
extends AbstractPONames |
7 |
|
- |
{ |
|
6 |
+ |
extends AbstractPONames { |
8 |
7 |
|
public static final String OBJECT_NAME = "RestrictedResource"; |
9 |
8 |
|
|
10 |
9 |
|
public static final String DATASTORE_NAME = "org.litesoft.prioritizer.server.pos.RestrictedResource"; |
11 |
10 |
|
|
12 |
|
- |
protected RestrictedResourceNamesGO( AbstractPONames pBuiltBy, String pParentPath ) |
13 |
|
- |
{ |
|
11 |
+ |
protected RestrictedResourceNamesGO( AbstractPONames pBuiltBy, String pParentPath ) { |
14 |
12 |
|
super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath ); |
15 |
13 |
|
} |
16 |
14 |
|
|
|
@@ -39,13 +37,11 @@ |
39 |
37 |
|
*/ |
40 |
38 |
|
public final String aLastUsers = mParentPath + "LastUsers"; |
41 |
39 |
|
|
42 |
|
- |
public UserNames rLastUsers() |
43 |
|
- |
{ |
|
40 |
+ |
public UserNames rLastUsers() { |
44 |
41 |
|
return (UserNames) toOne( this, aLastUsers, UserNames.Factory.INSTANCE ); |
45 |
42 |
|
} |
46 |
43 |
|
|
47 |
|
- |
public UserNames cLastUsers() |
48 |
|
- |
{ |
|
44 |
+ |
public UserNames cLastUsers() { |
49 |
45 |
|
return (UserNames) toMany( this, aLastUsers, UserNames.Factory.INSTANCE ); |
50 |
46 |
|
} |
51 |
47 |
|
|
|
@@ -54,13 +50,11 @@ |
54 |
50 |
|
*/ |
55 |
51 |
|
public final String aReports = mParentPath + "Reports"; |
56 |
52 |
|
|
57 |
|
- |
public ReportRestrictedResourceCommonNames rReports() |
58 |
|
- |
{ |
|
53 |
+ |
public ReportRestrictedResourceCommonNames rReports() { |
59 |
54 |
|
return (ReportRestrictedResourceCommonNames) toOne( this, aReports, ReportRestrictedResourceCommonNames.Factory.INSTANCE ); |
60 |
55 |
|
} |
61 |
56 |
|
|
62 |
|
- |
public ReportRestrictedResourceCommonNames cReports() |
63 |
|
- |
{ |
|
57 |
+ |
public ReportRestrictedResourceCommonNames cReports() { |
64 |
58 |
|
return (ReportRestrictedResourceCommonNames) toMany( this, aReports, ReportRestrictedResourceCommonNames.Factory.INSTANCE ); |
65 |
59 |
|
} |
66 |
60 |
|
|
|
@@ -69,13 +63,11 @@ |
69 |
63 |
|
*/ |
70 |
64 |
|
public final String aStories = mParentPath + "Stories"; |
71 |
65 |
|
|
72 |
|
- |
public StoryNames rStories() |
73 |
|
- |
{ |
|
66 |
+ |
public StoryNames rStories() { |
74 |
67 |
|
return (StoryNames) toOne( this, aStories, StoryNames.Factory.INSTANCE ); |
75 |
68 |
|
} |
76 |
69 |
|
|
77 |
|
- |
public StoryNames cStories() |
78 |
|
- |
{ |
|
70 |
+ |
public StoryNames cStories() { |
79 |
71 |
|
return (StoryNames) toMany( this, aStories, StoryNames.Factory.INSTANCE ); |
80 |
72 |
|
} |
81 |
73 |
|
|
|
@@ -84,56 +76,47 @@ |
84 |
76 |
|
*/ |
85 |
77 |
|
public final String aUsers = mParentPath + "Users"; |
86 |
78 |
|
|
87 |
|
- |
public UserXrefRestrictedResourceNames rUsers() |
88 |
|
- |
{ |
|
79 |
+ |
public UserXrefRestrictedResourceNames rUsers() { |
89 |
80 |
|
return (UserXrefRestrictedResourceNames) toOne( this, aUsers, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
90 |
81 |
|
} |
91 |
82 |
|
|
92 |
|
- |
public UserXrefRestrictedResourceNames cUsers() |
93 |
|
- |
{ |
|
83 |
+ |
public UserXrefRestrictedResourceNames cUsers() { |
94 |
84 |
|
return (UserXrefRestrictedResourceNames) toMany( this, aUsers, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
95 |
85 |
|
} |
96 |
86 |
|
|
97 |
87 |
|
public static class CollectionOf |
98 |
88 |
|
extends RestrictedResourceNames |
99 |
|
- |
implements CollectionOfPONamesAccessor |
100 |
|
- |
{ |
|
89 |
+ |
implements CollectionOfPONamesAccessor { |
101 |
90 |
|
private String mCollectionPath; |
102 |
91 |
|
|
103 |
|
- |
public CollectionOf( String pCollectionPath ) |
104 |
|
- |
{ |
|
92 |
+ |
public CollectionOf( String pCollectionPath ) { |
105 |
93 |
|
super( null, "" ); |
106 |
94 |
|
|
107 |
95 |
|
mCollectionPath = pCollectionPath; |
108 |
96 |
|
} |
109 |
97 |
|
|
110 |
98 |
|
@Override |
111 |
|
- |
public String getCollectionPath() |
112 |
|
- |
{ |
|
99 |
+ |
public String getCollectionPath() { |
113 |
100 |
|
return mCollectionPath; |
114 |
101 |
|
} |
115 |
102 |
|
|
116 |
103 |
|
@Override |
117 |
|
- |
public String toString() |
118 |
|
- |
{ |
|
104 |
+ |
public String toString() { |
119 |
105 |
|
return "c" + super.toString(); |
120 |
106 |
|
} |
121 |
107 |
|
} |
122 |
108 |
|
|
123 |
109 |
|
public static class Factory |
124 |
|
- |
implements IFactory |
125 |
|
- |
{ |
|
110 |
+ |
implements IFactory { |
126 |
111 |
|
public static final IFactory INSTANCE = new Factory(); |
127 |
112 |
|
|
128 |
113 |
|
@Override |
129 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
130 |
|
- |
{ |
|
114 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
131 |
115 |
|
return new RestrictedResourceNames( pBuiltBy, pParentPath ); |
132 |
116 |
|
} |
133 |
117 |
|
|
134 |
118 |
|
@Override |
135 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
136 |
|
- |
{ |
|
119 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
137 |
120 |
|
return new RestrictedResourceNames.CollectionOf( pCollectionPath ); |
138 |
121 |
|
} |
139 |
122 |
|
} |