Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/server/pos/RestrictedResourceNamesGO.java

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