|
@@ -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.initfrom.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 |
|
|
|
@@ -49,13 +47,11 @@ |
49 |
47 |
|
*/ |
50 |
48 |
|
public final String aEmails = mParentPath + "Emails"; |
51 |
49 |
|
|
52 |
|
- |
public EmailNames rEmails() |
53 |
|
- |
{ |
|
50 |
+ |
public EmailNames rEmails() { |
54 |
51 |
|
return (EmailNames) toOne( this, aEmails, EmailNames.Factory.INSTANCE ); |
55 |
52 |
|
} |
56 |
53 |
|
|
57 |
|
- |
public EmailNames cEmails() |
58 |
|
- |
{ |
|
54 |
+ |
public EmailNames cEmails() { |
59 |
55 |
|
return (EmailNames) toMany( this, aEmails, EmailNames.Factory.INSTANCE ); |
60 |
56 |
|
} |
61 |
57 |
|
|
|
@@ -64,13 +60,11 @@ |
64 |
60 |
|
*/ |
65 |
61 |
|
public final String aLastUsers = mParentPath + "LastUsers"; |
66 |
62 |
|
|
67 |
|
- |
public UserNames rLastUsers() |
68 |
|
- |
{ |
|
63 |
+ |
public UserNames rLastUsers() { |
69 |
64 |
|
return (UserNames) toOne( this, aLastUsers, UserNames.Factory.INSTANCE ); |
70 |
65 |
|
} |
71 |
66 |
|
|
72 |
|
- |
public UserNames cLastUsers() |
73 |
|
- |
{ |
|
67 |
+ |
public UserNames cLastUsers() { |
74 |
68 |
|
return (UserNames) toMany( this, aLastUsers, UserNames.Factory.INSTANCE ); |
75 |
69 |
|
} |
76 |
70 |
|
|
|
@@ -79,13 +73,11 @@ |
79 |
73 |
|
*/ |
80 |
74 |
|
public final String aPhones = mParentPath + "Phones"; |
81 |
75 |
|
|
82 |
|
- |
public PhoneNames rPhones() |
83 |
|
- |
{ |
|
76 |
+ |
public PhoneNames rPhones() { |
84 |
77 |
|
return (PhoneNames) toOne( this, aPhones, PhoneNames.Factory.INSTANCE ); |
85 |
78 |
|
} |
86 |
79 |
|
|
87 |
|
- |
public PhoneNames cPhones() |
88 |
|
- |
{ |
|
80 |
+ |
public PhoneNames cPhones() { |
89 |
81 |
|
return (PhoneNames) toMany( this, aPhones, PhoneNames.Factory.INSTANCE ); |
90 |
82 |
|
} |
91 |
83 |
|
|
|
@@ -94,13 +86,11 @@ |
94 |
86 |
|
*/ |
95 |
87 |
|
public final String aReports = mParentPath + "Reports"; |
96 |
88 |
|
|
97 |
|
- |
public ReportRestrictedResourceCommonNames rReports() |
98 |
|
- |
{ |
|
89 |
+ |
public ReportRestrictedResourceCommonNames rReports() { |
99 |
90 |
|
return (ReportRestrictedResourceCommonNames) toOne( this, aReports, ReportRestrictedResourceCommonNames.Factory.INSTANCE ); |
100 |
91 |
|
} |
101 |
92 |
|
|
102 |
|
- |
public ReportRestrictedResourceCommonNames cReports() |
103 |
|
- |
{ |
|
93 |
+ |
public ReportRestrictedResourceCommonNames cReports() { |
104 |
94 |
|
return (ReportRestrictedResourceCommonNames) toMany( this, aReports, ReportRestrictedResourceCommonNames.Factory.INSTANCE ); |
105 |
95 |
|
} |
106 |
96 |
|
|
|
@@ -109,13 +99,11 @@ |
109 |
99 |
|
*/ |
110 |
100 |
|
public final String aStories = mParentPath + "Stories"; |
111 |
101 |
|
|
112 |
|
- |
public StoryNames rStories() |
113 |
|
- |
{ |
|
102 |
+ |
public StoryNames rStories() { |
114 |
103 |
|
return (StoryNames) toOne( this, aStories, StoryNames.Factory.INSTANCE ); |
115 |
104 |
|
} |
116 |
105 |
|
|
117 |
|
- |
public StoryNames cStories() |
118 |
|
- |
{ |
|
106 |
+ |
public StoryNames cStories() { |
119 |
107 |
|
return (StoryNames) toMany( this, aStories, StoryNames.Factory.INSTANCE ); |
120 |
108 |
|
} |
121 |
109 |
|
|
|
@@ -124,56 +112,47 @@ |
124 |
112 |
|
*/ |
125 |
113 |
|
public final String aUsers = mParentPath + "Users"; |
126 |
114 |
|
|
127 |
|
- |
public UserXrefRestrictedResourceNames rUsers() |
128 |
|
- |
{ |
|
115 |
+ |
public UserXrefRestrictedResourceNames rUsers() { |
129 |
116 |
|
return (UserXrefRestrictedResourceNames) toOne( this, aUsers, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
130 |
117 |
|
} |
131 |
118 |
|
|
132 |
|
- |
public UserXrefRestrictedResourceNames cUsers() |
133 |
|
- |
{ |
|
119 |
+ |
public UserXrefRestrictedResourceNames cUsers() { |
134 |
120 |
|
return (UserXrefRestrictedResourceNames) toMany( this, aUsers, UserXrefRestrictedResourceNames.Factory.INSTANCE ); |
135 |
121 |
|
} |
136 |
122 |
|
|
137 |
123 |
|
public static class CollectionOf |
138 |
124 |
|
extends RestrictedResourceNames |
139 |
|
- |
implements CollectionOfPONamesAccessor |
140 |
|
- |
{ |
|
125 |
+ |
implements CollectionOfPONamesAccessor { |
141 |
126 |
|
private String mCollectionPath; |
142 |
127 |
|
|
143 |
|
- |
public CollectionOf( String pCollectionPath ) |
144 |
|
- |
{ |
|
128 |
+ |
public CollectionOf( String pCollectionPath ) { |
145 |
129 |
|
super( null, "" ); |
146 |
130 |
|
|
147 |
131 |
|
mCollectionPath = pCollectionPath; |
148 |
132 |
|
} |
149 |
133 |
|
|
150 |
134 |
|
@Override |
151 |
|
- |
public String getCollectionPath() |
152 |
|
- |
{ |
|
135 |
+ |
public String getCollectionPath() { |
153 |
136 |
|
return mCollectionPath; |
154 |
137 |
|
} |
155 |
138 |
|
|
156 |
139 |
|
@Override |
157 |
|
- |
public String toString() |
158 |
|
- |
{ |
|
140 |
+ |
public String toString() { |
159 |
141 |
|
return "c" + super.toString(); |
160 |
142 |
|
} |
161 |
143 |
|
} |
162 |
144 |
|
|
163 |
145 |
|
public static class Factory |
164 |
|
- |
implements IFactory |
165 |
|
- |
{ |
|
146 |
+ |
implements IFactory { |
166 |
147 |
|
public static final IFactory INSTANCE = new Factory(); |
167 |
148 |
|
|
168 |
149 |
|
@Override |
169 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
170 |
|
- |
{ |
|
150 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
171 |
151 |
|
return new RestrictedResourceNames( pBuiltBy, pParentPath ); |
172 |
152 |
|
} |
173 |
153 |
|
|
174 |
154 |
|
@Override |
175 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
176 |
|
- |
{ |
|
155 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
177 |
156 |
|
return new RestrictedResourceNames.CollectionOf( pCollectionPath ); |
178 |
157 |
|
} |
179 |
158 |
|
} |