|
@@ -4,123 +4,100 @@ |
4 |
4 |
|
|
5 |
5 |
|
public abstract class RestrictedResourceViewGO |
6 |
6 |
|
extends ViewObject<RestrictedResourceView> |
7 |
|
- |
implements RestrictedResourceViewNames |
8 |
|
- |
{ |
|
7 |
+ |
implements RestrictedResourceViewNames { |
9 |
8 |
|
@Deprecated |
10 |
|
- |
protected RestrictedResourceViewGO() |
11 |
|
- |
{ |
|
9 |
+ |
protected RestrictedResourceViewGO() { |
12 |
10 |
|
super( RestrictedResourceViewMetaData.getInstance() ); |
13 |
11 |
|
} |
14 |
12 |
|
|
15 |
|
- |
protected RestrictedResourceViewGO( boolean pNew, TransactionSet pTransactionSet ) |
16 |
|
- |
{ |
|
13 |
+ |
protected RestrictedResourceViewGO( boolean pNew, TransactionSet pTransactionSet ) { |
17 |
14 |
|
super( RestrictedResourceViewMetaData.getInstance(), pNew, pTransactionSet ); |
18 |
15 |
|
} |
19 |
16 |
|
|
20 |
17 |
|
private Long mID; |
21 |
18 |
|
|
22 |
19 |
|
@Override |
23 |
|
- |
public Long getID() |
24 |
|
- |
{ |
|
20 |
+ |
public Long getID() { |
25 |
21 |
|
return mID; |
26 |
22 |
|
} |
27 |
23 |
|
|
28 |
24 |
|
@Override |
29 |
|
- |
public void setID( Long pID ) |
30 |
|
- |
{ |
|
25 |
+ |
public void setID( Long pID ) { |
31 |
26 |
|
VoAttribute<RestrictedResourceView> zAttribute = getVoAttribute( aID ); |
32 |
|
- |
if ( verifyMutabilityOnChange( zAttribute, getID(), pID = zAttribute.normalize( pID, zAttribute.isRequired() ) ) ) |
33 |
|
- |
{ |
|
27 |
+ |
if ( verifyMutabilityOnChange( zAttribute, getID(), pID = zAttribute.normalize( pID, zAttribute.isRequired() ) ) ) { |
34 |
28 |
|
LLsetID( pID ); |
35 |
29 |
|
} |
36 |
30 |
|
} |
37 |
31 |
|
|
38 |
|
- |
protected void LLsetID( Long pID ) |
39 |
|
- |
{ |
|
32 |
+ |
protected void LLsetID( Long pID ) { |
40 |
33 |
|
mID = pID; |
41 |
34 |
|
} |
42 |
35 |
|
|
43 |
36 |
|
private Boolean mActive; |
44 |
37 |
|
|
45 |
|
- |
public Boolean getActive() |
46 |
|
- |
{ |
|
38 |
+ |
public Boolean getActive() { |
47 |
39 |
|
return mActive; |
48 |
40 |
|
} |
49 |
41 |
|
|
50 |
|
- |
public void setActive( Boolean pActive ) |
51 |
|
- |
{ |
|
42 |
+ |
public void setActive( Boolean pActive ) { |
52 |
43 |
|
VoAttribute<RestrictedResourceView> zAttribute = getVoAttribute( aActive ); |
53 |
|
- |
if ( verifyMutabilityOnChange( zAttribute, getActive(), pActive = zAttribute.normalize( pActive, zAttribute.isRequired() ) ) ) |
54 |
|
- |
{ |
|
44 |
+ |
if ( verifyMutabilityOnChange( zAttribute, getActive(), pActive = zAttribute.normalize( pActive, zAttribute.isRequired() ) ) ) { |
55 |
45 |
|
LLsetActive( pActive ); |
56 |
46 |
|
} |
57 |
47 |
|
} |
58 |
48 |
|
|
59 |
|
- |
protected void LLsetActive( Boolean pActive ) |
60 |
|
- |
{ |
|
49 |
+ |
protected void LLsetActive( Boolean pActive ) { |
61 |
50 |
|
mActive = pActive; |
62 |
51 |
|
} |
63 |
52 |
|
|
64 |
53 |
|
private String mDescription; |
65 |
54 |
|
|
66 |
|
- |
public String getDescription() |
67 |
|
- |
{ |
|
55 |
+ |
public String getDescription() { |
68 |
56 |
|
return mDescription; |
69 |
57 |
|
} |
70 |
58 |
|
|
71 |
|
- |
public void setDescription( String pDescription ) |
72 |
|
- |
{ |
|
59 |
+ |
public void setDescription( String pDescription ) { |
73 |
60 |
|
VoAttribute<RestrictedResourceView> zAttribute = getVoAttribute( aDescription ); |
74 |
|
- |
if ( verifyMutabilityOnChange( zAttribute, getDescription(), pDescription = zAttribute.normalize( pDescription, zAttribute.isRequired() ) ) ) |
75 |
|
- |
{ |
|
61 |
+ |
if ( verifyMutabilityOnChange( zAttribute, getDescription(), pDescription = zAttribute.normalize( pDescription, zAttribute.isRequired() ) ) ) { |
76 |
62 |
|
LLsetDescription( pDescription ); |
77 |
63 |
|
} |
78 |
64 |
|
} |
79 |
65 |
|
|
80 |
|
- |
protected void LLsetDescription( String pDescription ) |
81 |
|
- |
{ |
|
66 |
+ |
protected void LLsetDescription( String pDescription ) { |
82 |
67 |
|
mDescription = pDescription; |
83 |
68 |
|
} |
84 |
69 |
|
|
85 |
70 |
|
private String mName; |
86 |
71 |
|
|
87 |
|
- |
public String getName() |
88 |
|
- |
{ |
|
72 |
+ |
public String getName() { |
89 |
73 |
|
return mName; |
90 |
74 |
|
} |
91 |
75 |
|
|
92 |
|
- |
public void setName( String pName ) |
93 |
|
- |
{ |
|
76 |
+ |
public void setName( String pName ) { |
94 |
77 |
|
VoAttribute<RestrictedResourceView> zAttribute = getVoAttribute( aName ); |
95 |
|
- |
if ( verifyMutabilityOnChange( zAttribute, getName(), pName = zAttribute.normalize( pName, zAttribute.isRequired() ) ) ) |
96 |
|
- |
{ |
|
78 |
+ |
if ( verifyMutabilityOnChange( zAttribute, getName(), pName = zAttribute.normalize( pName, zAttribute.isRequired() ) ) ) { |
97 |
79 |
|
LLsetName( pName ); |
98 |
80 |
|
} |
99 |
81 |
|
} |
100 |
82 |
|
|
101 |
|
- |
protected void LLsetName( String pName ) |
102 |
|
- |
{ |
|
83 |
+ |
protected void LLsetName( String pName ) { |
103 |
84 |
|
mName = pName; |
104 |
85 |
|
} |
105 |
86 |
|
|
106 |
87 |
|
private Boolean mShowInactive; |
107 |
88 |
|
|
108 |
|
- |
public Boolean getShowInactive() |
109 |
|
- |
{ |
|
89 |
+ |
public Boolean getShowInactive() { |
110 |
90 |
|
return mShowInactive; |
111 |
91 |
|
} |
112 |
92 |
|
|
113 |
|
- |
public void setShowInactive( Boolean pShowInactive ) |
114 |
|
- |
{ |
|
93 |
+ |
public void setShowInactive( Boolean pShowInactive ) { |
115 |
94 |
|
VoAttribute<RestrictedResourceView> zAttribute = getVoAttribute( aShowInactive ); |
116 |
|
- |
if ( verifyMutabilityOnChange( zAttribute, getShowInactive(), pShowInactive = zAttribute.normalize( pShowInactive, zAttribute.isRequired() ) ) ) |
117 |
|
- |
{ |
|
95 |
+ |
if ( verifyMutabilityOnChange( zAttribute, getShowInactive(), pShowInactive = zAttribute.normalize( pShowInactive, zAttribute.isRequired() ) ) ) { |
118 |
96 |
|
LLsetShowInactive( pShowInactive ); |
119 |
97 |
|
} |
120 |
98 |
|
} |
121 |
99 |
|
|
122 |
|
- |
protected void LLsetShowInactive( Boolean pShowInactive ) |
123 |
|
- |
{ |
|
100 |
+ |
protected void LLsetShowInactive( Boolean pShowInactive ) { |
124 |
101 |
|
mShowInactive = pShowInactive; |
125 |
102 |
|
} |
126 |
103 |
|
} |