Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
c9074d59
Commit
c9074d59
authored
Sep 26, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding CompletedProfile attribute to company
parent
e708fd06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
61 deletions
+61
-61
BaseCompany.java
cmsWebApp/src/performa/orm/BaseCompany.java
+60
-60
Company.xml
cmsWebApp/src/performa/orm/Company.xml
+1
-1
No files found.
cmsWebApp/src/performa/orm/BaseCompany.java
View file @
c9074d59
...
@@ -60,7 +60,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -60,7 +60,7 @@ public abstract class BaseCompany extends BaseBusinessClass
public
static
final
String
FIELD_LastName
=
"LastName"
;
public
static
final
String
FIELD_LastName
=
"LastName"
;
public
static
final
String
FIELD_RoleType
=
"RoleType"
;
public
static
final
String
FIELD_RoleType
=
"RoleType"
;
public
static
final
String
FIELD_IsLogoDeleted
=
"IsLogoDeleted"
;
public
static
final
String
FIELD_IsLogoDeleted
=
"IsLogoDeleted"
;
public
static
final
String
FIELD_Completed
Invites
=
"CompletedInvites
"
;
public
static
final
String
FIELD_Completed
Profile
=
"CompletedProfile
"
;
public
static
final
String
SINGLEREFERENCE_AddedByUser
=
"AddedByUser"
;
public
static
final
String
SINGLEREFERENCE_AddedByUser
=
"AddedByUser"
;
public
static
final
String
MULTIPLEREFERENCE_Users
=
"Users"
;
public
static
final
String
MULTIPLEREFERENCE_Users
=
"Users"
;
public
static
final
String
BACKREF_Users
=
""
;
public
static
final
String
BACKREF_Users
=
""
;
...
@@ -88,7 +88,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -88,7 +88,7 @@ public abstract class BaseCompany extends BaseBusinessClass
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_LastName
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_LastName
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
EnumeratedAttributeHelper
<
Company
,
RoleType
>
HELPER_RoleType
=
new
EnumeratedAttributeHelper
<
Company
,
RoleType
>
(
RoleType
.
FACTORY_RoleType
);
private
static
final
EnumeratedAttributeHelper
<
Company
,
RoleType
>
HELPER_RoleType
=
new
EnumeratedAttributeHelper
<
Company
,
RoleType
>
(
RoleType
.
FACTORY_RoleType
);
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_IsLogoDeleted
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_IsLogoDeleted
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_Completed
Invites
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Company
>
HELPER_Completed
Profile
=
DefaultAttributeHelper
.
INSTANCE
;
// Private attributes corresponding to business object data
// Private attributes corresponding to business object data
...
@@ -108,7 +108,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -108,7 +108,7 @@ public abstract class BaseCompany extends BaseBusinessClass
private
String
_LastName
;
private
String
_LastName
;
private
RoleType
_RoleType
;
private
RoleType
_RoleType
;
private
Boolean
_IsLogoDeleted
;
private
Boolean
_IsLogoDeleted
;
private
Boolean
_Completed
Invites
;
private
Boolean
_Completed
Profile
;
// Private attributes corresponding to single references
// Private attributes corresponding to single references
...
@@ -129,7 +129,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -129,7 +129,7 @@ public abstract class BaseCompany extends BaseBusinessClass
private
static
final
AttributeValidator
[]
FIELD_LastName_Validators
;
private
static
final
AttributeValidator
[]
FIELD_LastName_Validators
;
private
static
final
AttributeValidator
[]
FIELD_RoleType_Validators
;
private
static
final
AttributeValidator
[]
FIELD_RoleType_Validators
;
private
static
final
AttributeValidator
[]
FIELD_IsLogoDeleted_Validators
;
private
static
final
AttributeValidator
[]
FIELD_IsLogoDeleted_Validators
;
private
static
final
AttributeValidator
[]
FIELD_Completed
Invites
_Validators
;
private
static
final
AttributeValidator
[]
FIELD_Completed
Profile
_Validators
;
private
static
final
AttributeValidator
[]
FIELD_CompanyName_Validators
;
private
static
final
AttributeValidator
[]
FIELD_CompanyName_Validators
;
private
static
final
AttributeValidator
[]
FIELD_CompanyLogo_Validators
;
private
static
final
AttributeValidator
[]
FIELD_CompanyLogo_Validators
;
private
static
final
AttributeValidator
[]
FIELD_HiringTeamType_Validators
;
private
static
final
AttributeValidator
[]
FIELD_HiringTeamType_Validators
;
...
@@ -164,7 +164,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -164,7 +164,7 @@ public abstract class BaseCompany extends BaseBusinessClass
FIELD_LastName_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_LastName
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_LastName_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_LastName
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_RoleType_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_RoleType
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_RoleType_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_RoleType
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_IsLogoDeleted_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_IsLogoDeleted
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_IsLogoDeleted_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_IsLogoDeleted
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_Completed
Invites_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompletedInvites
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_Completed
Profile_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompletedProfile
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_CompanyName_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompanyName
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_CompanyName_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompanyName
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_CompanyLogo_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompanyLogo
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_CompanyLogo_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_CompanyLogo
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_HiringTeamType_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_HiringTeamType
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_HiringTeamType_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_HiringTeamType
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
...
@@ -323,19 +323,19 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -323,19 +323,19 @@ public abstract class BaseCompany extends BaseBusinessClass
}
}
// Meta Info setup
// Meta Info setup
private
static
List
setupAttribMetaData_Completed
Invites
(
Map
validatorMapping
)
private
static
List
setupAttribMetaData_Completed
Profile
(
Map
validatorMapping
)
{
{
Map
metaInfo
=
new
HashMap
();
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"defaultValue"
,
"Boolean.FALSE"
);
metaInfo
.
put
(
"defaultValue"
,
"Boolean.FALSE"
);
metaInfo
.
put
(
"name"
,
"Completed
Invites
"
);
metaInfo
.
put
(
"name"
,
"Completed
Profile
"
);
metaInfo
.
put
(
"type"
,
"Boolean"
);
metaInfo
.
put
(
"type"
,
"Boolean"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Company.Completed
Invites
:"
,
metaInfo
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Company.Completed
Profile
:"
,
metaInfo
);
ATTRIBUTES_METADATA_Company
.
put
(
FIELD_Completed
Invites
,
Collections
.
unmodifiableMap
(
metaInfo
));
ATTRIBUTES_METADATA_Company
.
put
(
FIELD_Completed
Profile
,
Collections
.
unmodifiableMap
(
metaInfo
));
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Company
.
class
,
"Completed
Invites
"
,
metaInfo
,
validatorMapping
);
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Company
.
class
,
"Completed
Profile
"
,
metaInfo
,
validatorMapping
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Company.Completed
Invites
:"
,
validators
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Company.Completed
Profile
:"
,
validators
);
return
validators
;
return
validators
;
}
}
...
@@ -606,7 +606,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -606,7 +606,7 @@ public abstract class BaseCompany extends BaseBusinessClass
_LastName
=
(
String
)(
HELPER_LastName
.
initialise
(
_LastName
));
_LastName
=
(
String
)(
HELPER_LastName
.
initialise
(
_LastName
));
_RoleType
=
(
RoleType
)(
RoleType
.
STANDARD
);
_RoleType
=
(
RoleType
)(
RoleType
.
STANDARD
);
_IsLogoDeleted
=
(
Boolean
)(
Boolean
.
FALSE
);
_IsLogoDeleted
=
(
Boolean
)(
Boolean
.
FALSE
);
_Completed
Invites
=
(
Boolean
)(
Boolean
.
FALSE
);
_Completed
Profile
=
(
Boolean
)(
Boolean
.
FALSE
);
}
}
...
@@ -2207,16 +2207,16 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -2207,16 +2207,16 @@ public abstract class BaseCompany extends BaseBusinessClass
}
}
/**
/**
* Get the attribute Completed
Invites
* Get the attribute Completed
Profile
*/
*/
public
Boolean
getCompleted
Invites
()
public
Boolean
getCompleted
Profile
()
{
{
assertValid
();
assertValid
();
Boolean
valToReturn
=
_Completed
Invites
;
Boolean
valToReturn
=
_Completed
Profile
;
for
(
CompanyBehaviourDecorator
bhd
:
Company_BehaviourDecorators
)
for
(
CompanyBehaviourDecorator
bhd
:
Company_BehaviourDecorators
)
{
{
valToReturn
=
bhd
.
getCompleted
Invites
((
Company
)
this
,
valToReturn
);
valToReturn
=
bhd
.
getCompleted
Profile
((
Company
)
this
,
valToReturn
);
}
}
return
valToReturn
;
return
valToReturn
;
...
@@ -2228,7 +2228,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -2228,7 +2228,7 @@ public abstract class BaseCompany extends BaseBusinessClass
* Called prior to the attribute changing. Subclasses need not call super. If a field exception
* Called prior to the attribute changing. Subclasses need not call super. If a field exception
* is thrown, the attribute change will fail. The new value is different to the old value.
* is thrown, the attribute change will fail. The new value is different to the old value.
*/
*/
protected
void
preCompleted
InvitesChange
(
Boolean
newCompletedInvites
)
throws
FieldException
protected
void
preCompleted
ProfileChange
(
Boolean
newCompletedProfile
)
throws
FieldException
{
{
}
}
...
@@ -2238,46 +2238,46 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -2238,46 +2238,46 @@ public abstract class BaseCompany extends BaseBusinessClass
* If a field exception is thrown, the value is still changed, however it
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
* may lead to the TX being rolled back
*/
*/
protected
void
postCompleted
Invites
Change
()
throws
FieldException
protected
void
postCompleted
Profile
Change
()
throws
FieldException
{
{
}
}
public
FieldWriteability
getWriteability_Completed
Invites
()
public
FieldWriteability
getWriteability_Completed
Profile
()
{
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
}
/**
/**
* Set the attribute Completed
Invites
. Checks to ensure a new value
* Set the attribute Completed
Profile
. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
*/
public
void
setCompleted
Invites
(
Boolean
newCompletedInvites
)
throws
FieldException
public
void
setCompleted
Profile
(
Boolean
newCompletedProfile
)
throws
FieldException
{
{
boolean
oldAndNewIdentical
=
HELPER_Completed
Invites
.
compare
(
_CompletedInvites
,
newCompletedInvites
);
boolean
oldAndNewIdentical
=
HELPER_Completed
Profile
.
compare
(
_CompletedProfile
,
newCompletedProfile
);
try
try
{
{
for
(
CompanyBehaviourDecorator
bhd
:
Company_BehaviourDecorators
)
for
(
CompanyBehaviourDecorator
bhd
:
Company_BehaviourDecorators
)
{
{
newCompleted
Invites
=
bhd
.
setCompletedInvites
((
Company
)
this
,
newCompletedInvites
);
newCompleted
Profile
=
bhd
.
setCompletedProfile
((
Company
)
this
,
newCompletedProfile
);
oldAndNewIdentical
=
HELPER_Completed
Invites
.
compare
(
_CompletedInvites
,
newCompletedInvites
);
oldAndNewIdentical
=
HELPER_Completed
Profile
.
compare
(
_CompletedProfile
,
newCompletedProfile
);
}
}
if
(
FIELD_Completed
Invites
_Validators
.
length
>
0
)
if
(
FIELD_Completed
Profile
_Validators
.
length
>
0
)
{
{
Object
newCompleted
InvitesObj
=
HELPER_CompletedInvites
.
toObject
(
newCompletedInvites
);
Object
newCompleted
ProfileObj
=
HELPER_CompletedProfile
.
toObject
(
newCompletedProfile
);
if
(
newCompleted
Invites
Obj
!=
null
)
if
(
newCompleted
Profile
Obj
!=
null
)
{
{
int
loopMax
=
FIELD_Completed
Invites
_Validators
.
length
;
int
loopMax
=
FIELD_Completed
Profile
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Company
.
get
(
FIELD_Completed
Invites
);
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Company
.
get
(
FIELD_Completed
Profile
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
{
FIELD_Completed
Invites_Validators
[
v
].
checkAttribute
(
this
,
FIELD_CompletedInvites
,
metadata
,
newCompletedInvites
Obj
);
FIELD_Completed
Profile_Validators
[
v
].
checkAttribute
(
this
,
FIELD_CompletedProfile
,
metadata
,
newCompletedProfile
Obj
);
}
}
}
}
}
}
...
@@ -2295,12 +2295,12 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -2295,12 +2295,12 @@ public abstract class BaseCompany extends BaseBusinessClass
if
(!
oldAndNewIdentical
)
if
(!
oldAndNewIdentical
)
{
{
assertValid
();
assertValid
();
Debug
.
assertion
(
getWriteability_Completed
Invites
()
!=
FieldWriteability
.
FALSE
,
"Field CompletedInvites
is not writeable"
);
Debug
.
assertion
(
getWriteability_Completed
Profile
()
!=
FieldWriteability
.
FALSE
,
"Field CompletedProfile
is not writeable"
);
preCompleted
InvitesChange
(
newCompletedInvites
);
preCompleted
ProfileChange
(
newCompletedProfile
);
markFieldChange
(
FIELD_Completed
Invites
);
markFieldChange
(
FIELD_Completed
Profile
);
_Completed
Invites
=
newCompletedInvites
;
_Completed
Profile
=
newCompletedProfile
;
postFieldChange
(
FIELD_Completed
Invites
);
postFieldChange
(
FIELD_Completed
Profile
);
postCompleted
Invites
Change
();
postCompleted
Profile
Change
();
}
}
}
}
...
@@ -3104,7 +3104,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3104,7 +3104,7 @@ public abstract class BaseCompany extends BaseBusinessClass
_LastName
=
sourceCompany
.
_LastName
;
_LastName
=
sourceCompany
.
_LastName
;
_RoleType
=
sourceCompany
.
_RoleType
;
_RoleType
=
sourceCompany
.
_RoleType
;
_IsLogoDeleted
=
sourceCompany
.
_IsLogoDeleted
;
_IsLogoDeleted
=
sourceCompany
.
_IsLogoDeleted
;
_Completed
Invites
=
sourceCompany
.
_CompletedInvites
;
_Completed
Profile
=
sourceCompany
.
_CompletedProfile
;
}
}
}
}
...
@@ -3178,7 +3178,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3178,7 +3178,7 @@ public abstract class BaseCompany extends BaseBusinessClass
_LastName
=
(
String
)(
HELPER_LastName
.
readExternal
(
_LastName
,
vals
.
get
(
FIELD_LastName
)));
//
_LastName
=
(
String
)(
HELPER_LastName
.
readExternal
(
_LastName
,
vals
.
get
(
FIELD_LastName
)));
//
_RoleType
=
(
RoleType
)(
HELPER_RoleType
.
readExternal
(
_RoleType
,
vals
.
get
(
FIELD_RoleType
)));
//
_RoleType
=
(
RoleType
)(
HELPER_RoleType
.
readExternal
(
_RoleType
,
vals
.
get
(
FIELD_RoleType
)));
//
_IsLogoDeleted
=
(
Boolean
)(
HELPER_IsLogoDeleted
.
readExternal
(
_IsLogoDeleted
,
vals
.
get
(
FIELD_IsLogoDeleted
)));
//
_IsLogoDeleted
=
(
Boolean
)(
HELPER_IsLogoDeleted
.
readExternal
(
_IsLogoDeleted
,
vals
.
get
(
FIELD_IsLogoDeleted
)));
//
_Completed
Invites
=
(
Boolean
)(
HELPER_CompletedInvites
.
readExternal
(
_CompletedInvites
,
vals
.
get
(
FIELD_CompletedInvites
)));
//
_Completed
Profile
=
(
Boolean
)(
HELPER_CompletedProfile
.
readExternal
(
_CompletedProfile
,
vals
.
get
(
FIELD_CompletedProfile
)));
//
_AddedByUser
.
readExternalData
(
vals
.
get
(
SINGLEREFERENCE_AddedByUser
));
_AddedByUser
.
readExternalData
(
vals
.
get
(
SINGLEREFERENCE_AddedByUser
));
_Users
.
readExternalData
(
vals
.
get
(
MULTIPLEREFERENCE_Users
));
_Users
.
readExternalData
(
vals
.
get
(
MULTIPLEREFERENCE_Users
));
_Clients
.
readExternalData
(
vals
.
get
(
MULTIPLEREFERENCE_Clients
));
_Clients
.
readExternalData
(
vals
.
get
(
MULTIPLEREFERENCE_Clients
));
...
@@ -3209,7 +3209,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3209,7 +3209,7 @@ public abstract class BaseCompany extends BaseBusinessClass
vals
.
put
(
FIELD_LastName
,
HELPER_LastName
.
writeExternal
(
_LastName
));
vals
.
put
(
FIELD_LastName
,
HELPER_LastName
.
writeExternal
(
_LastName
));
vals
.
put
(
FIELD_RoleType
,
HELPER_RoleType
.
writeExternal
(
_RoleType
));
vals
.
put
(
FIELD_RoleType
,
HELPER_RoleType
.
writeExternal
(
_RoleType
));
vals
.
put
(
FIELD_IsLogoDeleted
,
HELPER_IsLogoDeleted
.
writeExternal
(
_IsLogoDeleted
));
vals
.
put
(
FIELD_IsLogoDeleted
,
HELPER_IsLogoDeleted
.
writeExternal
(
_IsLogoDeleted
));
vals
.
put
(
FIELD_Completed
Invites
,
HELPER_CompletedInvites
.
writeExternal
(
_CompletedInvites
));
vals
.
put
(
FIELD_Completed
Profile
,
HELPER_CompletedProfile
.
writeExternal
(
_CompletedProfile
));
vals
.
put
(
SINGLEREFERENCE_AddedByUser
,
_AddedByUser
.
writeExternalData
());
vals
.
put
(
SINGLEREFERENCE_AddedByUser
,
_AddedByUser
.
writeExternalData
());
vals
.
put
(
MULTIPLEREFERENCE_Users
,
_Users
.
writeExternalData
());
vals
.
put
(
MULTIPLEREFERENCE_Users
,
_Users
.
writeExternalData
());
vals
.
put
(
MULTIPLEREFERENCE_Clients
,
_Clients
.
writeExternalData
());
vals
.
put
(
MULTIPLEREFERENCE_Clients
,
_Clients
.
writeExternalData
());
...
@@ -3292,7 +3292,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3292,7 +3292,7 @@ public abstract class BaseCompany extends BaseBusinessClass
visitor
.
visitField
(
this
,
FIELD_LastName
,
HELPER_LastName
.
toObject
(
getLastName
()));
visitor
.
visitField
(
this
,
FIELD_LastName
,
HELPER_LastName
.
toObject
(
getLastName
()));
visitor
.
visitField
(
this
,
FIELD_RoleType
,
HELPER_RoleType
.
toObject
(
getRoleType
()));
visitor
.
visitField
(
this
,
FIELD_RoleType
,
HELPER_RoleType
.
toObject
(
getRoleType
()));
visitor
.
visitField
(
this
,
FIELD_IsLogoDeleted
,
HELPER_IsLogoDeleted
.
toObject
(
getIsLogoDeleted
()));
visitor
.
visitField
(
this
,
FIELD_IsLogoDeleted
,
HELPER_IsLogoDeleted
.
toObject
(
getIsLogoDeleted
()));
visitor
.
visitField
(
this
,
FIELD_Completed
Invites
,
HELPER_CompletedInvites
.
toObject
(
getCompletedInvites
()));
visitor
.
visitField
(
this
,
FIELD_Completed
Profile
,
HELPER_CompletedProfile
.
toObject
(
getCompletedProfile
()));
}
}
...
@@ -3610,9 +3610,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3610,9 +3610,9 @@ public abstract class BaseCompany extends BaseBusinessClass
{
{
return
HELPER_IsLogoDeleted
.
toObject
(
getIsLogoDeleted
());
return
HELPER_IsLogoDeleted
.
toObject
(
getIsLogoDeleted
());
}
}
else
if
(
attribName
.
equals
(
FIELD_Completed
Invites
))
else
if
(
attribName
.
equals
(
FIELD_Completed
Profile
))
{
{
return
HELPER_Completed
Invites
.
toObject
(
getCompletedInvites
());
return
HELPER_Completed
Profile
.
toObject
(
getCompletedProfile
());
}
}
else
else
{
{
...
@@ -3691,9 +3691,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3691,9 +3691,9 @@ public abstract class BaseCompany extends BaseBusinessClass
{
{
return
HELPER_IsLogoDeleted
;
return
HELPER_IsLogoDeleted
;
}
}
else
if
(
attribName
.
equals
(
FIELD_Completed
Invites
))
else
if
(
attribName
.
equals
(
FIELD_Completed
Profile
))
{
{
return
HELPER_Completed
Invites
;
return
HELPER_Completed
Profile
;
}
}
else
else
{
{
...
@@ -3772,9 +3772,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3772,9 +3772,9 @@ public abstract class BaseCompany extends BaseBusinessClass
{
{
setIsLogoDeleted
((
Boolean
)(
HELPER_IsLogoDeleted
.
fromObject
(
_IsLogoDeleted
,
attribValue
)));
setIsLogoDeleted
((
Boolean
)(
HELPER_IsLogoDeleted
.
fromObject
(
_IsLogoDeleted
,
attribValue
)));
}
}
else
if
(
attribName
.
equals
(
FIELD_Completed
Invites
))
else
if
(
attribName
.
equals
(
FIELD_Completed
Profile
))
{
{
setCompleted
Invites
((
Boolean
)(
HELPER_CompletedInvites
.
fromObject
(
_CompletedInvites
,
attribValue
)));
setCompleted
Profile
((
Boolean
)(
HELPER_CompletedProfile
.
fromObject
(
_CompletedProfile
,
attribValue
)));
}
}
else
else
{
{
...
@@ -3872,9 +3872,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3872,9 +3872,9 @@ public abstract class BaseCompany extends BaseBusinessClass
{
{
return
getWriteability_IsLogoDeleted
();
return
getWriteability_IsLogoDeleted
();
}
}
else
if
(
fieldName
.
equals
(
FIELD_Completed
Invites
))
else
if
(
fieldName
.
equals
(
FIELD_Completed
Profile
))
{
{
return
getWriteability_Completed
Invites
();
return
getWriteability_Completed
Profile
();
}
}
else
else
{
{
...
@@ -3966,9 +3966,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3966,9 +3966,9 @@ public abstract class BaseCompany extends BaseBusinessClass
fields
.
add
(
FIELD_IsLogoDeleted
);
fields
.
add
(
FIELD_IsLogoDeleted
);
}
}
if
(
getWriteability_Completed
Invites
()
!=
FieldWriteability
.
TRUE
)
if
(
getWriteability_Completed
Profile
()
!=
FieldWriteability
.
TRUE
)
{
{
fields
.
add
(
FIELD_Completed
Invites
);
fields
.
add
(
FIELD_Completed
Profile
);
}
}
...
@@ -3996,7 +3996,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -3996,7 +3996,7 @@ public abstract class BaseCompany extends BaseBusinessClass
result
.
add
(
HELPER_LastName
.
getAttribObject
(
getClass
(),
_LastName
,
false
,
FIELD_LastName
));
result
.
add
(
HELPER_LastName
.
getAttribObject
(
getClass
(),
_LastName
,
false
,
FIELD_LastName
));
result
.
add
(
HELPER_RoleType
.
getAttribObject
(
getClass
(),
_RoleType
,
false
,
FIELD_RoleType
));
result
.
add
(
HELPER_RoleType
.
getAttribObject
(
getClass
(),
_RoleType
,
false
,
FIELD_RoleType
));
result
.
add
(
HELPER_IsLogoDeleted
.
getAttribObject
(
getClass
(),
_IsLogoDeleted
,
false
,
FIELD_IsLogoDeleted
));
result
.
add
(
HELPER_IsLogoDeleted
.
getAttribObject
(
getClass
(),
_IsLogoDeleted
,
false
,
FIELD_IsLogoDeleted
));
result
.
add
(
HELPER_Completed
Invites
.
getAttribObject
(
getClass
(),
_CompletedInvites
,
false
,
FIELD_CompletedInvites
));
result
.
add
(
HELPER_Completed
Profile
.
getAttribObject
(
getClass
(),
_CompletedProfile
,
false
,
FIELD_CompletedProfile
));
return
result
;
return
result
;
}
}
...
@@ -4354,21 +4354,21 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -4354,21 +4354,21 @@ public abstract class BaseCompany extends BaseBusinessClass
}
}
/**
/**
* Get the attribute Completed
Invites
* Get the attribute Completed
Profile
*/
*/
public
Boolean
getCompleted
Invites
(
Company
obj
,
Boolean
original
)
public
Boolean
getCompleted
Profile
(
Company
obj
,
Boolean
original
)
{
{
return
original
;
return
original
;
}
}
/**
/**
* Change the value set for attribute Completed
Invites
.
* Change the value set for attribute Completed
Profile
.
* May modify the field beforehand
* May modify the field beforehand
* Occurs before validation.
* Occurs before validation.
*/
*/
public
Boolean
setCompleted
Invites
(
Company
obj
,
Boolean
newCompletedInvites
)
throws
FieldException
public
Boolean
setCompleted
Profile
(
Company
obj
,
Boolean
newCompletedProfile
)
throws
FieldException
{
{
return
newCompleted
Invites
;
return
newCompleted
Profile
;
}
}
}
}
...
@@ -4451,9 +4451,9 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -4451,9 +4451,9 @@ public abstract class BaseCompany extends BaseBusinessClass
{
{
return
toIsLogoDeleted
();
return
toIsLogoDeleted
();
}
}
if
(
name
.
equals
(
"Completed
Invites
"
))
if
(
name
.
equals
(
"Completed
Profile
"
))
{
{
return
toCompleted
Invites
();
return
toCompleted
Profile
();
}
}
if
(
name
.
equals
(
"CompanyName"
))
if
(
name
.
equals
(
"CompanyName"
))
{
{
...
@@ -4519,7 +4519,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -4519,7 +4519,7 @@ public abstract class BaseCompany extends BaseBusinessClass
public
PipeLine
<
From
,
Boolean
>
toIsLogoDeleted
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Boolean
>(
FIELD_IsLogoDeleted
));
}
public
PipeLine
<
From
,
Boolean
>
toIsLogoDeleted
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Boolean
>(
FIELD_IsLogoDeleted
));
}
public
PipeLine
<
From
,
Boolean
>
toCompleted
Invites
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Boolean
>(
FIELD_CompletedInvites
));
}
public
PipeLine
<
From
,
Boolean
>
toCompleted
Profile
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Boolean
>(
FIELD_CompletedProfile
));
}
public
PipeLine
<
From
,
String
>
toCompanyName
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
String
>(
FIELD_CompanyName
));
}
public
PipeLine
<
From
,
String
>
toCompanyName
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
String
>(
FIELD_CompanyName
));
}
...
@@ -4591,7 +4591,7 @@ public abstract class BaseCompany extends BaseBusinessClass
...
@@ -4591,7 +4591,7 @@ public abstract class BaseCompany extends BaseBusinessClass
return
true
;
return
true
;
}
}
if
(
CollectionUtils
.
equals
(
attribName
,
"Completed
Invites
"
))
if
(
CollectionUtils
.
equals
(
attribName
,
"Completed
Profile
"
))
{
{
return
true
;
return
true
;
}
}
...
...
cmsWebApp/src/performa/orm/Company.xml
View file @
c9074d59
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<TRANSIENT
name=
"LastName"
type=
"String"
/>
<TRANSIENT
name=
"LastName"
type=
"String"
/>
<TRANSIENT
name=
"RoleType"
type=
"RoleType"
defaultValue=
"RoleType.STANDARD"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"RoleType"
type=
"RoleType"
defaultValue=
"RoleType.STANDARD"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"IsLogoDeleted"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"IsLogoDeleted"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"Completed
Invites
"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"Completed
Profile
"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TABLE
name=
"tl_company"
tablePrefix=
"object"
>
<TABLE
name=
"tl_company"
tablePrefix=
"object"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment