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
2c76d848
Commit
2c76d848
authored
Aug 09, 2017
by
Nilu
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding location details to J003, J005, J008, C001
parent
a569e05e
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1377 additions
and
93 deletions
+1377
-93
Job.xml
cmsWebApp/sql/Job.xml
+4
-0
Job.sql
cmsWebApp/sql/ms/Job.sql
+4
-0
Job.sql
cmsWebApp/sql/oracle/Job.sql
+4
-0
Job.sql
cmsWebApp/sql/postgres/Job.sql
+4
-0
BaseJob.java
cmsWebApp/src/performa/orm/BaseJob.java
+888
-68
Job.java
cmsWebApp/src/performa/orm/Job.java
+29
-0
Job.xml
cmsWebApp/src/performa/orm/Job.xml
+6
-1
JobPersistenceMgr.java
cmsWebApp/src/performa/orm/JobPersistenceMgr.java
+27
-6
State.java
cmsWebApp/src/performa/orm/types/State.java
+153
-0
State.xml
cmsWebApp/src/performa/orm/types/State.xml
+18
-0
StateType.java
cmsWebApp/src/performa/orm/types/StateType.java
+153
-0
edit_job.jsp
cmsWebApp/webroot/extensions/adminportal/edit_job.jsp
+10
-0
job_title_bar.jsp
...bApp/webroot/extensions/adminportal/inc/job_title_bar.jsp
+1
-0
job_review_submit.jsp
...bApp/webroot/extensions/adminportal/job_review_submit.jsp
+23
-14
workplace_culture.jsp
...bApp/webroot/extensions/adminportal/workplace_culture.jsp
+33
-1
job_overview.jsp
...ebApp/webroot/extensions/applicantportal/job_overview.jsp
+3
-3
20170809_Alter_Job.xml
...broot/extensions/performa/upgrades/20170809_Alter_Job.xml
+17
-0
No files found.
cmsWebApp/sql/Job.xml
View file @
2c76d848
...
...
@@ -19,6 +19,10 @@
<column
name=
"job_type"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"ref_number"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"last_status_change_date"
type=
"Date"
nullable=
"true"
/>
<column
name=
"remote"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"city"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"state"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"country"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"level_id"
type=
"Long"
length=
"11"
nullable=
"false"
/>
<column
name=
"secuser_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
</NODE>
...
...
cmsWebApp/sql/ms/Job.sql
View file @
2c76d848
...
...
@@ -19,6 +19,10 @@ CREATE TABLE tl_job (
job_type
varchar
(
200
)
NOT
NULL
,
ref_number
varchar
(
100
)
NULL
,
last_status_change_date
datetime
NULL
,
remote
char
(
1
)
NULL
,
city
varchar
(
100
)
NULL
,
state
varchar
(
200
)
NULL
,
country
varchar
(
200
)
NULL
,
level_id
numeric
(
12
)
NOT
NULL
,
secuser_id
numeric
(
12
)
NULL
);
...
...
cmsWebApp/sql/oracle/Job.sql
View file @
2c76d848
...
...
@@ -20,6 +20,10 @@ CREATE TABLE tl_job (
job_type
varchar2
(
200
)
NOT
NULL
,
ref_number
varchar2
(
100
)
NULL
,
last_status_change_date
date
NULL
,
remote
char
(
1
)
NULL
,
city
varchar2
(
100
)
NULL
,
state
varchar2
(
200
)
NULL
,
country
varchar2
(
200
)
NULL
,
level_id
number
(
12
)
NOT
NULL
,
secuser_id
number
(
12
)
NULL
);
...
...
cmsWebApp/sql/postgres/Job.sql
View file @
2c76d848
...
...
@@ -20,6 +20,10 @@ CREATE TABLE tl_job (
job_type
varchar
(
200
)
NOT
NULL
,
ref_number
varchar
(
100
)
NULL
,
last_status_change_date
timestamp
NULL
,
remote
char
(
1
)
NULL
,
city
varchar
(
100
)
NULL
,
state
varchar
(
200
)
NULL
,
country
varchar
(
200
)
NULL
,
level_id
numeric
(
12
)
NOT
NULL
,
secuser_id
numeric
(
12
)
NULL
);
...
...
cmsWebApp/src/performa/orm/BaseJob.java
View file @
2c76d848
...
...
@@ -30,6 +30,8 @@ import performa.orm.types.*;
import
oneit.security.*
;
import
oneit.business.shopping.orm.*
;
public
abstract
class
BaseJob
extends
BaseBusinessClass
...
...
@@ -53,6 +55,10 @@ public abstract class BaseJob extends BaseBusinessClass
public
static
final
String
FIELD_JobType
=
"JobType"
;
public
static
final
String
FIELD_ReferenceNumber
=
"ReferenceNumber"
;
public
static
final
String
FIELD_LastStatusChangeDate
=
"LastStatusChangeDate"
;
public
static
final
String
FIELD_Remote
=
"Remote"
;
public
static
final
String
FIELD_City
=
"City"
;
public
static
final
String
FIELD_State
=
"State"
;
public
static
final
String
FIELD_Country
=
"Country"
;
public
static
final
String
FIELD_Email
=
"Email"
;
public
static
final
String
FIELD_CompletedDetails
=
"CompletedDetails"
;
public
static
final
String
FIELD_CompletedRequirements
=
"CompletedRequirements"
;
...
...
@@ -92,6 +98,10 @@ public abstract class BaseJob extends BaseBusinessClass
private
static
final
EnumeratedAttributeHelper
<
Job
,
JobType
>
HELPER_JobType
=
new
EnumeratedAttributeHelper
<
Job
,
JobType
>
(
JobType
.
FACTORY_JobType
);
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_ReferenceNumber
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_LastStatusChangeDate
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_Remote
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_City
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
EnumeratedAttributeHelper
<
Job
,
State
>
HELPER_State
=
new
EnumeratedAttributeHelper
<
Job
,
State
>
(
State
.
FACTORY_State
);
private
static
final
EnumeratedAttributeHelper
<
Job
,
Countries
>
HELPER_Country
=
new
EnumeratedAttributeHelper
<
Job
,
Countries
>
(
Countries
.
FACTORY_Countries
);
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_Email
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_CompletedDetails
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
<
Job
>
HELPER_CompletedRequirements
=
DefaultAttributeHelper
.
INSTANCE
;
...
...
@@ -116,6 +126,10 @@ public abstract class BaseJob extends BaseBusinessClass
private
JobType
_JobType
;
private
String
_ReferenceNumber
;
private
Date
_LastStatusChangeDate
;
private
Boolean
_Remote
;
private
String
_City
;
private
State
_State
;
private
Countries
_Country
;
private
String
_Email
;
private
Boolean
_CompletedDetails
;
private
Boolean
_CompletedRequirements
;
...
...
@@ -167,6 +181,10 @@ public abstract class BaseJob extends BaseBusinessClass
private
static
final
AttributeValidator
[]
FIELD_JobType_Validators
;
private
static
final
AttributeValidator
[]
FIELD_ReferenceNumber_Validators
;
private
static
final
AttributeValidator
[]
FIELD_LastStatusChangeDate_Validators
;
private
static
final
AttributeValidator
[]
FIELD_Remote_Validators
;
private
static
final
AttributeValidator
[]
FIELD_City_Validators
;
private
static
final
AttributeValidator
[]
FIELD_State_Validators
;
private
static
final
AttributeValidator
[]
FIELD_Country_Validators
;
// Arrays of behaviour decorators
...
...
@@ -212,6 +230,10 @@ public abstract class BaseJob extends BaseBusinessClass
FIELD_JobType_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_JobType
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_ReferenceNumber_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_ReferenceNumber
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_LastStatusChangeDate_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_LastStatusChangeDate
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_Remote_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_Remote
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_City_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_City
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_State_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_State
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
FIELD_Country_Validators
=
(
AttributeValidator
[])
setupAttribMetaData_Country
(
validatorMapping
).
toArray
(
new
AttributeValidator
[
0
]);
REFERENCE_Job
.
initialiseReference
();
...
...
@@ -728,6 +750,84 @@ public abstract class BaseJob extends BaseBusinessClass
return
validators
;
}
// Meta Info setup
private
static
List
setupAttribMetaData_Remote
(
Map
validatorMapping
)
{
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"dbcol"
,
"remote"
);
metaInfo
.
put
(
"defaultValue"
,
"Boolean.FALSE"
);
metaInfo
.
put
(
"name"
,
"Remote"
);
metaInfo
.
put
(
"type"
,
"Boolean"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Job.Remote:"
,
metaInfo
);
ATTRIBUTES_METADATA_Job
.
put
(
FIELD_Remote
,
Collections
.
unmodifiableMap
(
metaInfo
));
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Job
.
class
,
"Remote"
,
metaInfo
,
validatorMapping
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Job.Remote:"
,
validators
);
return
validators
;
}
// Meta Info setup
private
static
List
setupAttribMetaData_City
(
Map
validatorMapping
)
{
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"dbcol"
,
"city"
);
metaInfo
.
put
(
"length"
,
"100"
);
metaInfo
.
put
(
"name"
,
"City"
);
metaInfo
.
put
(
"type"
,
"String"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Job.City:"
,
metaInfo
);
ATTRIBUTES_METADATA_Job
.
put
(
FIELD_City
,
Collections
.
unmodifiableMap
(
metaInfo
));
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Job
.
class
,
"City"
,
metaInfo
,
validatorMapping
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Job.City:"
,
validators
);
return
validators
;
}
// Meta Info setup
private
static
List
setupAttribMetaData_State
(
Map
validatorMapping
)
{
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"attribHelper"
,
"EnumeratedAttributeHelper"
);
metaInfo
.
put
(
"dbcol"
,
"state"
);
metaInfo
.
put
(
"defaultValue"
,
"State.WA"
);
metaInfo
.
put
(
"name"
,
"State"
);
metaInfo
.
put
(
"type"
,
"State"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Job.State:"
,
metaInfo
);
ATTRIBUTES_METADATA_Job
.
put
(
FIELD_State
,
Collections
.
unmodifiableMap
(
metaInfo
));
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Job
.
class
,
"State"
,
metaInfo
,
validatorMapping
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Job.State:"
,
validators
);
return
validators
;
}
// Meta Info setup
private
static
List
setupAttribMetaData_Country
(
Map
validatorMapping
)
{
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"attribHelper"
,
"EnumeratedAttributeHelper"
);
metaInfo
.
put
(
"dbcol"
,
"country"
);
metaInfo
.
put
(
"defaultValue"
,
"Countries.AU"
);
metaInfo
.
put
(
"name"
,
"Country"
);
metaInfo
.
put
(
"type"
,
"Countries"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Job.Country:"
,
metaInfo
);
ATTRIBUTES_METADATA_Job
.
put
(
FIELD_Country
,
Collections
.
unmodifiableMap
(
metaInfo
));
List
validators
=
BaseBusinessClass
.
getAttribValidators
(
Job
.
class
,
"Country"
,
metaInfo
,
validatorMapping
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG1
,
"Validators for Job.Country:"
,
validators
);
return
validators
;
}
// END OF STATIC METADATA DEFINITION
...
...
@@ -766,6 +866,10 @@ public abstract class BaseJob extends BaseBusinessClass
_JobType
=
(
JobType
)(
JobType
.
FULL_TIME
);
_ReferenceNumber
=
(
String
)(
HELPER_ReferenceNumber
.
initialise
(
_ReferenceNumber
));
_LastStatusChangeDate
=
(
Date
)(
HELPER_LastStatusChangeDate
.
initialise
(
_LastStatusChangeDate
));
_Remote
=
(
Boolean
)(
Boolean
.
FALSE
);
_City
=
(
String
)(
HELPER_City
.
initialise
(
_City
));
_State
=
(
State
)(
State
.
WA
);
_Country
=
(
Countries
)(
Countries
.
AU
);
_Email
=
(
String
)(
HELPER_Email
.
initialise
(
_Email
));
_CompletedDetails
=
(
Boolean
)(
Boolean
.
FALSE
);
_CompletedRequirements
=
(
Boolean
)(
Boolean
.
FALSE
);
...
...
@@ -1637,47 +1741,439 @@ public abstract class BaseJob extends BaseBusinessClass
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
postJobTypeChange
()
throws
FieldException
protected
void
postJobTypeChange
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_JobType
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute JobType. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
setJobType
(
JobType
newJobType
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_JobType
.
compare
(
_JobType
,
newJobType
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
newJobType
=
bhd
.
setJobType
((
Job
)
this
,
newJobType
);
oldAndNewIdentical
=
HELPER_JobType
.
compare
(
_JobType
,
newJobType
);
}
BusinessObjectParser
.
assertFieldCondition
(
newJobType
!=
null
,
this
,
FIELD_JobType
,
"mandatory"
);
if
(
FIELD_JobType_Validators
.
length
>
0
)
{
Object
newJobTypeObj
=
HELPER_JobType
.
toObject
(
newJobType
);
if
(
newJobTypeObj
!=
null
)
{
int
loopMax
=
FIELD_JobType_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_JobType
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_JobType_Validators
[
v
].
checkAttribute
(
this
,
FIELD_JobType
,
metadata
,
newJobTypeObj
);
}
}
}
}
catch
(
FieldException
e
)
{
if
(!
oldAndNewIdentical
)
{
e
.
setWouldModify
();
}
throw
e
;
}
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_JobType
()
!=
FieldWriteability
.
FALSE
,
"Field JobType is not writeable"
);
preJobTypeChange
(
newJobType
);
markFieldChange
(
FIELD_JobType
);
_JobType
=
newJobType
;
postFieldChange
(
FIELD_JobType
);
postJobTypeChange
();
}
}
/**
* Get the attribute ReferenceNumber
*/
public
String
getReferenceNumber
()
{
assertValid
();
String
valToReturn
=
_ReferenceNumber
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
getReferenceNumber
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
}
/**
* 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.
*/
protected
void
preReferenceNumberChange
(
String
newReferenceNumber
)
throws
FieldException
{
}
/**
* Called after the attribute changes.
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
postReferenceNumberChange
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_ReferenceNumber
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute ReferenceNumber. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
setReferenceNumber
(
String
newReferenceNumber
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_ReferenceNumber
.
compare
(
_ReferenceNumber
,
newReferenceNumber
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
newReferenceNumber
=
bhd
.
setReferenceNumber
((
Job
)
this
,
newReferenceNumber
);
oldAndNewIdentical
=
HELPER_ReferenceNumber
.
compare
(
_ReferenceNumber
,
newReferenceNumber
);
}
if
(
FIELD_ReferenceNumber_Validators
.
length
>
0
)
{
Object
newReferenceNumberObj
=
HELPER_ReferenceNumber
.
toObject
(
newReferenceNumber
);
if
(
newReferenceNumberObj
!=
null
)
{
int
loopMax
=
FIELD_ReferenceNumber_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_ReferenceNumber
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_ReferenceNumber_Validators
[
v
].
checkAttribute
(
this
,
FIELD_ReferenceNumber
,
metadata
,
newReferenceNumberObj
);
}
}
}
}
catch
(
FieldException
e
)
{
if
(!
oldAndNewIdentical
)
{
e
.
setWouldModify
();
}
throw
e
;
}
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_ReferenceNumber
()
!=
FieldWriteability
.
FALSE
,
"Field ReferenceNumber is not writeable"
);
preReferenceNumberChange
(
newReferenceNumber
);
markFieldChange
(
FIELD_ReferenceNumber
);
_ReferenceNumber
=
newReferenceNumber
;
postFieldChange
(
FIELD_ReferenceNumber
);
postReferenceNumberChange
();
}
}
/**
* Get the attribute LastStatusChangeDate
*/
public
Date
getLastStatusChangeDate
()
{
assertValid
();
Date
valToReturn
=
_LastStatusChangeDate
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
getLastStatusChangeDate
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
}
/**
* 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.
*/
protected
void
preLastStatusChangeDateChange
(
Date
newLastStatusChangeDate
)
throws
FieldException
{
}
/**
* Called after the attribute changes.
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
postLastStatusChangeDateChange
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_LastStatusChangeDate
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute LastStatusChangeDate. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
setLastStatusChangeDate
(
Date
newLastStatusChangeDate
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_LastStatusChangeDate
.
compare
(
_LastStatusChangeDate
,
newLastStatusChangeDate
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
newLastStatusChangeDate
=
bhd
.
setLastStatusChangeDate
((
Job
)
this
,
newLastStatusChangeDate
);
oldAndNewIdentical
=
HELPER_LastStatusChangeDate
.
compare
(
_LastStatusChangeDate
,
newLastStatusChangeDate
);
}
if
(
FIELD_LastStatusChangeDate_Validators
.
length
>
0
)
{
Object
newLastStatusChangeDateObj
=
HELPER_LastStatusChangeDate
.
toObject
(
newLastStatusChangeDate
);
if
(
newLastStatusChangeDateObj
!=
null
)
{
int
loopMax
=
FIELD_LastStatusChangeDate_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_LastStatusChangeDate
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_LastStatusChangeDate_Validators
[
v
].
checkAttribute
(
this
,
FIELD_LastStatusChangeDate
,
metadata
,
newLastStatusChangeDateObj
);
}
}
}
}
catch
(
FieldException
e
)
{
if
(!
oldAndNewIdentical
)
{
e
.
setWouldModify
();
}
throw
e
;
}
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_LastStatusChangeDate
()
!=
FieldWriteability
.
FALSE
,
"Field LastStatusChangeDate is not writeable"
);
preLastStatusChangeDateChange
(
newLastStatusChangeDate
);
markFieldChange
(
FIELD_LastStatusChangeDate
);
_LastStatusChangeDate
=
newLastStatusChangeDate
;
postFieldChange
(
FIELD_LastStatusChangeDate
);
postLastStatusChangeDateChange
();
}
}
/**
* Get the attribute Remote
*/
public
Boolean
getRemote
()
{
assertValid
();
Boolean
valToReturn
=
_Remote
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
getRemote
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
}
/**
* 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.
*/
protected
void
preRemoteChange
(
Boolean
newRemote
)
throws
FieldException
{
}
/**
* Called after the attribute changes.
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
postRemoteChange
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_Remote
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute Remote. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
setRemote
(
Boolean
newRemote
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_Remote
.
compare
(
_Remote
,
newRemote
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
newRemote
=
bhd
.
setRemote
((
Job
)
this
,
newRemote
);
oldAndNewIdentical
=
HELPER_Remote
.
compare
(
_Remote
,
newRemote
);
}
if
(
FIELD_Remote_Validators
.
length
>
0
)
{
Object
newRemoteObj
=
HELPER_Remote
.
toObject
(
newRemote
);
if
(
newRemoteObj
!=
null
)
{
int
loopMax
=
FIELD_Remote_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_Remote
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_Remote_Validators
[
v
].
checkAttribute
(
this
,
FIELD_Remote
,
metadata
,
newRemoteObj
);
}
}
}
}
catch
(
FieldException
e
)
{
if
(!
oldAndNewIdentical
)
{
e
.
setWouldModify
();
}
throw
e
;
}
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_Remote
()
!=
FieldWriteability
.
FALSE
,
"Field Remote is not writeable"
);
preRemoteChange
(
newRemote
);
markFieldChange
(
FIELD_Remote
);
_Remote
=
newRemote
;
postFieldChange
(
FIELD_Remote
);
postRemoteChange
();
}
}
/**
* Get the attribute City
*/
public
String
getCity
()
{
assertValid
();
String
valToReturn
=
_City
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
getCity
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
}
/**
* 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.
*/
protected
void
preCityChange
(
String
newCity
)
throws
FieldException
{
}
/**
* Called after the attribute changes.
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
postCityChange
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_
JobType
()
public
FieldWriteability
getWriteability_
City
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute
JobType
. Checks to ensure a new value
* Set the attribute
City
. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
set
JobType
(
JobType
newJobType
)
throws
FieldException
public
void
set
City
(
String
newCity
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_
JobType
.
compare
(
_JobType
,
newJobType
);
boolean
oldAndNewIdentical
=
HELPER_
City
.
compare
(
_City
,
newCity
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
new
JobType
=
bhd
.
setJobType
((
Job
)
this
,
newJobType
);
oldAndNewIdentical
=
HELPER_
JobType
.
compare
(
_JobType
,
newJobType
);
new
City
=
bhd
.
setCity
((
Job
)
this
,
newCity
);
oldAndNewIdentical
=
HELPER_
City
.
compare
(
_City
,
newCity
);
}
BusinessObjectParser
.
assertFieldCondition
(
newJobType
!=
null
,
this
,
FIELD_JobType
,
"mandatory"
);
if
(
FIELD_
JobType
_Validators
.
length
>
0
)
if
(
FIELD_
City
_Validators
.
length
>
0
)
{
Object
new
JobTypeObj
=
HELPER_JobType
.
toObject
(
newJobType
);
Object
new
CityObj
=
HELPER_City
.
toObject
(
newCity
);
if
(
new
JobType
Obj
!=
null
)
if
(
new
City
Obj
!=
null
)
{
int
loopMax
=
FIELD_
JobType
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
JobType
);
int
loopMax
=
FIELD_
City
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
City
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_
JobType_Validators
[
v
].
checkAttribute
(
this
,
FIELD_JobType
,
metadata
,
newJobType
Obj
);
FIELD_
City_Validators
[
v
].
checkAttribute
(
this
,
FIELD_City
,
metadata
,
newCity
Obj
);
}
}
}
...
...
@@ -1695,26 +2191,26 @@ public abstract class BaseJob extends BaseBusinessClass
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_
JobType
()
!=
FieldWriteability
.
FALSE
,
"Field JobType
is not writeable"
);
pre
JobTypeChange
(
newJobType
);
markFieldChange
(
FIELD_
JobType
);
_
JobType
=
newJobType
;
postFieldChange
(
FIELD_
JobType
);
post
JobType
Change
();
Debug
.
assertion
(
getWriteability_
City
()
!=
FieldWriteability
.
FALSE
,
"Field City
is not writeable"
);
pre
CityChange
(
newCity
);
markFieldChange
(
FIELD_
City
);
_
City
=
newCity
;
postFieldChange
(
FIELD_
City
);
post
City
Change
();
}
}
/**
* Get the attribute
ReferenceNumber
* Get the attribute
State
*/
public
St
ring
getReferenceNumber
()
public
St
ate
getState
()
{
assertValid
();
St
ring
valToReturn
=
_ReferenceNumber
;
St
ate
valToReturn
=
_State
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
get
ReferenceNumber
((
Job
)
this
,
valToReturn
);
valToReturn
=
bhd
.
get
State
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
...
...
@@ -1726,7 +2222,7 @@ public abstract class BaseJob extends BaseBusinessClass
* 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.
*/
protected
void
pre
ReferenceNumberChange
(
String
newReferenceNumber
)
throws
FieldException
protected
void
pre
StateChange
(
State
newState
)
throws
FieldException
{
}
...
...
@@ -1736,46 +2232,46 @@ public abstract class BaseJob extends BaseBusinessClass
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
post
ReferenceNumber
Change
()
throws
FieldException
protected
void
post
State
Change
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_
ReferenceNumber
()
public
FieldWriteability
getWriteability_
State
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute
ReferenceNumber
. Checks to ensure a new value
* Set the attribute
State
. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
set
ReferenceNumber
(
String
newReferenceNumber
)
throws
FieldException
public
void
set
State
(
State
newState
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_
ReferenceNumber
.
compare
(
_ReferenceNumber
,
newReferenceNumber
);
boolean
oldAndNewIdentical
=
HELPER_
State
.
compare
(
_State
,
newState
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
new
ReferenceNumber
=
bhd
.
setReferenceNumber
((
Job
)
this
,
newReferenceNumber
);
oldAndNewIdentical
=
HELPER_
ReferenceNumber
.
compare
(
_ReferenceNumber
,
newReferenceNumber
);
new
State
=
bhd
.
setState
((
Job
)
this
,
newState
);
oldAndNewIdentical
=
HELPER_
State
.
compare
(
_State
,
newState
);
}
if
(
FIELD_
ReferenceNumber
_Validators
.
length
>
0
)
if
(
FIELD_
State
_Validators
.
length
>
0
)
{
Object
new
ReferenceNumberObj
=
HELPER_ReferenceNumber
.
toObject
(
newReferenceNumber
);
Object
new
StateObj
=
HELPER_State
.
toObject
(
newState
);
if
(
new
ReferenceNumber
Obj
!=
null
)
if
(
new
State
Obj
!=
null
)
{
int
loopMax
=
FIELD_
ReferenceNumber
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
ReferenceNumber
);
int
loopMax
=
FIELD_
State
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
State
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_
ReferenceNumber_Validators
[
v
].
checkAttribute
(
this
,
FIELD_ReferenceNumber
,
metadata
,
newReferenceNumber
Obj
);
FIELD_
State_Validators
[
v
].
checkAttribute
(
this
,
FIELD_State
,
metadata
,
newState
Obj
);
}
}
}
...
...
@@ -1793,26 +2289,26 @@ public abstract class BaseJob extends BaseBusinessClass
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_
ReferenceNumber
()
!=
FieldWriteability
.
FALSE
,
"Field ReferenceNumber
is not writeable"
);
pre
ReferenceNumberChange
(
newReferenceNumber
);
markFieldChange
(
FIELD_
ReferenceNumber
);
_
ReferenceNumber
=
newReferenceNumber
;
postFieldChange
(
FIELD_
ReferenceNumber
);
post
ReferenceNumber
Change
();
Debug
.
assertion
(
getWriteability_
State
()
!=
FieldWriteability
.
FALSE
,
"Field State
is not writeable"
);
pre
StateChange
(
newState
);
markFieldChange
(
FIELD_
State
);
_
State
=
newState
;
postFieldChange
(
FIELD_
State
);
post
State
Change
();
}
}
/**
* Get the attribute
LastStatusChangeDate
* Get the attribute
Country
*/
public
Date
getLastStatusChangeDate
()
public
Countries
getCountry
()
{
assertValid
();
Date
valToReturn
=
_LastStatusChangeDate
;
Countries
valToReturn
=
_Country
;
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
valToReturn
=
bhd
.
get
LastStatusChangeDate
((
Job
)
this
,
valToReturn
);
valToReturn
=
bhd
.
get
Country
((
Job
)
this
,
valToReturn
);
}
return
valToReturn
;
...
...
@@ -1824,7 +2320,7 @@ public abstract class BaseJob extends BaseBusinessClass
* 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.
*/
protected
void
pre
LastStatusChangeDateChange
(
Date
newLastStatusChangeDate
)
throws
FieldException
protected
void
pre
CountryChange
(
Countries
newCountry
)
throws
FieldException
{
}
...
...
@@ -1834,46 +2330,46 @@ public abstract class BaseJob extends BaseBusinessClass
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected
void
post
LastStatusChangeDate
Change
()
throws
FieldException
protected
void
post
Country
Change
()
throws
FieldException
{
}
public
FieldWriteability
getWriteability_
LastStatusChangeDate
()
public
FieldWriteability
getWriteability_
Country
()
{
return
getFieldWritabilityUtil
(
FieldWriteability
.
TRUE
);
}
/**
* Set the attribute
LastStatusChangeDate
. Checks to ensure a new value
* Set the attribute
Country
. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public
void
set
LastStatusChangeDate
(
Date
newLastStatusChangeDate
)
throws
FieldException
public
void
set
Country
(
Countries
newCountry
)
throws
FieldException
{
boolean
oldAndNewIdentical
=
HELPER_
LastStatusChangeDate
.
compare
(
_LastStatusChangeDate
,
newLastStatusChangeDate
);
boolean
oldAndNewIdentical
=
HELPER_
Country
.
compare
(
_Country
,
newCountry
);
try
{
for
(
JobBehaviourDecorator
bhd
:
Job_BehaviourDecorators
)
{
new
LastStatusChangeDate
=
bhd
.
setLastStatusChangeDate
((
Job
)
this
,
newLastStatusChangeDate
);
oldAndNewIdentical
=
HELPER_
LastStatusChangeDate
.
compare
(
_LastStatusChangeDate
,
newLastStatusChangeDate
);
new
Country
=
bhd
.
setCountry
((
Job
)
this
,
newCountry
);
oldAndNewIdentical
=
HELPER_
Country
.
compare
(
_Country
,
newCountry
);
}
if
(
FIELD_
LastStatusChangeDate
_Validators
.
length
>
0
)
if
(
FIELD_
Country
_Validators
.
length
>
0
)
{
Object
new
LastStatusChangeDateObj
=
HELPER_LastStatusChangeDate
.
toObject
(
newLastStatusChangeDate
);
Object
new
CountryObj
=
HELPER_Country
.
toObject
(
newCountry
);
if
(
new
LastStatusChangeDate
Obj
!=
null
)
if
(
new
Country
Obj
!=
null
)
{
int
loopMax
=
FIELD_
LastStatusChangeDate
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
LastStatusChangeDate
);
int
loopMax
=
FIELD_
Country
_Validators
.
length
;
Map
metadata
=
(
Map
)
ATTRIBUTES_METADATA_Job
.
get
(
FIELD_
Country
);
for
(
int
v
=
0
;
v
<
loopMax
;
++
v
)
{
FIELD_
LastStatusChangeDate_Validators
[
v
].
checkAttribute
(
this
,
FIELD_LastStatusChangeDate
,
metadata
,
newLastStatusChangeDate
Obj
);
FIELD_
Country_Validators
[
v
].
checkAttribute
(
this
,
FIELD_Country
,
metadata
,
newCountry
Obj
);
}
}
}
...
...
@@ -1891,12 +2387,12 @@ public abstract class BaseJob extends BaseBusinessClass
if
(!
oldAndNewIdentical
)
{
assertValid
();
Debug
.
assertion
(
getWriteability_
LastStatusChangeDate
()
!=
FieldWriteability
.
FALSE
,
"Field LastStatusChangeDate
is not writeable"
);
pre
LastStatusChangeDateChange
(
newLastStatusChangeDate
);
markFieldChange
(
FIELD_
LastStatusChangeDate
);
_
LastStatusChangeDate
=
newLastStatusChangeDate
;
postFieldChange
(
FIELD_
LastStatusChangeDate
);
post
LastStatusChangeDate
Change
();
Debug
.
assertion
(
getWriteability_
Country
()
!=
FieldWriteability
.
FALSE
,
"Field Country
is not writeable"
);
pre
CountryChange
(
newCountry
);
markFieldChange
(
FIELD_
Country
);
_
Country
=
newCountry
;
postFieldChange
(
FIELD_
Country
);
post
Country
Change
();
}
}
...
...
@@ -4077,6 +4573,10 @@ public abstract class BaseJob extends BaseBusinessClass
tl_jobPSet
.
setAttrib
(
FIELD_JobType
,
HELPER_JobType
.
toObject
(
_JobType
));
//
tl_jobPSet
.
setAttrib
(
FIELD_ReferenceNumber
,
HELPER_ReferenceNumber
.
toObject
(
_ReferenceNumber
));
//
tl_jobPSet
.
setAttrib
(
FIELD_LastStatusChangeDate
,
HELPER_LastStatusChangeDate
.
toObject
(
_LastStatusChangeDate
));
//
tl_jobPSet
.
setAttrib
(
FIELD_Remote
,
HELPER_Remote
.
toObject
(
_Remote
));
//
tl_jobPSet
.
setAttrib
(
FIELD_City
,
HELPER_City
.
toObject
(
_City
));
//
tl_jobPSet
.
setAttrib
(
FIELD_State
,
HELPER_State
.
toObject
(
_State
));
//
tl_jobPSet
.
setAttrib
(
FIELD_Country
,
HELPER_Country
.
toObject
(
_Country
));
//
_Level
.
getPersistentSets
(
allSets
);
_SecUser
.
getPersistentSets
(
allSets
);
...
...
@@ -4104,6 +4604,10 @@ public abstract class BaseJob extends BaseBusinessClass
_JobType
=
(
JobType
)(
HELPER_JobType
.
fromObject
(
_JobType
,
tl_jobPSet
.
getAttrib
(
FIELD_JobType
)));
//
_ReferenceNumber
=
(
String
)(
HELPER_ReferenceNumber
.
fromObject
(
_ReferenceNumber
,
tl_jobPSet
.
getAttrib
(
FIELD_ReferenceNumber
)));
//
_LastStatusChangeDate
=
(
Date
)(
HELPER_LastStatusChangeDate
.
fromObject
(
_LastStatusChangeDate
,
tl_jobPSet
.
getAttrib
(
FIELD_LastStatusChangeDate
)));
//
_Remote
=
(
Boolean
)(
HELPER_Remote
.
fromObject
(
_Remote
,
tl_jobPSet
.
getAttrib
(
FIELD_Remote
)));
//
_City
=
(
String
)(
HELPER_City
.
fromObject
(
_City
,
tl_jobPSet
.
getAttrib
(
FIELD_City
)));
//
_State
=
(
State
)(
HELPER_State
.
fromObject
(
_State
,
tl_jobPSet
.
getAttrib
(
FIELD_State
)));
//
_Country
=
(
Countries
)(
HELPER_Country
.
fromObject
(
_Country
,
tl_jobPSet
.
getAttrib
(
FIELD_Country
)));
//
_Level
.
setFromPersistentSets
(
objectID
,
allSets
);
_SecUser
.
setFromPersistentSets
(
objectID
,
allSets
);
...
...
@@ -4220,6 +4724,42 @@ public abstract class BaseJob extends BaseBusinessClass
e
.
addException
(
ex
);
}
try
{
setRemote
(
otherJob
.
getRemote
());
}
catch
(
FieldException
ex
)
{
e
.
addException
(
ex
);
}
try
{
setCity
(
otherJob
.
getCity
());
}
catch
(
FieldException
ex
)
{
e
.
addException
(
ex
);
}
try
{
setState
(
otherJob
.
getState
());
}
catch
(
FieldException
ex
)
{
e
.
addException
(
ex
);
}
try
{
setCountry
(
otherJob
.
getCountry
());
}
catch
(
FieldException
ex
)
{
e
.
addException
(
ex
);
}
}
}
...
...
@@ -4246,6 +4786,10 @@ public abstract class BaseJob extends BaseBusinessClass
_JobType
=
sourceJob
.
_JobType
;
_ReferenceNumber
=
sourceJob
.
_ReferenceNumber
;
_LastStatusChangeDate
=
sourceJob
.
_LastStatusChangeDate
;
_Remote
=
sourceJob
.
_Remote
;
_City
=
sourceJob
.
_City
;
_State
=
sourceJob
.
_State
;
_Country
=
sourceJob
.
_Country
;
_Email
=
sourceJob
.
_Email
;
_CompletedDetails
=
sourceJob
.
_CompletedDetails
;
_CompletedRequirements
=
sourceJob
.
_CompletedRequirements
;
...
...
@@ -4329,6 +4873,10 @@ public abstract class BaseJob extends BaseBusinessClass
_JobType
=
(
JobType
)(
HELPER_JobType
.
readExternal
(
_JobType
,
vals
.
get
(
FIELD_JobType
)));
//
_ReferenceNumber
=
(
String
)(
HELPER_ReferenceNumber
.
readExternal
(
_ReferenceNumber
,
vals
.
get
(
FIELD_ReferenceNumber
)));
//
_LastStatusChangeDate
=
(
Date
)(
HELPER_LastStatusChangeDate
.
readExternal
(
_LastStatusChangeDate
,
vals
.
get
(
FIELD_LastStatusChangeDate
)));
//
_Remote
=
(
Boolean
)(
HELPER_Remote
.
readExternal
(
_Remote
,
vals
.
get
(
FIELD_Remote
)));
//
_City
=
(
String
)(
HELPER_City
.
readExternal
(
_City
,
vals
.
get
(
FIELD_City
)));
//
_State
=
(
State
)(
HELPER_State
.
readExternal
(
_State
,
vals
.
get
(
FIELD_State
)));
//
_Country
=
(
Countries
)(
HELPER_Country
.
readExternal
(
_Country
,
vals
.
get
(
FIELD_Country
)));
//
_Email
=
(
String
)(
HELPER_Email
.
readExternal
(
_Email
,
vals
.
get
(
FIELD_Email
)));
//
_CompletedDetails
=
(
Boolean
)(
HELPER_CompletedDetails
.
readExternal
(
_CompletedDetails
,
vals
.
get
(
FIELD_CompletedDetails
)));
//
_CompletedRequirements
=
(
Boolean
)(
HELPER_CompletedRequirements
.
readExternal
(
_CompletedRequirements
,
vals
.
get
(
FIELD_CompletedRequirements
)));
//
...
...
@@ -4369,6 +4917,10 @@ public abstract class BaseJob extends BaseBusinessClass
vals
.
put
(
FIELD_JobType
,
HELPER_JobType
.
writeExternal
(
_JobType
));
vals
.
put
(
FIELD_ReferenceNumber
,
HELPER_ReferenceNumber
.
writeExternal
(
_ReferenceNumber
));
vals
.
put
(
FIELD_LastStatusChangeDate
,
HELPER_LastStatusChangeDate
.
writeExternal
(
_LastStatusChangeDate
));
vals
.
put
(
FIELD_Remote
,
HELPER_Remote
.
writeExternal
(
_Remote
));
vals
.
put
(
FIELD_City
,
HELPER_City
.
writeExternal
(
_City
));
vals
.
put
(
FIELD_State
,
HELPER_State
.
writeExternal
(
_State
));
vals
.
put
(
FIELD_Country
,
HELPER_Country
.
writeExternal
(
_Country
));
vals
.
put
(
FIELD_Email
,
HELPER_Email
.
writeExternal
(
_Email
));
vals
.
put
(
FIELD_CompletedDetails
,
HELPER_CompletedDetails
.
writeExternal
(
_CompletedDetails
));
vals
.
put
(
FIELD_CompletedRequirements
,
HELPER_CompletedRequirements
.
writeExternal
(
_CompletedRequirements
));
...
...
@@ -4444,6 +4996,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
listener
.
notifyFieldChange
(
this
,
other
,
FIELD_LastStatusChangeDate
,
HELPER_LastStatusChangeDate
.
toObject
(
this
.
_LastStatusChangeDate
),
HELPER_LastStatusChangeDate
.
toObject
(
otherJob
.
_LastStatusChangeDate
));
}
if
(!
HELPER_Remote
.
compare
(
this
.
_Remote
,
otherJob
.
_Remote
))
{
listener
.
notifyFieldChange
(
this
,
other
,
FIELD_Remote
,
HELPER_Remote
.
toObject
(
this
.
_Remote
),
HELPER_Remote
.
toObject
(
otherJob
.
_Remote
));
}
if
(!
HELPER_City
.
compare
(
this
.
_City
,
otherJob
.
_City
))
{
listener
.
notifyFieldChange
(
this
,
other
,
FIELD_City
,
HELPER_City
.
toObject
(
this
.
_City
),
HELPER_City
.
toObject
(
otherJob
.
_City
));
}
if
(!
HELPER_State
.
compare
(
this
.
_State
,
otherJob
.
_State
))
{
listener
.
notifyFieldChange
(
this
,
other
,
FIELD_State
,
HELPER_State
.
toObject
(
this
.
_State
),
HELPER_State
.
toObject
(
otherJob
.
_State
));
}
if
(!
HELPER_Country
.
compare
(
this
.
_Country
,
otherJob
.
_Country
))
{
listener
.
notifyFieldChange
(
this
,
other
,
FIELD_Country
,
HELPER_Country
.
toObject
(
this
.
_Country
),
HELPER_Country
.
toObject
(
otherJob
.
_Country
));
}
// Compare single assocs
_AssessmentTemplate
.
compare
(
otherJob
.
_AssessmentTemplate
,
listener
);
...
...
@@ -4495,6 +5063,10 @@ public abstract class BaseJob extends BaseBusinessClass
visitor
.
visitField
(
this
,
FIELD_JobType
,
HELPER_JobType
.
toObject
(
getJobType
()));
visitor
.
visitField
(
this
,
FIELD_ReferenceNumber
,
HELPER_ReferenceNumber
.
toObject
(
getReferenceNumber
()));
visitor
.
visitField
(
this
,
FIELD_LastStatusChangeDate
,
HELPER_LastStatusChangeDate
.
toObject
(
getLastStatusChangeDate
()));
visitor
.
visitField
(
this
,
FIELD_Remote
,
HELPER_Remote
.
toObject
(
getRemote
()));
visitor
.
visitField
(
this
,
FIELD_City
,
HELPER_City
.
toObject
(
getCity
()));
visitor
.
visitField
(
this
,
FIELD_State
,
HELPER_State
.
toObject
(
getState
()));
visitor
.
visitField
(
this
,
FIELD_Country
,
HELPER_Country
.
toObject
(
getCountry
()));
visitor
.
visitAssociation
(
_AssessmentTemplate
);
visitor
.
visitAssociation
(
_CultureTemplate
);
visitor
.
visitAssociation
(
_JobTemplate
);
...
...
@@ -4612,6 +5184,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
return
filter
.
matches
(
getLastStatusChangeDate
());
}
else
if
(
attribName
.
equals
(
FIELD_Remote
))
{
return
filter
.
matches
(
getRemote
());
}
else
if
(
attribName
.
equals
(
FIELD_City
))
{
return
filter
.
matches
(
getCity
());
}
else
if
(
attribName
.
equals
(
FIELD_State
))
{
return
filter
.
matches
(
getState
());
}
else
if
(
attribName
.
equals
(
FIELD_Country
))
{
return
filter
.
matches
(
getCountry
());
}
else
if
(
attribName
.
equals
(
SINGLEREFERENCE_Level
))
{
return
filter
.
matches
(
getLevel
());
...
...
@@ -4717,6 +5305,30 @@ public abstract class BaseJob extends BaseBusinessClass
return
this
;
}
public
SearchAll
andRemote
(
QueryFilter
<
Boolean
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.remote"
,
"Remote"
);
return
this
;
}
public
SearchAll
andCity
(
QueryFilter
<
String
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.city"
,
"City"
);
return
this
;
}
public
SearchAll
andState
(
QueryFilter
<
State
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.state"
,
"State"
);
return
this
;
}
public
SearchAll
andCountry
(
QueryFilter
<
Countries
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.country"
,
"Country"
);
return
this
;
}
public
SearchAll
andLevel
(
QueryFilter
<
Level
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.level_id"
,
"Level"
);
...
...
@@ -4858,6 +5470,30 @@ public abstract class BaseJob extends BaseBusinessClass
return
this
;
}
public
SearchJobKey
andRemote
(
QueryFilter
<
Boolean
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.remote"
,
"Remote"
);
return
this
;
}
public
SearchJobKey
andCity
(
QueryFilter
<
String
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.city"
,
"City"
);
return
this
;
}
public
SearchJobKey
andState
(
QueryFilter
<
State
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.state"
,
"State"
);
return
this
;
}
public
SearchJobKey
andCountry
(
QueryFilter
<
Countries
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.country"
,
"Country"
);
return
this
;
}
public
SearchJobKey
andLevel
(
QueryFilter
<
Level
>
filter
)
{
filter
.
addFilter
(
context
,
"tl_job.level_id"
,
"Level"
);
...
...
@@ -4949,6 +5585,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
return
HELPER_LastStatusChangeDate
.
toObject
(
getLastStatusChangeDate
());
}
else
if
(
attribName
.
equals
(
FIELD_Remote
))
{
return
HELPER_Remote
.
toObject
(
getRemote
());
}
else
if
(
attribName
.
equals
(
FIELD_City
))
{
return
HELPER_City
.
toObject
(
getCity
());
}
else
if
(
attribName
.
equals
(
FIELD_State
))
{
return
HELPER_State
.
toObject
(
getState
());
}
else
if
(
attribName
.
equals
(
FIELD_Country
))
{
return
HELPER_Country
.
toObject
(
getCountry
());
}
else
if
(
attribName
.
equals
(
FIELD_Email
))
{
return
HELPER_Email
.
toObject
(
getEmail
());
...
...
@@ -5046,6 +5698,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
return
HELPER_LastStatusChangeDate
;
}
else
if
(
attribName
.
equals
(
FIELD_Remote
))
{
return
HELPER_Remote
;
}
else
if
(
attribName
.
equals
(
FIELD_City
))
{
return
HELPER_City
;
}
else
if
(
attribName
.
equals
(
FIELD_State
))
{
return
HELPER_State
;
}
else
if
(
attribName
.
equals
(
FIELD_Country
))
{
return
HELPER_Country
;
}
else
if
(
attribName
.
equals
(
FIELD_Email
))
{
return
HELPER_Email
;
...
...
@@ -5143,6 +5811,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
setLastStatusChangeDate
((
Date
)(
HELPER_LastStatusChangeDate
.
fromObject
(
_LastStatusChangeDate
,
attribValue
)));
}
else
if
(
attribName
.
equals
(
FIELD_Remote
))
{
setRemote
((
Boolean
)(
HELPER_Remote
.
fromObject
(
_Remote
,
attribValue
)));
}
else
if
(
attribName
.
equals
(
FIELD_City
))
{
setCity
((
String
)(
HELPER_City
.
fromObject
(
_City
,
attribValue
)));
}
else
if
(
attribName
.
equals
(
FIELD_State
))
{
setState
((
State
)(
HELPER_State
.
fromObject
(
_State
,
attribValue
)));
}
else
if
(
attribName
.
equals
(
FIELD_Country
))
{
setCountry
((
Countries
)(
HELPER_Country
.
fromObject
(
_Country
,
attribValue
)));
}
else
if
(
attribName
.
equals
(
FIELD_Email
))
{
setEmail
((
String
)(
HELPER_Email
.
fromObject
(
_Email
,
attribValue
)));
...
...
@@ -5247,6 +5931,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
return
getWriteability_LastStatusChangeDate
();
}
else
if
(
fieldName
.
equals
(
FIELD_Remote
))
{
return
getWriteability_Remote
();
}
else
if
(
fieldName
.
equals
(
FIELD_City
))
{
return
getWriteability_City
();
}
else
if
(
fieldName
.
equals
(
FIELD_State
))
{
return
getWriteability_State
();
}
else
if
(
fieldName
.
equals
(
FIELD_Country
))
{
return
getWriteability_Country
();
}
else
if
(
fieldName
.
equals
(
MULTIPLEREFERENCE_JobApplications
))
{
return
getWriteability_JobApplications
();
...
...
@@ -5384,6 +6084,26 @@ public abstract class BaseJob extends BaseBusinessClass
fields
.
add
(
FIELD_LastStatusChangeDate
);
}
if
(
getWriteability_Remote
()
!=
FieldWriteability
.
TRUE
)
{
fields
.
add
(
FIELD_Remote
);
}
if
(
getWriteability_City
()
!=
FieldWriteability
.
TRUE
)
{
fields
.
add
(
FIELD_City
);
}
if
(
getWriteability_State
()
!=
FieldWriteability
.
TRUE
)
{
fields
.
add
(
FIELD_State
);
}
if
(
getWriteability_Country
()
!=
FieldWriteability
.
TRUE
)
{
fields
.
add
(
FIELD_Country
);
}
if
(
getWriteability_Email
()
!=
FieldWriteability
.
TRUE
)
{
fields
.
add
(
FIELD_Email
);
...
...
@@ -5454,6 +6174,10 @@ public abstract class BaseJob extends BaseBusinessClass
result
.
add
(
HELPER_JobType
.
getAttribObject
(
getClass
(),
_JobType
,
true
,
FIELD_JobType
));
result
.
add
(
HELPER_ReferenceNumber
.
getAttribObject
(
getClass
(),
_ReferenceNumber
,
false
,
FIELD_ReferenceNumber
));
result
.
add
(
HELPER_LastStatusChangeDate
.
getAttribObject
(
getClass
(),
_LastStatusChangeDate
,
false
,
FIELD_LastStatusChangeDate
));
result
.
add
(
HELPER_Remote
.
getAttribObject
(
getClass
(),
_Remote
,
false
,
FIELD_Remote
));
result
.
add
(
HELPER_City
.
getAttribObject
(
getClass
(),
_City
,
false
,
FIELD_City
));
result
.
add
(
HELPER_State
.
getAttribObject
(
getClass
(),
_State
,
false
,
FIELD_State
));
result
.
add
(
HELPER_Country
.
getAttribObject
(
getClass
(),
_Country
,
false
,
FIELD_Country
));
result
.
add
(
HELPER_Email
.
getAttribObject
(
getClass
(),
_Email
,
false
,
FIELD_Email
));
result
.
add
(
HELPER_CompletedDetails
.
getAttribObject
(
getClass
(),
_CompletedDetails
,
false
,
FIELD_CompletedDetails
));
result
.
add
(
HELPER_CompletedRequirements
.
getAttribObject
(
getClass
(),
_CompletedRequirements
,
false
,
FIELD_CompletedRequirements
));
...
...
@@ -5713,6 +6437,78 @@ public abstract class BaseJob extends BaseBusinessClass
}
/**
* Get the attribute Remote
*/
public
Boolean
getRemote
(
Job
obj
,
Boolean
original
)
{
return
original
;
}
/**
* Change the value set for attribute Remote.
* May modify the field beforehand
* Occurs before validation.
*/
public
Boolean
setRemote
(
Job
obj
,
Boolean
newRemote
)
throws
FieldException
{
return
newRemote
;
}
/**
* Get the attribute City
*/
public
String
getCity
(
Job
obj
,
String
original
)
{
return
original
;
}
/**
* Change the value set for attribute City.
* May modify the field beforehand
* Occurs before validation.
*/
public
String
setCity
(
Job
obj
,
String
newCity
)
throws
FieldException
{
return
newCity
;
}
/**
* Get the attribute State
*/
public
State
getState
(
Job
obj
,
State
original
)
{
return
original
;
}
/**
* Change the value set for attribute State.
* May modify the field beforehand
* Occurs before validation.
*/
public
State
setState
(
Job
obj
,
State
newState
)
throws
FieldException
{
return
newState
;
}
/**
* Get the attribute Country
*/
public
Countries
getCountry
(
Job
obj
,
Countries
original
)
{
return
original
;
}
/**
* Change the value set for attribute Country.
* May modify the field beforehand
* Occurs before validation.
*/
public
Countries
setCountry
(
Job
obj
,
Countries
newCountry
)
throws
FieldException
{
return
newCountry
;
}
/**
* Get the attribute Email
*/
public
String
getEmail
(
Job
obj
,
String
original
)
...
...
@@ -6052,6 +6848,22 @@ public abstract class BaseJob extends BaseBusinessClass
{
return
toLastStatusChangeDate
();
}
if
(
name
.
equals
(
"Remote"
))
{
return
toRemote
();
}
if
(
name
.
equals
(
"City"
))
{
return
toCity
();
}
if
(
name
.
equals
(
"State"
))
{
return
toState
();
}
if
(
name
.
equals
(
"Country"
))
{
return
toCountry
();
}
if
(
name
.
equals
(
"Level"
))
{
return
toLevel
();
...
...
@@ -6107,6 +6919,14 @@ public abstract class BaseJob extends BaseBusinessClass
public
PipeLine
<
From
,
String
>
toReferenceNumber
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
String
>(
FIELD_ReferenceNumber
));
}
public
PipeLine
<
From
,
Date
>
toLastStatusChangeDate
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Date
>(
FIELD_LastStatusChangeDate
));
}
public
PipeLine
<
From
,
Boolean
>
toRemote
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Boolean
>(
FIELD_Remote
));
}
public
PipeLine
<
From
,
String
>
toCity
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
String
>(
FIELD_City
));
}
public
PipeLine
<
From
,
State
>
toState
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
State
>(
FIELD_State
));
}
public
PipeLine
<
From
,
Countries
>
toCountry
()
{
return
pipe
(
new
ORMAttributePipe
<
Me
,
Countries
>(
FIELD_Country
));
}
public
AssessmentCriteriaTemplate
.
AssessmentCriteriaTemplatePipeLineFactory
<
From
,
AssessmentCriteriaTemplate
>
toAssessmentTemplate
()
{
return
toAssessmentTemplate
(
Filter
.
ALL
);
}
public
AssessmentCriteriaTemplate
.
AssessmentCriteriaTemplatePipeLineFactory
<
From
,
AssessmentCriteriaTemplate
>
toAssessmentTemplate
(
Filter
<
AssessmentCriteriaTemplate
>
filter
)
...
...
cmsWebApp/src/performa/orm/Job.java
View file @
2c76d848
...
...
@@ -370,4 +370,32 @@ public class Job extends BaseJob
return
title
.
toString
();
}
public
String
getLocation
()
{
StringBuilder
location
=
new
StringBuilder
();
if
(
getCity
()
!=
null
)
{
location
.
append
(
getCity
()).
append
(
", "
);
}
if
(
getState
()
!=
null
)
{
location
.
append
(
getState
().
getDescription
()).
append
(
", "
);
}
if
(
getCountry
()
!=
null
)
{
location
.
append
(
getCountry
().
getDescription
()).
append
(
"."
);
}
if
(
getRemote
()
!=
null
&&
getRemote
())
{
location
.
append
(
" (Remote OK)"
);
}
return
location
.
toString
();
}
}
\ No newline at end of file
cmsWebApp/src/performa/orm/Job.xml
View file @
2c76d848
...
...
@@ -5,7 +5,8 @@
<BUSINESSCLASS
name=
"Job"
package=
"performa.orm"
>
<IMPORT
value=
"performa.orm.types.*"
/>
<IMPORT
value=
"oneit.security.*"
/>
<IMPORT
value=
"oneit.business.shopping.orm.*"
/>
<MULTIPLEREFERENCE
name=
"JobApplications"
type=
"JobApplication"
backreferenceName=
"Job"
/>
<MULTIPLEREFERENCE
name=
"AssessmentCriterias"
type=
"AssessmentCriteria"
backreferenceName=
"Job"
/>
<MULTIPLEREFERENCE
name=
"CultureCriterias"
type=
"CultureCriteria"
backreferenceName=
"Job"
/>
...
...
@@ -38,6 +39,10 @@
<ATTRIB
name=
"JobType"
type=
"JobType"
dbcol=
"job_type"
attribHelper=
"EnumeratedAttributeHelper"
mandatory=
"true"
defaultValue=
"JobType.FULL_TIME"
/>
<ATTRIB
name=
"ReferenceNumber"
type=
"String"
dbcol=
"ref_number"
length=
"100"
/>
<ATTRIB
name=
"LastStatusChangeDate"
type=
"Date"
dbcol=
"last_status_change_date"
/>
<ATTRIB
name=
"Remote"
type=
"Boolean"
dbcol=
"remote"
defaultValue=
"Boolean.FALSE"
/>
<ATTRIB
name=
"City"
type=
"String"
dbcol=
"city"
length=
"100"
/>
<ATTRIB
name=
"State"
type=
"State"
dbcol=
"state"
defaultValue=
"State.WA"
attribHelper=
"EnumeratedAttributeHelper"
/>
<ATTRIB
name=
"Country"
type=
"Countries"
dbcol=
"country"
defaultValue=
"Countries.AU"
attribHelper=
"EnumeratedAttributeHelper"
/>
<SINGLEREFERENCE
name=
"Level"
type=
"Level"
dbcol=
"level_id"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"SecUser"
type=
"SecUser"
dbcol=
"secuser_id"
/>
...
...
cmsWebApp/src/performa/orm/JobPersistenceMgr.java
View file @
2c76d848
...
...
@@ -16,6 +16,7 @@ import oneit.utils.*;
import
oneit.utils.threading.*
;
import
performa.orm.types.*
;
import
oneit.security.*
;
import
oneit.business.shopping.orm.*
;
...
...
@@ -39,6 +40,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
private
JobType
dummyJobType
;
private
String
dummyReferenceNumber
;
private
Date
dummyLastStatusChangeDate
;
private
Boolean
dummyRemote
;
private
String
dummyCity
;
private
State
dummyState
;
private
Countries
dummyCountry
;
// Static constants corresponding to attribute helpers
...
...
@@ -53,6 +58,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
private
static
final
EnumeratedAttributeHelper
HELPER_JobType
=
new
EnumeratedAttributeHelper
(
JobType
.
FACTORY_JobType
);
private
static
final
DefaultAttributeHelper
HELPER_ReferenceNumber
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
HELPER_LastStatusChangeDate
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
HELPER_Remote
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
DefaultAttributeHelper
HELPER_City
=
DefaultAttributeHelper
.
INSTANCE
;
private
static
final
EnumeratedAttributeHelper
HELPER_State
=
new
EnumeratedAttributeHelper
(
State
.
FACTORY_State
);
private
static
final
EnumeratedAttributeHelper
HELPER_Country
=
new
EnumeratedAttributeHelper
(
Countries
.
FACTORY_Countries
);
...
...
@@ -70,10 +79,14 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
dummyJobType
=
(
JobType
)(
HELPER_JobType
.
initialise
(
dummyJobType
));
dummyReferenceNumber
=
(
String
)(
HELPER_ReferenceNumber
.
initialise
(
dummyReferenceNumber
));
dummyLastStatusChangeDate
=
(
Date
)(
HELPER_LastStatusChangeDate
.
initialise
(
dummyLastStatusChangeDate
));
dummyRemote
=
(
Boolean
)(
HELPER_Remote
.
initialise
(
dummyRemote
));
dummyCity
=
(
String
)(
HELPER_City
.
initialise
(
dummyCity
));
dummyState
=
(
State
)(
HELPER_State
.
initialise
(
dummyState
));
dummyCountry
=
(
Countries
)(
HELPER_Country
.
initialise
(
dummyCountry
));
}
private
String
SELECT_COLUMNS
=
"{PREFIX}tl_job.object_id as id, {PREFIX}tl_job.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}tl_job.object_CREATED_DATE as CREATED_DATE, {PREFIX}tl_job.job_title, {PREFIX}tl_job.job_description, {PREFIX}tl_job.job_status, {PREFIX}tl_job.open_date, {PREFIX}tl_job.apply_by, {PREFIX}tl_job.include_assessment_criteria, {PREFIX}tl_job.assessment_type, {PREFIX}tl_job.random_key, {PREFIX}tl_job.job_type, {PREFIX}tl_job.ref_number, {PREFIX}tl_job.last_status_change_date, {PREFIX}tl_job.level_id, {PREFIX}tl_job.secuser_id, 1 AS commasafe "
;
private
String
SELECT_COLUMNS
=
"{PREFIX}tl_job.object_id as id, {PREFIX}tl_job.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}tl_job.object_CREATED_DATE as CREATED_DATE, {PREFIX}tl_job.job_title, {PREFIX}tl_job.job_description, {PREFIX}tl_job.job_status, {PREFIX}tl_job.open_date, {PREFIX}tl_job.apply_by, {PREFIX}tl_job.include_assessment_criteria, {PREFIX}tl_job.assessment_type, {PREFIX}tl_job.random_key, {PREFIX}tl_job.job_type, {PREFIX}tl_job.ref_number, {PREFIX}tl_job.last_status_change_date, {PREFIX}tl_job.
remote, {PREFIX}tl_job.city, {PREFIX}tl_job.state, {PREFIX}tl_job.country, {PREFIX}tl_job.
level_id, {PREFIX}tl_job.secuser_id, 1 AS commasafe "
;
private
String
SELECT_JOINS
=
""
;
public
BaseBusinessClass
fetchByID
(
ObjectID
id
,
PersistentSetCollection
allPSets
,
RDBMSPersistenceContext
context
,
SQLManager
sqlMgr
)
throws
SQLException
,
StorageException
...
...
@@ -135,6 +148,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_JobType
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_ReferenceNumber
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_LastStatusChangeDate
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_Remote
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_City
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_State
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
FIELD_Country
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
SINGLEREFERENCE_Level
)||
!
tl_jobPSet
.
containsAttrib
(
Job
.
SINGLEREFERENCE_SecUser
))
{
...
...
@@ -206,10 +223,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
{
int
rowsUpdated
=
executeStatement
(
sqlMgr
,
"UPDATE {PREFIX}tl_job "
+
"SET job_title = ?, job_description = ?, job_status = ?, open_date = ?, apply_by = ?, include_assessment_criteria = ?, assessment_type = ?, random_key = ?, job_type = ?, ref_number = ?, last_status_change_date = ?, level_id = ? , secuser_id = ? , object_LAST_UPDATED_DATE = "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
" "
+
"SET job_title = ?, job_description = ?, job_status = ?, open_date = ?, apply_by = ?, include_assessment_criteria = ?, assessment_type = ?, random_key = ?, job_type = ?, ref_number = ?, last_status_change_date = ?,
remote = ?, city = ?, state = ?, country = ?,
level_id = ? , secuser_id = ? , object_LAST_UPDATED_DATE = "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
" "
+
"WHERE tl_job.object_id = ? AND "
+
getConcurrencyCheck
(
sqlMgr
,
"object_LAST_UPDATED_DATE"
,
obj
.
getObjectLastModified
())
+
" "
,
CollectionUtils
.
listEntry
(
HELPER_JobTitle
.
getForSQL
(
dummyJobTitle
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobTitle
))).
listEntry
(
HELPER_JobDescription
.
getForSQL
(
dummyJobDescription
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobDescription
))).
listEntry
(
HELPER_JobStatus
.
getForSQL
(
dummyJobStatus
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobStatus
))).
listEntry
(
HELPER_OpenDate
.
getForSQL
(
dummyOpenDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_OpenDate
))).
listEntry
(
HELPER_ApplyBy
.
getForSQL
(
dummyApplyBy
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ApplyBy
))).
listEntry
(
HELPER_IncludeAssessmentCriteria
.
getForSQL
(
dummyIncludeAssessmentCriteria
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_IncludeAssessmentCriteria
))).
listEntry
(
HELPER_AssessmentType
.
getForSQL
(
dummyAssessmentType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_AssessmentType
))).
listEntry
(
HELPER_RandomKey
.
getForSQL
(
dummyRandomKey
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_RandomKey
))).
listEntry
(
HELPER_JobType
.
getForSQL
(
dummyJobType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobType
))).
listEntry
(
HELPER_ReferenceNumber
.
getForSQL
(
dummyReferenceNumber
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ReferenceNumber
))).
listEntry
(
HELPER_LastStatusChangeDate
.
getForSQL
(
dummyLastStatusChangeDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_LastStatusChangeDate
))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_Level
)))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_SecUser
)))).
listEntry
(
objectID
.
longID
()).
listEntry
(
obj
.
getObjectLastModified
()).
toList
().
toArray
());
CollectionUtils
.
listEntry
(
HELPER_JobTitle
.
getForSQL
(
dummyJobTitle
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobTitle
))).
listEntry
(
HELPER_JobDescription
.
getForSQL
(
dummyJobDescription
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobDescription
))).
listEntry
(
HELPER_JobStatus
.
getForSQL
(
dummyJobStatus
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobStatus
))).
listEntry
(
HELPER_OpenDate
.
getForSQL
(
dummyOpenDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_OpenDate
))).
listEntry
(
HELPER_ApplyBy
.
getForSQL
(
dummyApplyBy
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ApplyBy
))).
listEntry
(
HELPER_IncludeAssessmentCriteria
.
getForSQL
(
dummyIncludeAssessmentCriteria
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_IncludeAssessmentCriteria
))).
listEntry
(
HELPER_AssessmentType
.
getForSQL
(
dummyAssessmentType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_AssessmentType
))).
listEntry
(
HELPER_RandomKey
.
getForSQL
(
dummyRandomKey
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_RandomKey
))).
listEntry
(
HELPER_JobType
.
getForSQL
(
dummyJobType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobType
))).
listEntry
(
HELPER_ReferenceNumber
.
getForSQL
(
dummyReferenceNumber
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ReferenceNumber
))).
listEntry
(
HELPER_LastStatusChangeDate
.
getForSQL
(
dummyLastStatusChangeDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_LastStatusChangeDate
))).
listEntry
(
HELPER_Remote
.
getForSQL
(
dummyRemote
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_Remote
))).
listEntry
(
HELPER_City
.
getForSQL
(
dummyCity
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_City
))).
listEntry
(
HELPER_State
.
getForSQL
(
dummyState
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_State
))).
listEntry
(
HELPER_Country
.
getForSQL
(
dummyCountry
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_Country
))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_Level
)))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_SecUser
)))).
listEntry
(
objectID
.
longID
()).
listEntry
(
obj
.
getObjectLastModified
()).
toList
().
toArray
());
if
(
rowsUpdated
!=
1
)
{
...
...
@@ -532,6 +549,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_JobType
,
HELPER_JobType
.
getFromRS
(
dummyJobType
,
r
,
"job_type"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_ReferenceNumber
,
HELPER_ReferenceNumber
.
getFromRS
(
dummyReferenceNumber
,
r
,
"ref_number"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_LastStatusChangeDate
,
HELPER_LastStatusChangeDate
.
getFromRS
(
dummyLastStatusChangeDate
,
r
,
"last_status_change_date"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_Remote
,
HELPER_Remote
.
getFromRS
(
dummyRemote
,
r
,
"remote"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_City
,
HELPER_City
.
getFromRS
(
dummyCity
,
r
,
"city"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_State
,
HELPER_State
.
getFromRS
(
dummyState
,
r
,
"state"
));
tl_jobPSet
.
setAttrib
(
Job
.
FIELD_Country
,
HELPER_Country
.
getFromRS
(
dummyCountry
,
r
,
"country"
));
tl_jobPSet
.
setAttrib
(
Job
.
SINGLEREFERENCE_Level
,
r
.
getObject
(
"level_id"
));
tl_jobPSet
.
setAttrib
(
Job
.
SINGLEREFERENCE_SecUser
,
r
.
getObject
(
"secuser_id"
));
...
...
@@ -551,10 +572,10 @@ public class JobPersistenceMgr extends ObjectPersistenceMgr
{
executeStatement
(
sqlMgr
,
"INSERT INTO {PREFIX}tl_job "
+
" (job_title, job_description, job_status, open_date, apply_by, include_assessment_criteria, assessment_type, random_key, job_type, ref_number, last_status_change_date, level_id, secuser_id, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE) "
+
" (job_title, job_description, job_status, open_date, apply_by, include_assessment_criteria, assessment_type, random_key, job_type, ref_number, last_status_change_date,
remote, city, state, country,
level_id, secuser_id, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE) "
+
"VALUES "
+
" (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
", "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
")"
,
CollectionUtils
.
listEntry
(
HELPER_JobTitle
.
getForSQL
(
dummyJobTitle
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobTitle
))).
listEntry
(
HELPER_JobDescription
.
getForSQL
(
dummyJobDescription
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobDescription
))).
listEntry
(
HELPER_JobStatus
.
getForSQL
(
dummyJobStatus
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobStatus
))).
listEntry
(
HELPER_OpenDate
.
getForSQL
(
dummyOpenDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_OpenDate
))).
listEntry
(
HELPER_ApplyBy
.
getForSQL
(
dummyApplyBy
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ApplyBy
))).
listEntry
(
HELPER_IncludeAssessmentCriteria
.
getForSQL
(
dummyIncludeAssessmentCriteria
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_IncludeAssessmentCriteria
))).
listEntry
(
HELPER_AssessmentType
.
getForSQL
(
dummyAssessmentType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_AssessmentType
))).
listEntry
(
HELPER_RandomKey
.
getForSQL
(
dummyRandomKey
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_RandomKey
))).
listEntry
(
HELPER_JobType
.
getForSQL
(
dummyJobType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobType
))).
listEntry
(
HELPER_ReferenceNumber
.
getForSQL
(
dummyReferenceNumber
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ReferenceNumber
))).
listEntry
(
HELPER_LastStatusChangeDate
.
getForSQL
(
dummyLastStatusChangeDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_LastStatusChangeDate
)))
.
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_Level
)))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_SecUser
))))
.
listEntry
(
objectID
.
longID
()).
toList
().
toArray
());
" (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?,
?, ?, ?, "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
", "
+
sqlMgr
.
getPortabilityServices
().
getTimestampExpression
()
+
")"
,
CollectionUtils
.
listEntry
(
HELPER_JobTitle
.
getForSQL
(
dummyJobTitle
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobTitle
))).
listEntry
(
HELPER_JobDescription
.
getForSQL
(
dummyJobDescription
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobDescription
))).
listEntry
(
HELPER_JobStatus
.
getForSQL
(
dummyJobStatus
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobStatus
))).
listEntry
(
HELPER_OpenDate
.
getForSQL
(
dummyOpenDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_OpenDate
))).
listEntry
(
HELPER_ApplyBy
.
getForSQL
(
dummyApplyBy
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ApplyBy
))).
listEntry
(
HELPER_IncludeAssessmentCriteria
.
getForSQL
(
dummyIncludeAssessmentCriteria
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_IncludeAssessmentCriteria
))).
listEntry
(
HELPER_AssessmentType
.
getForSQL
(
dummyAssessmentType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_AssessmentType
))).
listEntry
(
HELPER_RandomKey
.
getForSQL
(
dummyRandomKey
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_RandomKey
))).
listEntry
(
HELPER_JobType
.
getForSQL
(
dummyJobType
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_JobType
))).
listEntry
(
HELPER_ReferenceNumber
.
getForSQL
(
dummyReferenceNumber
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_ReferenceNumber
))).
listEntry
(
HELPER_LastStatusChangeDate
.
getForSQL
(
dummyLastStatusChangeDate
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_LastStatusChangeDate
)))
.
listEntry
(
HELPER_Remote
.
getForSQL
(
dummyRemote
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_Remote
))).
listEntry
(
HELPER_City
.
getForSQL
(
dummyCity
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_City
))).
listEntry
(
HELPER_State
.
getForSQL
(
dummyState
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_State
))).
listEntry
(
HELPER_Country
.
getForSQL
(
dummyCountry
,
tl_jobPSet
.
getAttrib
(
Job
.
FIELD_Country
)))
.
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_Level
)))).
listEntry
(
SQLManager
.
CheckNull
((
Long
)(
tl_jobPSet
.
getAttrib
(
Job
.
SINGLEREFERENCE_SecUser
))))
.
listEntry
(
objectID
.
longID
()).
toList
().
toArray
());
tl_jobPSet
.
setStatus
(
PersistentSetStatus
.
PROCESSED
);
}
...
...
cmsWebApp/src/performa/orm/types/State.java
0 → 100644
View file @
2c76d848
package
performa
.
orm
.
types
;
import
java.util.*
;
import
oneit.utils.*
;
/**
* This class was generated using constGen.bat.
* DO NOT MODIFY THIS CODE.
* Edit the associated .xml file, and regenerate this file
* constGen (directory) (file minus extension)
* e.g. constGen C:\...\sql FieldType
*/
public
class
State
extends
AbstractEnumerated
{
public
static
final
EnumeratedFactory
FACTORY_State
=
new
StateFactory
();
public
static
final
State
WA
=
new
State
(
"WA"
,
"WA"
,
"Western Australia"
,
false
);
public
static
final
State
NSW
=
new
State
(
"NSW"
,
"NSW"
,
"New South Wales"
,
false
);
public
static
final
State
VIC
=
new
State
(
"VIC"
,
"VIC"
,
"Victoria"
,
false
);
public
static
final
State
TAS
=
new
State
(
"TAS"
,
"TAS"
,
"Tasmania"
,
false
);
public
static
final
State
QLD
=
new
State
(
"QLD"
,
"QLD"
,
"Queensland"
,
false
);
public
static
final
State
SA
=
new
State
(
"SA"
,
"SA"
,
"South Australia"
,
false
);
public
static
final
State
ACT
=
new
State
(
"ACT"
,
"ACT"
,
"Australian Capital Territory"
,
false
);
public
static
final
State
NT
=
new
State
(
"NT"
,
"NT"
,
"Northern Territory"
,
false
);
public
static
final
State
OS
=
new
State
(
"OS"
,
"OS"
,
"Outside Australia"
,
false
);
private
static
final
State
[]
allStates
=
new
State
[]
{
WA
,
NSW
,
VIC
,
TAS
,
QLD
,
SA
,
ACT
,
NT
,
OS
};
private
static
State
[]
getAllStates
()
{
return
allStates
;
}
private
State
(
String
name
,
String
value
,
String
description
,
boolean
disabled
)
{
super
(
name
,
value
,
description
,
disabled
);
}
public
static
final
Comparator
COMPARE_BY_POSITION
=
new
CompareEnumByPosition
(
allStates
);
static
{
defineAdditionalData
();
}
public
boolean
isEqual
(
State
other
)
{
return
this
.
name
.
equals
(
other
.
name
);
}
public
Enumeration
getAllInstances
()
{
return
State
.
getAll
();
}
private
Object
readResolve
()
throws
java
.
io
.
ObjectStreamException
{
return
State
.
forName
(
this
.
name
);
}
public
EnumeratedFactory
getFactory
()
{
return
FACTORY_State
;
}
public
static
State
forName
(
String
name
)
{
if
(
name
==
null
)
{
return
null
;
}
State
[]
all
=
getAllStates
();
int
enumIndex
=
AbstractEnumerated
.
getIndexForName
(
all
,
name
);
return
all
[
enumIndex
];
}
public
static
State
forValue
(
String
value
)
{
if
(
value
==
null
)
{
return
null
;
}
State
[]
all
=
getAllStates
();
int
enumIndex
=
AbstractEnumerated
.
getIndexForValue
(
getAllStates
(),
value
);
return
all
[
enumIndex
];
}
public
static
java
.
util
.
Enumeration
getAll
()
{
return
AbstractEnumerated
.
getAll
(
getAllStates
());
}
public
static
State
[]
getStateArray
()
{
return
(
State
[])
getAllStates
().
clone
();
}
public
static
void
defineAdditionalData
()
{
}
static
class
StateFactory
implements
EnumeratedFactory
{
public
AbstractEnumerated
getForName
(
String
name
)
{
return
State
.
forName
(
name
);
}
public
AbstractEnumerated
getForValue
(
String
name
)
{
return
State
.
forValue
(
name
);
}
public
Enumeration
getAll
()
{
return
State
.
getAll
();
}
}
public
Map
getAdditionalAttributes
()
{
Map
attribs
=
new
HashMap
();
return
attribs
;
}
}
cmsWebApp/src/performa/orm/types/State.xml
0 → 100644
View file @
2c76d848
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT
package=
"performa.orm.types"
name=
"State"
>
<VALUE
name=
"WA"
value=
"WA"
description=
"Western Australia"
/>
<VALUE
name=
"NSW"
value=
"NSW"
description=
"New South Wales"
/>
<VALUE
name=
"VIC"
value=
"VIC"
description=
"Victoria"
/>
<VALUE
name=
"TAS"
value=
"TAS"
description=
"Tasmania"
/>
<VALUE
name=
"QLD"
value=
"QLD"
description=
"Queensland"
/>
<VALUE
name=
"SA"
value=
"SA"
description=
"South Australia"
/>
<VALUE
name=
"ACT"
value=
"ACT"
description=
"Australian Capital Territory"
/>
<VALUE
name=
"NT"
value=
"NT"
description=
"Northern Territory"
/>
<VALUE
name=
"OS"
value=
"OS"
description=
"Outside Australia"
/>
</CONSTANT>
</ROOT>
\ No newline at end of file
cmsWebApp/src/performa/orm/types/StateType.java
0 → 100644
View file @
2c76d848
package
performa
.
orm
.
types
;
import
java.util.*
;
import
oneit.utils.*
;
/**
* This class was generated using constGen.bat.
* DO NOT MODIFY THIS CODE.
* Edit the associated .xml file, and regenerate this file
* constGen (directory) (file minus extension)
* e.g. constGen C:\...\sql FieldType
*/
public
class
StateType
extends
AbstractEnumerated
{
public
static
final
EnumeratedFactory
FACTORY_StateType
=
new
StateTypeFactory
();
public
static
final
StateType
WA
=
new
StateType
(
"WA"
,
"WA"
,
"Western Australia"
,
false
);
public
static
final
StateType
NSW
=
new
StateType
(
"NSW"
,
"NSW"
,
"New South Wales"
,
false
);
public
static
final
StateType
VIC
=
new
StateType
(
"VIC"
,
"VIC"
,
"Victoria"
,
false
);
public
static
final
StateType
TAS
=
new
StateType
(
"TAS"
,
"TAS"
,
"Tasmania"
,
false
);
public
static
final
StateType
QLD
=
new
StateType
(
"QLD"
,
"QLD"
,
"Queensland"
,
false
);
public
static
final
StateType
SA
=
new
StateType
(
"SA"
,
"SA"
,
"South Australia"
,
false
);
public
static
final
StateType
ACT
=
new
StateType
(
"ACT"
,
"ACT"
,
"Australian Capital Territory"
,
false
);
public
static
final
StateType
NT
=
new
StateType
(
"NT"
,
"NT"
,
"Northern Territory"
,
false
);
public
static
final
StateType
OS
=
new
StateType
(
"OS"
,
"OS"
,
"Outside Australia"
,
false
);
private
static
final
StateType
[]
allStateTypes
=
new
StateType
[]
{
WA
,
NSW
,
VIC
,
TAS
,
QLD
,
SA
,
ACT
,
NT
,
OS
};
private
static
StateType
[]
getAllStateTypes
()
{
return
allStateTypes
;
}
private
StateType
(
String
name
,
String
value
,
String
description
,
boolean
disabled
)
{
super
(
name
,
value
,
description
,
disabled
);
}
public
static
final
Comparator
COMPARE_BY_POSITION
=
new
CompareEnumByPosition
(
allStateTypes
);
static
{
defineAdditionalData
();
}
public
boolean
isEqual
(
StateType
other
)
{
return
this
.
name
.
equals
(
other
.
name
);
}
public
Enumeration
getAllInstances
()
{
return
StateType
.
getAll
();
}
private
Object
readResolve
()
throws
java
.
io
.
ObjectStreamException
{
return
StateType
.
forName
(
this
.
name
);
}
public
EnumeratedFactory
getFactory
()
{
return
FACTORY_StateType
;
}
public
static
StateType
forName
(
String
name
)
{
if
(
name
==
null
)
{
return
null
;
}
StateType
[]
all
=
getAllStateTypes
();
int
enumIndex
=
AbstractEnumerated
.
getIndexForName
(
all
,
name
);
return
all
[
enumIndex
];
}
public
static
StateType
forValue
(
String
value
)
{
if
(
value
==
null
)
{
return
null
;
}
StateType
[]
all
=
getAllStateTypes
();
int
enumIndex
=
AbstractEnumerated
.
getIndexForValue
(
getAllStateTypes
(),
value
);
return
all
[
enumIndex
];
}
public
static
java
.
util
.
Enumeration
getAll
()
{
return
AbstractEnumerated
.
getAll
(
getAllStateTypes
());
}
public
static
StateType
[]
getStateTypeArray
()
{
return
(
StateType
[])
getAllStateTypes
().
clone
();
}
public
static
void
defineAdditionalData
()
{
}
static
class
StateTypeFactory
implements
EnumeratedFactory
{
public
AbstractEnumerated
getForName
(
String
name
)
{
return
StateType
.
forName
(
name
);
}
public
AbstractEnumerated
getForValue
(
String
name
)
{
return
StateType
.
forValue
(
name
);
}
public
Enumeration
getAll
()
{
return
StateType
.
getAll
();
}
}
public
Map
getAdditionalAttributes
()
{
Map
attribs
=
new
HashMap
();
return
attribs
;
}
}
cmsWebApp/webroot/extensions/adminportal/edit_job.jsp
View file @
2c76d848
...
...
@@ -82,6 +82,16 @@
<div class="form-group">
<label class="label-16">Culture</label>
</div>
<div class="form-group">
<div class="row main-review-label">
<div class="col-sm-3 col-xs-12 review-label">
<label><oneit:label GUIName="Location" /></label>
</div>
<div class="col-sm-9 col-xs-12 review-data">
<oneit:toString value="<%= job.getLocation() %>" mode="EscapeHTML"/>
</div>
</div>
</div>
<%
for(CultureClass cultureClass : CultureClass.getCultureClassArray())
{
...
...
cmsWebApp/webroot/extensions/adminportal/inc/job_title_bar.jsp
View file @
2c76d848
...
...
@@ -59,6 +59,7 @@
<span class="edit-btn-dropdown">
<oneit:button value="Share" cssClass="leftbtn" name="gotoPage" skin="link"
disabled="<%= job.getJobStatus() != JobStatus.OPEN ? "true" : "false" %>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", sharePage + "&JobID=" + job.getObjectID())
.mapEntry("cancelProcess", true)
.toMap() %>"/>
...
...
cmsWebApp/webroot/extensions/adminportal/job_review_submit.jsp
View file @
2c76d848
...
...
@@ -58,14 +58,6 @@
</div>
<div class="form-group">
<div class="row main-review-label">
<div class="col-sm-3 col-xs-12 review-label">
<oneit:label GUIName="Job Type" />
</div>
<div class="col-sm-9 col-xs-12 review-data">
<oneit:toString value="<%= job.getLevel() %>" mode="EscapeHTML" />
</div>
</div>
<div class="row main-review-label">
<div class="col-sm-3 col-xs-12 review-label">Client</div>
<div class="col-sm-9 col-xs-12 review-data">Australia Post</div>
</div>
...
...
@@ -80,7 +72,6 @@
</div>
<div class="form-brack-line-sub"></div>
<div class="form-group">
<label class="label-16">Job Match Assessment</label>
<oneit:button value="EDIT" name="gotoPage" cssClass="add-more-btn review-edit-btn pull-right" skin="link"
...
...
@@ -88,11 +79,19 @@
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>"/>
<div class="form-group">
<div class="beloning job-match-ass">
<oneit:toString value="<%= job.getAssessmentType() %>" mode="EscapeHTML"/> <oneit:toString value="<%= job.getAssessmentType().getQuestionDetails() %>" mode="EscapeHTML"/>
</div>
<div class="form-group">
<div class="row main-review-label">
<div class="col-sm-3 col-xs-12 review-label">
<oneit:label GUIName="Job Type" />
</div>
<div class="col-sm-9 col-xs-12 review-data">
<oneit:toString value="<%= job.getLevel() %>" mode="EscapeHTML" />
</div>
</div>
<div class="beloning job-match-ass">
<oneit:toString value="<%= job.getAssessmentType() %>" mode="EscapeHTML"/> <oneit:toString value="<%= job.getAssessmentType().getQuestionDetails() %>" mode="EscapeHTML"/>
</div>
</div>
<div class="form-brack-line-sub"></div>
...
...
@@ -103,6 +102,16 @@
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>"/>
</div>
<div class="form-group">
<div class="row main-review-label">
<div class="col-sm-3 col-xs-12 review-label">
<label><oneit:label GUIName="Location" /></label>
</div>
<div class="col-sm-9 col-xs-12 review-data">
<oneit:toString value="<%= job.getLocation() %>" mode="EscapeHTML"/>
</div>
</div>
</div>
<%
for(CultureClass cultureClass : CultureClass.getCultureClassArray())
{
...
...
@@ -168,13 +177,13 @@
<% } %>
<div class="text-center">
<oneit:button value="Save and go to your jobs" name="save" cssClass="btn btn-primary btn-green largeBtn"
<oneit:button value="Save and go to your jobs" name="save" cssClass="btn btn-primary btn-green largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", jobsPage)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry ("attribNamesToRestore", Collections.singleton("Job"))
.toMap() %>" />
<oneit:button value="
Confirm and make payment
" name="saveJob" cssClass="btn btn-primary top-margin-25 largeBtn"
<oneit:button value="
Open Job
" name="saveJob" cssClass="btn btn-primary top-margin-25 largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry ("attribNamesToRestore", Collections.singleton("Job"))
...
...
cmsWebApp/webroot/extensions/adminportal/workplace_culture.jsp
View file @
2c76d848
...
...
@@ -86,13 +86,45 @@
if(templates.length > 0)
{
%>
<div class="form-group wider-select">
<div class="form-group row wider-select">
<div class="col-md-12">
<tagfile:ormsingleasso_select obj="<%= job %>" assocName="CultureTemplate" options="<%= templates %>"
blankValue="Optional: Select from previously defined Cultures"/>
</div>
</div>
<%
}
%>
<div class="form-group row">
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= job %>" field="Country" /></label>
<oneit:ormEnum obj="<%= job %>" attributeName="Country" cssClass="form-control"/>
</div>
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= job %>" field="State" /></label>
<oneit:ormEnum obj="<%= job %>" attributeName="State" cssClass="form-control"/>
</div>
<div class="col-md-4">
<label><oneit:ormlabel obj="<%= job %>" field="City" /></label>
<oneit:ormInput obj="<%= job %>" type="text" attributeName="City" cssClass="form-control" />
</div>
</div>
<div class="form-group row">
<div class="col-md-4">
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= job %>" id="is-remote" attributeName="Remote" type="checkbox"/>
<oneit:recalcClass htmlTag="span" classScript="job.getRemote() != null && job.getRemote() ? 'checked': 'unchecked'" job="<%= job %>">
<label for="is-remote">
<oneit:label GUIName="Remote?" />
</label>
</oneit:recalcClass>
</div>
</div>
</div>
</div>
<div class="form-brack-line-sub"></div>
<%
FormTag jobForm = FormTag.getActiveFormTag(request);
...
...
cmsWebApp/webroot/extensions/applicantportal/job_overview.jsp
View file @
2c76d848
...
...
@@ -45,15 +45,15 @@
<tbody>
<tr>
<td class="pos-tabel-td">Location:</td>
<td class="pos-tabel-second">
Perth, Western Australia
</td>
<td class="pos-tabel-second">
<oneit:toString value="<%= job.getLocation() %>" mode="EscapeHTML" nullValue="-"/>
</td>
</tr>
<tr>
<td class="pos-tabel-td">Type:</td>
<td class="pos-tabel-second"><oneit:toString value="<%= job.getJobType() %>"
mode="EscapeHTML" nullValue="-"/></td>
<td class="pos-tabel-second"><oneit:toString value="<%= job.getJobType() %>" mode="EscapeHTML" nullValue="-"/></td>
</tr>
<tr>
<td class="pos-tabel-td">Apply by:</td>
<td class="pos-tabel-second"><oneit:toString value="<%= job.getApplyBy() %>"
mode="MidDate" nullValue="-"/></td>
<td class="pos-tabel-second"><oneit:toString value="<%= job.getApplyBy() %>" mode="MidDate" nullValue="-"/></td>
</tr>
</tbody>
</table>
...
...
cmsWebApp/webroot/extensions/performa/upgrades/20170809_Alter_Job.xml
0 → 100644
View file @
2c76d848
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS
name=
""
xmlns:oneit=
"http://www.1iT.com.au"
>
<NODE
name=
"Script"
factory=
"Vector"
>
<NODE
name=
"DDL"
factory=
"Participant"
class=
"oneit.sql.transfer.RedefineTableOperation"
>
<tableName
factory=
"String"
>
tl_job
</tableName>
<column
name=
"remote"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"city"
type=
"String"
nullable=
"true"
length=
"100"
/>
<column
name=
"state"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"country"
type=
"String"
nullable=
"true"
length=
"200"
/>
</NODE>
</NODE>
</OBJECTS>
\ No newline at end of file
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