Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/UserNamesGO.java

Diff revisions: vs.
  @@ -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.prioritizer.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 aCreatedStories = mParentPath + "CreatedStories";
131 127
132 - public StoryNames rCreatedStories()
133 - {
128 + public StoryNames rCreatedStories() {
134 129 return (StoryNames) toOne( this, aCreatedStories, StoryNames.Factory.INSTANCE );
135 130 }
136 131
137 - public StoryNames cCreatedStories()
138 - {
132 + public StoryNames cCreatedStories() {
139 133 return (StoryNames) toMany( this, aCreatedStories, StoryNames.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 aRestrictedResources = mParentPath + "RestrictedResources";
176 166
177 - public UserXrefRestrictedResourceNames rRestrictedResources()
178 - {
167 + public UserXrefRestrictedResourceNames rRestrictedResources() {
179 168 return (UserXrefRestrictedResourceNames) toOne( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE );
180 169 }
181 170
182 - public UserXrefRestrictedResourceNames cRestrictedResources()
183 - {
171 + public UserXrefRestrictedResourceNames cRestrictedResources() {
184 172 return (UserXrefRestrictedResourceNames) toMany( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE );
185 173 }
186 174
  @@ -189,56 +177,47 @@
189 177 */
190 178 public final String aStoryUpdates = mParentPath + "StoryUpdates";
191 179
192 - public StoryUpdateNames rStoryUpdates()
193 - {
180 + public StoryUpdateNames rStoryUpdates() {
194 181 return (StoryUpdateNames) toOne( this, aStoryUpdates, StoryUpdateNames.Factory.INSTANCE );
195 182 }
196 183
197 - public StoryUpdateNames cStoryUpdates()
198 - {
184 + public StoryUpdateNames cStoryUpdates() {
199 185 return (StoryUpdateNames) toMany( this, aStoryUpdates, StoryUpdateNames.Factory.INSTANCE );
200 186 }
201 187
202 188 public static class CollectionOf
203 189 extends UserNames
204 - implements CollectionOfPONamesAccessor
205 - {
190 + implements CollectionOfPONamesAccessor {
206 191 private String mCollectionPath;
207 192
208 - public CollectionOf( String pCollectionPath )
209 - {
193 + public CollectionOf( String pCollectionPath ) {
210 194 super( null, "" );
211 195
212 196 mCollectionPath = pCollectionPath;
213 197 }
214 198
215 199 @Override
216 - public String getCollectionPath()
217 - {
200 + public String getCollectionPath() {
218 201 return mCollectionPath;
219 202 }
220 203
221 204 @Override
222 - public String toString()
223 - {
205 + public String toString() {
224 206 return "c" + super.toString();
225 207 }
226 208 }
227 209
228 210 public static class Factory
229 - implements IFactory
230 - {
211 + implements IFactory {
231 212 public static final IFactory INSTANCE = new Factory();
232 213
233 214 @Override
234 - public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath )
235 - {
215 + public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) {
236 216 return new UserNames( pBuiltBy, pParentPath );
237 217 }
238 218
239 219 @Override
240 - public AbstractPONames createToMany( String pCollectionPath )
241 - {
220 + public AbstractPONames createToMany( String pCollectionPath ) {
242 221 return new UserNames.CollectionOf( pCollectionPath );
243 222 }
244 223 }