Commit 07bf7755 by Nilu

S12520241 # Client - Incoming Issues (raised by Client) #Google Location on job but not Applicant

parent 57f86a57
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
<column name="verification_mail_send_date" type="Date" nullable="true"/> <column name="verification_mail_send_date" type="Date" nullable="true"/>
<column name="verification_key" type="String" nullable="true" length="10"/> <column name="verification_key" type="String" nullable="true" length="10"/>
<column name="is_account_verified" type="Boolean" nullable="true"/> <column name="is_account_verified" type="Boolean" nullable="true"/>
<column name="google_address_text" type="String" nullable="true" length="300"/>
<column name="prefer_remote" type="Boolean" nullable="true"/>
<column name="happy_to_relocate" type="Boolean" nullable="true"/>
<column name="test_input_id" type="Long" length="11" nullable="true"/> <column name="test_input_id" type="Long" length="11" nullable="true"/>
<column name="user_id" type="Long" length="11" nullable="true"/> <column name="user_id" type="Long" length="11" nullable="true"/>
</NODE> </NODE>
......
...@@ -14,6 +14,9 @@ CREATE TABLE oneit_sec_user_extension ( ...@@ -14,6 +14,9 @@ CREATE TABLE oneit_sec_user_extension (
verification_mail_send_date datetime NULL, verification_mail_send_date datetime NULL,
verification_key varchar(10) NULL, verification_key varchar(10) NULL,
is_account_verified char(1) NULL, is_account_verified char(1) NULL,
google_address_text varchar(300) NULL,
prefer_remote char(1) NULL,
happy_to_relocate char(1) NULL,
test_input_id numeric(12) NULL, test_input_id numeric(12) NULL,
user_id numeric(12) NULL user_id numeric(12) NULL
); );
......
...@@ -15,6 +15,9 @@ CREATE TABLE oneit_sec_user_extension ( ...@@ -15,6 +15,9 @@ CREATE TABLE oneit_sec_user_extension (
verification_mail_send_date date NULL, verification_mail_send_date date NULL,
verification_key varchar2(10) NULL, verification_key varchar2(10) NULL,
is_account_verified char(1) NULL, is_account_verified char(1) NULL,
google_address_text varchar2(300) NULL,
prefer_remote char(1) NULL,
happy_to_relocate char(1) NULL,
test_input_id number(12) NULL, test_input_id number(12) NULL,
user_id number(12) NULL user_id number(12) NULL
); );
......
...@@ -15,6 +15,9 @@ CREATE TABLE oneit_sec_user_extension ( ...@@ -15,6 +15,9 @@ CREATE TABLE oneit_sec_user_extension (
verification_mail_send_date timestamp NULL, verification_mail_send_date timestamp NULL,
verification_key varchar(10) NULL, verification_key varchar(10) NULL,
is_account_verified char(1) NULL, is_account_verified char(1) NULL,
google_address_text varchar(300) NULL,
prefer_remote char(1) NULL,
happy_to_relocate char(1) NULL,
test_input_id numeric(12) NULL, test_input_id numeric(12) NULL,
user_id numeric(12) NULL user_id numeric(12) NULL
); );
......
...@@ -46,6 +46,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -46,6 +46,9 @@ public abstract class BaseCandidate extends SecUserExtension
public static final String FIELD_VerificationMailSendDate = "VerificationMailSendDate"; public static final String FIELD_VerificationMailSendDate = "VerificationMailSendDate";
public static final String FIELD_VerificationKey = "VerificationKey"; public static final String FIELD_VerificationKey = "VerificationKey";
public static final String FIELD_IsAccountVerified = "IsAccountVerified"; public static final String FIELD_IsAccountVerified = "IsAccountVerified";
public static final String FIELD_GoogleAddressText = "GoogleAddressText";
public static final String FIELD_PreferRemote = "PreferRemote";
public static final String FIELD_HappyToRelocate = "HappyToRelocate";
public static final String FIELD_PrivacyPolicyAgreed = "PrivacyPolicyAgreed"; public static final String FIELD_PrivacyPolicyAgreed = "PrivacyPolicyAgreed";
public static final String FIELD_ConditionsAgreed = "ConditionsAgreed"; public static final String FIELD_ConditionsAgreed = "ConditionsAgreed";
public static final String SINGLEREFERENCE_TestInput = "TestInput"; public static final String SINGLEREFERENCE_TestInput = "TestInput";
...@@ -71,6 +74,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -71,6 +74,9 @@ public abstract class BaseCandidate extends SecUserExtension
private static final DefaultAttributeHelper<Candidate> HELPER_VerificationMailSendDate = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper<Candidate> HELPER_VerificationMailSendDate = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_VerificationKey = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper<Candidate> HELPER_VerificationKey = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_IsAccountVerified = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper<Candidate> HELPER_IsAccountVerified = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_GoogleAddressText = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_PreferRemote = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_HappyToRelocate = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_PrivacyPolicyAgreed = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper<Candidate> HELPER_PrivacyPolicyAgreed = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<Candidate> HELPER_ConditionsAgreed = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper<Candidate> HELPER_ConditionsAgreed = DefaultAttributeHelper.INSTANCE;
...@@ -82,6 +88,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -82,6 +88,9 @@ public abstract class BaseCandidate extends SecUserExtension
private Date _VerificationMailSendDate; private Date _VerificationMailSendDate;
private String _VerificationKey; private String _VerificationKey;
private Boolean _IsAccountVerified; private Boolean _IsAccountVerified;
private String _GoogleAddressText;
private Boolean _PreferRemote;
private Boolean _HappyToRelocate;
private Boolean _PrivacyPolicyAgreed; private Boolean _PrivacyPolicyAgreed;
private Boolean _ConditionsAgreed; private Boolean _ConditionsAgreed;
...@@ -109,6 +118,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -109,6 +118,9 @@ public abstract class BaseCandidate extends SecUserExtension
private static final AttributeValidator[] FIELD_VerificationMailSendDate_Validators; private static final AttributeValidator[] FIELD_VerificationMailSendDate_Validators;
private static final AttributeValidator[] FIELD_VerificationKey_Validators; private static final AttributeValidator[] FIELD_VerificationKey_Validators;
private static final AttributeValidator[] FIELD_IsAccountVerified_Validators; private static final AttributeValidator[] FIELD_IsAccountVerified_Validators;
private static final AttributeValidator[] FIELD_GoogleAddressText_Validators;
private static final AttributeValidator[] FIELD_PreferRemote_Validators;
private static final AttributeValidator[] FIELD_HappyToRelocate_Validators;
// Arrays of behaviour decorators // Arrays of behaviour decorators
...@@ -140,6 +152,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -140,6 +152,9 @@ public abstract class BaseCandidate extends SecUserExtension
FIELD_VerificationMailSendDate_Validators = (AttributeValidator[])setupAttribMetaData_VerificationMailSendDate(validatorMapping).toArray (new AttributeValidator[0]); FIELD_VerificationMailSendDate_Validators = (AttributeValidator[])setupAttribMetaData_VerificationMailSendDate(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_VerificationKey_Validators = (AttributeValidator[])setupAttribMetaData_VerificationKey(validatorMapping).toArray (new AttributeValidator[0]); FIELD_VerificationKey_Validators = (AttributeValidator[])setupAttribMetaData_VerificationKey(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_IsAccountVerified_Validators = (AttributeValidator[])setupAttribMetaData_IsAccountVerified(validatorMapping).toArray (new AttributeValidator[0]); FIELD_IsAccountVerified_Validators = (AttributeValidator[])setupAttribMetaData_IsAccountVerified(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_GoogleAddressText_Validators = (AttributeValidator[])setupAttribMetaData_GoogleAddressText(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_PreferRemote_Validators = (AttributeValidator[])setupAttribMetaData_PreferRemote(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_HappyToRelocate_Validators = (AttributeValidator[])setupAttribMetaData_HappyToRelocate(validatorMapping).toArray (new AttributeValidator[0]);
REFERENCE_Candidate.initialiseReference (); REFERENCE_Candidate.initialiseReference ();
...@@ -373,6 +388,63 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -373,6 +388,63 @@ public abstract class BaseCandidate extends SecUserExtension
return validators; return validators;
} }
// Meta Info setup
private static List setupAttribMetaData_GoogleAddressText(Map validatorMapping)
{
Map metaInfo = new HashMap ();
metaInfo.put ("dbcol", "google_address_text");
metaInfo.put ("length", "300");
metaInfo.put ("name", "GoogleAddressText");
metaInfo.put ("type", "String");
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG2, "Metadata for Candidate.GoogleAddressText:", metaInfo);
ATTRIBUTES_METADATA_Candidate.put (FIELD_GoogleAddressText, Collections.unmodifiableMap (metaInfo));
List validators = BaseBusinessClass.getAttribValidators(Candidate.class, "GoogleAddressText", metaInfo, validatorMapping);
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG1, "Validators for Candidate.GoogleAddressText:", validators);
return validators;
}
// Meta Info setup
private static List setupAttribMetaData_PreferRemote(Map validatorMapping)
{
Map metaInfo = new HashMap ();
metaInfo.put ("dbcol", "prefer_remote");
metaInfo.put ("defaultValue", "Boolean.FALSE");
metaInfo.put ("name", "PreferRemote");
metaInfo.put ("type", "Boolean");
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG2, "Metadata for Candidate.PreferRemote:", metaInfo);
ATTRIBUTES_METADATA_Candidate.put (FIELD_PreferRemote, Collections.unmodifiableMap (metaInfo));
List validators = BaseBusinessClass.getAttribValidators(Candidate.class, "PreferRemote", metaInfo, validatorMapping);
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG1, "Validators for Candidate.PreferRemote:", validators);
return validators;
}
// Meta Info setup
private static List setupAttribMetaData_HappyToRelocate(Map validatorMapping)
{
Map metaInfo = new HashMap ();
metaInfo.put ("dbcol", "happy_to_relocate");
metaInfo.put ("defaultValue", "Boolean.FALSE");
metaInfo.put ("name", "HappyToRelocate");
metaInfo.put ("type", "Boolean");
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG2, "Metadata for Candidate.HappyToRelocate:", metaInfo);
ATTRIBUTES_METADATA_Candidate.put (FIELD_HappyToRelocate, Collections.unmodifiableMap (metaInfo));
List validators = BaseBusinessClass.getAttribValidators(Candidate.class, "HappyToRelocate", metaInfo, validatorMapping);
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG1, "Validators for Candidate.HappyToRelocate:", validators);
return validators;
}
// END OF STATIC METADATA DEFINITION // END OF STATIC METADATA DEFINITION
...@@ -406,6 +478,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -406,6 +478,9 @@ public abstract class BaseCandidate extends SecUserExtension
_VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.initialise (_VerificationMailSendDate)); _VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.initialise (_VerificationMailSendDate));
_VerificationKey = (String)(HELPER_VerificationKey.initialise (_VerificationKey)); _VerificationKey = (String)(HELPER_VerificationKey.initialise (_VerificationKey));
_IsAccountVerified = (Boolean)(Boolean.FALSE); _IsAccountVerified = (Boolean)(Boolean.FALSE);
_GoogleAddressText = (String)(HELPER_GoogleAddressText.initialise (_GoogleAddressText));
_PreferRemote = (Boolean)(Boolean.FALSE);
_HappyToRelocate = (Boolean)(Boolean.FALSE);
_PrivacyPolicyAgreed = (Boolean)(Boolean.FALSE); _PrivacyPolicyAgreed = (Boolean)(Boolean.FALSE);
_ConditionsAgreed = (Boolean)(Boolean.FALSE); _ConditionsAgreed = (Boolean)(Boolean.FALSE);
} }
...@@ -1031,6 +1106,300 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -1031,6 +1106,300 @@ public abstract class BaseCandidate extends SecUserExtension
} }
/** /**
* Get the attribute GoogleAddressText
*/
public String getGoogleAddressText ()
{
assertValid();
String valToReturn = _GoogleAddressText;
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
valToReturn = bhd.getGoogleAddressText ((Candidate)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 preGoogleAddressTextChange (String newGoogleAddressText) 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 postGoogleAddressTextChange () throws FieldException
{
}
public FieldWriteability getWriteability_GoogleAddressText ()
{
return getFieldWritabilityUtil (FieldWriteability.TRUE);
}
/**
* Set the attribute GoogleAddressText. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public void setGoogleAddressText (String newGoogleAddressText) throws FieldException
{
boolean oldAndNewIdentical = HELPER_GoogleAddressText.compare (_GoogleAddressText, newGoogleAddressText);
try
{
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
newGoogleAddressText = bhd.setGoogleAddressText ((Candidate)this, newGoogleAddressText);
oldAndNewIdentical = HELPER_GoogleAddressText.compare (_GoogleAddressText, newGoogleAddressText);
}
if (FIELD_GoogleAddressText_Validators.length > 0)
{
Object newGoogleAddressTextObj = HELPER_GoogleAddressText.toObject (newGoogleAddressText);
if (newGoogleAddressTextObj != null)
{
int loopMax = FIELD_GoogleAddressText_Validators.length;
Map metadata = (Map)ATTRIBUTES_METADATA_Candidate.get (FIELD_GoogleAddressText);
for (int v = 0 ; v < loopMax ; ++v)
{
FIELD_GoogleAddressText_Validators[v].checkAttribute (this, FIELD_GoogleAddressText, metadata, newGoogleAddressTextObj);
}
}
}
}
catch (FieldException e)
{
if (!oldAndNewIdentical)
{
e.setWouldModify ();
}
throw e;
}
if (!oldAndNewIdentical)
{
assertValid();
Debug.assertion (getWriteability_GoogleAddressText () != FieldWriteability.FALSE, "Field GoogleAddressText is not writeable");
preGoogleAddressTextChange (newGoogleAddressText);
markFieldChange (FIELD_GoogleAddressText);
_GoogleAddressText = newGoogleAddressText;
postFieldChange (FIELD_GoogleAddressText);
postGoogleAddressTextChange ();
}
}
/**
* Get the attribute PreferRemote
*/
public Boolean getPreferRemote ()
{
assertValid();
Boolean valToReturn = _PreferRemote;
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
valToReturn = bhd.getPreferRemote ((Candidate)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 prePreferRemoteChange (Boolean newPreferRemote) 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 postPreferRemoteChange () throws FieldException
{
}
public FieldWriteability getWriteability_PreferRemote ()
{
return getFieldWritabilityUtil (FieldWriteability.TRUE);
}
/**
* Set the attribute PreferRemote. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public void setPreferRemote (Boolean newPreferRemote) throws FieldException
{
boolean oldAndNewIdentical = HELPER_PreferRemote.compare (_PreferRemote, newPreferRemote);
try
{
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
newPreferRemote = bhd.setPreferRemote ((Candidate)this, newPreferRemote);
oldAndNewIdentical = HELPER_PreferRemote.compare (_PreferRemote, newPreferRemote);
}
if (FIELD_PreferRemote_Validators.length > 0)
{
Object newPreferRemoteObj = HELPER_PreferRemote.toObject (newPreferRemote);
if (newPreferRemoteObj != null)
{
int loopMax = FIELD_PreferRemote_Validators.length;
Map metadata = (Map)ATTRIBUTES_METADATA_Candidate.get (FIELD_PreferRemote);
for (int v = 0 ; v < loopMax ; ++v)
{
FIELD_PreferRemote_Validators[v].checkAttribute (this, FIELD_PreferRemote, metadata, newPreferRemoteObj);
}
}
}
}
catch (FieldException e)
{
if (!oldAndNewIdentical)
{
e.setWouldModify ();
}
throw e;
}
if (!oldAndNewIdentical)
{
assertValid();
Debug.assertion (getWriteability_PreferRemote () != FieldWriteability.FALSE, "Field PreferRemote is not writeable");
prePreferRemoteChange (newPreferRemote);
markFieldChange (FIELD_PreferRemote);
_PreferRemote = newPreferRemote;
postFieldChange (FIELD_PreferRemote);
postPreferRemoteChange ();
}
}
/**
* Get the attribute HappyToRelocate
*/
public Boolean getHappyToRelocate ()
{
assertValid();
Boolean valToReturn = _HappyToRelocate;
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
valToReturn = bhd.getHappyToRelocate ((Candidate)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 preHappyToRelocateChange (Boolean newHappyToRelocate) 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 postHappyToRelocateChange () throws FieldException
{
}
public FieldWriteability getWriteability_HappyToRelocate ()
{
return getFieldWritabilityUtil (FieldWriteability.TRUE);
}
/**
* Set the attribute HappyToRelocate. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public void setHappyToRelocate (Boolean newHappyToRelocate) throws FieldException
{
boolean oldAndNewIdentical = HELPER_HappyToRelocate.compare (_HappyToRelocate, newHappyToRelocate);
try
{
for (CandidateBehaviourDecorator bhd : Candidate_BehaviourDecorators)
{
newHappyToRelocate = bhd.setHappyToRelocate ((Candidate)this, newHappyToRelocate);
oldAndNewIdentical = HELPER_HappyToRelocate.compare (_HappyToRelocate, newHappyToRelocate);
}
if (FIELD_HappyToRelocate_Validators.length > 0)
{
Object newHappyToRelocateObj = HELPER_HappyToRelocate.toObject (newHappyToRelocate);
if (newHappyToRelocateObj != null)
{
int loopMax = FIELD_HappyToRelocate_Validators.length;
Map metadata = (Map)ATTRIBUTES_METADATA_Candidate.get (FIELD_HappyToRelocate);
for (int v = 0 ; v < loopMax ; ++v)
{
FIELD_HappyToRelocate_Validators[v].checkAttribute (this, FIELD_HappyToRelocate, metadata, newHappyToRelocateObj);
}
}
}
}
catch (FieldException e)
{
if (!oldAndNewIdentical)
{
e.setWouldModify ();
}
throw e;
}
if (!oldAndNewIdentical)
{
assertValid();
Debug.assertion (getWriteability_HappyToRelocate () != FieldWriteability.FALSE, "Field HappyToRelocate is not writeable");
preHappyToRelocateChange (newHappyToRelocate);
markFieldChange (FIELD_HappyToRelocate);
_HappyToRelocate = newHappyToRelocate;
postFieldChange (FIELD_HappyToRelocate);
postHappyToRelocateChange ();
}
}
/**
* Get the attribute PrivacyPolicyAgreed * Get the attribute PrivacyPolicyAgreed
*/ */
public Boolean getPrivacyPolicyAgreed () public Boolean getPrivacyPolicyAgreed ()
...@@ -2119,6 +2488,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2119,6 +2488,9 @@ public abstract class BaseCandidate extends SecUserExtension
oneit_sec_user_extensionPSet.setAttrib (FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.toObject (_VerificationMailSendDate)); // oneit_sec_user_extensionPSet.setAttrib (FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.toObject (_VerificationMailSendDate)); //
oneit_sec_user_extensionPSet.setAttrib (FIELD_VerificationKey, HELPER_VerificationKey.toObject (_VerificationKey)); // oneit_sec_user_extensionPSet.setAttrib (FIELD_VerificationKey, HELPER_VerificationKey.toObject (_VerificationKey)); //
oneit_sec_user_extensionPSet.setAttrib (FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject (_IsAccountVerified)); // oneit_sec_user_extensionPSet.setAttrib (FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject (_IsAccountVerified)); //
oneit_sec_user_extensionPSet.setAttrib (FIELD_GoogleAddressText, HELPER_GoogleAddressText.toObject (_GoogleAddressText)); //
oneit_sec_user_extensionPSet.setAttrib (FIELD_PreferRemote, HELPER_PreferRemote.toObject (_PreferRemote)); //
oneit_sec_user_extensionPSet.setAttrib (FIELD_HappyToRelocate, HELPER_HappyToRelocate.toObject (_HappyToRelocate)); //
_TestInput.getPersistentSets (allSets); _TestInput.getPersistentSets (allSets);
} }
...@@ -2140,6 +2512,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2140,6 +2512,9 @@ public abstract class BaseCandidate extends SecUserExtension
_VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.fromObject (_VerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (FIELD_VerificationMailSendDate))); // _VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.fromObject (_VerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (FIELD_VerificationMailSendDate))); //
_VerificationKey = (String)(HELPER_VerificationKey.fromObject (_VerificationKey, oneit_sec_user_extensionPSet.getAttrib (FIELD_VerificationKey))); // _VerificationKey = (String)(HELPER_VerificationKey.fromObject (_VerificationKey, oneit_sec_user_extensionPSet.getAttrib (FIELD_VerificationKey))); //
_IsAccountVerified = (Boolean)(HELPER_IsAccountVerified.fromObject (_IsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (FIELD_IsAccountVerified))); // _IsAccountVerified = (Boolean)(HELPER_IsAccountVerified.fromObject (_IsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (FIELD_IsAccountVerified))); //
_GoogleAddressText = (String)(HELPER_GoogleAddressText.fromObject (_GoogleAddressText, oneit_sec_user_extensionPSet.getAttrib (FIELD_GoogleAddressText))); //
_PreferRemote = (Boolean)(HELPER_PreferRemote.fromObject (_PreferRemote, oneit_sec_user_extensionPSet.getAttrib (FIELD_PreferRemote))); //
_HappyToRelocate = (Boolean)(HELPER_HappyToRelocate.fromObject (_HappyToRelocate, oneit_sec_user_extensionPSet.getAttrib (FIELD_HappyToRelocate))); //
_TestInput.setFromPersistentSets (objectID, allSets); _TestInput.setFromPersistentSets (objectID, allSets);
} }
...@@ -2210,6 +2585,33 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2210,6 +2585,33 @@ public abstract class BaseCandidate extends SecUserExtension
e.addException (ex); e.addException (ex);
} }
try
{
setGoogleAddressText (otherCandidate.getGoogleAddressText ());
}
catch (FieldException ex)
{
e.addException (ex);
}
try
{
setPreferRemote (otherCandidate.getPreferRemote ());
}
catch (FieldException ex)
{
e.addException (ex);
}
try
{
setHappyToRelocate (otherCandidate.getHappyToRelocate ());
}
catch (FieldException ex)
{
e.addException (ex);
}
} }
} }
...@@ -2231,6 +2633,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2231,6 +2633,9 @@ public abstract class BaseCandidate extends SecUserExtension
_VerificationMailSendDate = sourceCandidate._VerificationMailSendDate; _VerificationMailSendDate = sourceCandidate._VerificationMailSendDate;
_VerificationKey = sourceCandidate._VerificationKey; _VerificationKey = sourceCandidate._VerificationKey;
_IsAccountVerified = sourceCandidate._IsAccountVerified; _IsAccountVerified = sourceCandidate._IsAccountVerified;
_GoogleAddressText = sourceCandidate._GoogleAddressText;
_PreferRemote = sourceCandidate._PreferRemote;
_HappyToRelocate = sourceCandidate._HappyToRelocate;
_PrivacyPolicyAgreed = sourceCandidate._PrivacyPolicyAgreed; _PrivacyPolicyAgreed = sourceCandidate._PrivacyPolicyAgreed;
_ConditionsAgreed = sourceCandidate._ConditionsAgreed; _ConditionsAgreed = sourceCandidate._ConditionsAgreed;
...@@ -2296,6 +2701,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2296,6 +2701,9 @@ public abstract class BaseCandidate extends SecUserExtension
_VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.readExternal (_VerificationMailSendDate, vals.get(FIELD_VerificationMailSendDate))); // _VerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.readExternal (_VerificationMailSendDate, vals.get(FIELD_VerificationMailSendDate))); //
_VerificationKey = (String)(HELPER_VerificationKey.readExternal (_VerificationKey, vals.get(FIELD_VerificationKey))); // _VerificationKey = (String)(HELPER_VerificationKey.readExternal (_VerificationKey, vals.get(FIELD_VerificationKey))); //
_IsAccountVerified = (Boolean)(HELPER_IsAccountVerified.readExternal (_IsAccountVerified, vals.get(FIELD_IsAccountVerified))); // _IsAccountVerified = (Boolean)(HELPER_IsAccountVerified.readExternal (_IsAccountVerified, vals.get(FIELD_IsAccountVerified))); //
_GoogleAddressText = (String)(HELPER_GoogleAddressText.readExternal (_GoogleAddressText, vals.get(FIELD_GoogleAddressText))); //
_PreferRemote = (Boolean)(HELPER_PreferRemote.readExternal (_PreferRemote, vals.get(FIELD_PreferRemote))); //
_HappyToRelocate = (Boolean)(HELPER_HappyToRelocate.readExternal (_HappyToRelocate, vals.get(FIELD_HappyToRelocate))); //
_PrivacyPolicyAgreed = (Boolean)(HELPER_PrivacyPolicyAgreed.readExternal (_PrivacyPolicyAgreed, vals.get(FIELD_PrivacyPolicyAgreed))); // _PrivacyPolicyAgreed = (Boolean)(HELPER_PrivacyPolicyAgreed.readExternal (_PrivacyPolicyAgreed, vals.get(FIELD_PrivacyPolicyAgreed))); //
_ConditionsAgreed = (Boolean)(HELPER_ConditionsAgreed.readExternal (_ConditionsAgreed, vals.get(FIELD_ConditionsAgreed))); // _ConditionsAgreed = (Boolean)(HELPER_ConditionsAgreed.readExternal (_ConditionsAgreed, vals.get(FIELD_ConditionsAgreed))); //
_TestInput.readExternalData(vals.get(SINGLEREFERENCE_TestInput)); _TestInput.readExternalData(vals.get(SINGLEREFERENCE_TestInput));
...@@ -2320,6 +2728,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2320,6 +2728,9 @@ public abstract class BaseCandidate extends SecUserExtension
vals.put (FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.writeExternal (_VerificationMailSendDate)); vals.put (FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.writeExternal (_VerificationMailSendDate));
vals.put (FIELD_VerificationKey, HELPER_VerificationKey.writeExternal (_VerificationKey)); vals.put (FIELD_VerificationKey, HELPER_VerificationKey.writeExternal (_VerificationKey));
vals.put (FIELD_IsAccountVerified, HELPER_IsAccountVerified.writeExternal (_IsAccountVerified)); vals.put (FIELD_IsAccountVerified, HELPER_IsAccountVerified.writeExternal (_IsAccountVerified));
vals.put (FIELD_GoogleAddressText, HELPER_GoogleAddressText.writeExternal (_GoogleAddressText));
vals.put (FIELD_PreferRemote, HELPER_PreferRemote.writeExternal (_PreferRemote));
vals.put (FIELD_HappyToRelocate, HELPER_HappyToRelocate.writeExternal (_HappyToRelocate));
vals.put (FIELD_PrivacyPolicyAgreed, HELPER_PrivacyPolicyAgreed.writeExternal (_PrivacyPolicyAgreed)); vals.put (FIELD_PrivacyPolicyAgreed, HELPER_PrivacyPolicyAgreed.writeExternal (_PrivacyPolicyAgreed));
vals.put (FIELD_ConditionsAgreed, HELPER_ConditionsAgreed.writeExternal (_ConditionsAgreed)); vals.put (FIELD_ConditionsAgreed, HELPER_ConditionsAgreed.writeExternal (_ConditionsAgreed));
vals.put (SINGLEREFERENCE_TestInput, _TestInput.writeExternalData()); vals.put (SINGLEREFERENCE_TestInput, _TestInput.writeExternalData());
...@@ -2364,6 +2775,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2364,6 +2775,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
listener.notifyFieldChange(this, other, FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject(this._IsAccountVerified), HELPER_IsAccountVerified.toObject(otherCandidate._IsAccountVerified)); listener.notifyFieldChange(this, other, FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject(this._IsAccountVerified), HELPER_IsAccountVerified.toObject(otherCandidate._IsAccountVerified));
} }
if (!HELPER_GoogleAddressText.compare(this._GoogleAddressText, otherCandidate._GoogleAddressText))
{
listener.notifyFieldChange(this, other, FIELD_GoogleAddressText, HELPER_GoogleAddressText.toObject(this._GoogleAddressText), HELPER_GoogleAddressText.toObject(otherCandidate._GoogleAddressText));
}
if (!HELPER_PreferRemote.compare(this._PreferRemote, otherCandidate._PreferRemote))
{
listener.notifyFieldChange(this, other, FIELD_PreferRemote, HELPER_PreferRemote.toObject(this._PreferRemote), HELPER_PreferRemote.toObject(otherCandidate._PreferRemote));
}
if (!HELPER_HappyToRelocate.compare(this._HappyToRelocate, otherCandidate._HappyToRelocate))
{
listener.notifyFieldChange(this, other, FIELD_HappyToRelocate, HELPER_HappyToRelocate.toObject(this._HappyToRelocate), HELPER_HappyToRelocate.toObject(otherCandidate._HappyToRelocate));
}
// Compare single assocs // Compare single assocs
_TestInput.compare (otherCandidate._TestInput, listener); _TestInput.compare (otherCandidate._TestInput, listener);
...@@ -2399,6 +2822,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2399,6 +2822,9 @@ public abstract class BaseCandidate extends SecUserExtension
visitor.visitField(this, FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.toObject(getVerificationMailSendDate())); visitor.visitField(this, FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.toObject(getVerificationMailSendDate()));
visitor.visitField(this, FIELD_VerificationKey, HELPER_VerificationKey.toObject(getVerificationKey())); visitor.visitField(this, FIELD_VerificationKey, HELPER_VerificationKey.toObject(getVerificationKey()));
visitor.visitField(this, FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject(getIsAccountVerified())); visitor.visitField(this, FIELD_IsAccountVerified, HELPER_IsAccountVerified.toObject(getIsAccountVerified()));
visitor.visitField(this, FIELD_GoogleAddressText, HELPER_GoogleAddressText.toObject(getGoogleAddressText()));
visitor.visitField(this, FIELD_PreferRemote, HELPER_PreferRemote.toObject(getPreferRemote()));
visitor.visitField(this, FIELD_HappyToRelocate, HELPER_HappyToRelocate.toObject(getHappyToRelocate()));
visitor.visitAssociation (_TestInput); visitor.visitAssociation (_TestInput);
visitor.visitAssociation (_TestAnalysises); visitor.visitAssociation (_TestAnalysises);
visitor.visitAssociation (_JobApplications); visitor.visitAssociation (_JobApplications);
...@@ -2481,6 +2907,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2481,6 +2907,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
return filter.matches (getIsAccountVerified ()); return filter.matches (getIsAccountVerified ());
} }
else if (attribName.equals (FIELD_GoogleAddressText))
{
return filter.matches (getGoogleAddressText ());
}
else if (attribName.equals (FIELD_PreferRemote))
{
return filter.matches (getPreferRemote ());
}
else if (attribName.equals (FIELD_HappyToRelocate))
{
return filter.matches (getHappyToRelocate ());
}
else if (attribName.equals (SINGLEREFERENCE_TestInput)) else if (attribName.equals (SINGLEREFERENCE_TestInput))
{ {
return filter.matches (getTestInput ()); return filter.matches (getTestInput ());
...@@ -2552,6 +2990,24 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2552,6 +2990,24 @@ public abstract class BaseCandidate extends SecUserExtension
return this; return this;
} }
public SearchAll andGoogleAddressText (QueryFilter<String> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.google_address_text", "GoogleAddressText");
return this;
}
public SearchAll andPreferRemote (QueryFilter<Boolean> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.prefer_remote", "PreferRemote");
return this;
}
public SearchAll andHappyToRelocate (QueryFilter<Boolean> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.happy_to_relocate", "HappyToRelocate");
return this;
}
public SearchAll andTestInput (QueryFilter<TestInput> filter) public SearchAll andTestInput (QueryFilter<TestInput> filter)
{ {
filter.addFilter (context, "oneit_sec_user_extension.test_input_id", "TestInput"); filter.addFilter (context, "oneit_sec_user_extension.test_input_id", "TestInput");
...@@ -2663,6 +3119,24 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2663,6 +3119,24 @@ public abstract class BaseCandidate extends SecUserExtension
return this; return this;
} }
public SearchIdPin andGoogleAddressText (QueryFilter<String> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.google_address_text", "GoogleAddressText");
return this;
}
public SearchIdPin andPreferRemote (QueryFilter<Boolean> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.prefer_remote", "PreferRemote");
return this;
}
public SearchIdPin andHappyToRelocate (QueryFilter<Boolean> filter)
{
filter.addFilter (context, "oneit_sec_user_extension.happy_to_relocate", "HappyToRelocate");
return this;
}
public SearchIdPin andTestInput (QueryFilter<TestInput> filter) public SearchIdPin andTestInput (QueryFilter<TestInput> filter)
{ {
filter.addFilter (context, "oneit_sec_user_extension.test_input_id", "TestInput"); filter.addFilter (context, "oneit_sec_user_extension.test_input_id", "TestInput");
...@@ -2734,6 +3208,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2734,6 +3208,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
return HELPER_IsAccountVerified.toObject (getIsAccountVerified ()); return HELPER_IsAccountVerified.toObject (getIsAccountVerified ());
} }
else if (attribName.equals (FIELD_GoogleAddressText))
{
return HELPER_GoogleAddressText.toObject (getGoogleAddressText ());
}
else if (attribName.equals (FIELD_PreferRemote))
{
return HELPER_PreferRemote.toObject (getPreferRemote ());
}
else if (attribName.equals (FIELD_HappyToRelocate))
{
return HELPER_HappyToRelocate.toObject (getHappyToRelocate ());
}
else if (attribName.equals (FIELD_PrivacyPolicyAgreed)) else if (attribName.equals (FIELD_PrivacyPolicyAgreed))
{ {
return HELPER_PrivacyPolicyAgreed.toObject (getPrivacyPolicyAgreed ()); return HELPER_PrivacyPolicyAgreed.toObject (getPrivacyPolicyAgreed ());
...@@ -2779,6 +3265,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2779,6 +3265,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
return HELPER_IsAccountVerified; return HELPER_IsAccountVerified;
} }
else if (attribName.equals (FIELD_GoogleAddressText))
{
return HELPER_GoogleAddressText;
}
else if (attribName.equals (FIELD_PreferRemote))
{
return HELPER_PreferRemote;
}
else if (attribName.equals (FIELD_HappyToRelocate))
{
return HELPER_HappyToRelocate;
}
else if (attribName.equals (FIELD_PrivacyPolicyAgreed)) else if (attribName.equals (FIELD_PrivacyPolicyAgreed))
{ {
return HELPER_PrivacyPolicyAgreed; return HELPER_PrivacyPolicyAgreed;
...@@ -2824,6 +3322,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2824,6 +3322,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
setIsAccountVerified ((Boolean)(HELPER_IsAccountVerified.fromObject (_IsAccountVerified, attribValue))); setIsAccountVerified ((Boolean)(HELPER_IsAccountVerified.fromObject (_IsAccountVerified, attribValue)));
} }
else if (attribName.equals (FIELD_GoogleAddressText))
{
setGoogleAddressText ((String)(HELPER_GoogleAddressText.fromObject (_GoogleAddressText, attribValue)));
}
else if (attribName.equals (FIELD_PreferRemote))
{
setPreferRemote ((Boolean)(HELPER_PreferRemote.fromObject (_PreferRemote, attribValue)));
}
else if (attribName.equals (FIELD_HappyToRelocate))
{
setHappyToRelocate ((Boolean)(HELPER_HappyToRelocate.fromObject (_HappyToRelocate, attribValue)));
}
else if (attribName.equals (FIELD_PrivacyPolicyAgreed)) else if (attribName.equals (FIELD_PrivacyPolicyAgreed))
{ {
setPrivacyPolicyAgreed ((Boolean)(HELPER_PrivacyPolicyAgreed.fromObject (_PrivacyPolicyAgreed, attribValue))); setPrivacyPolicyAgreed ((Boolean)(HELPER_PrivacyPolicyAgreed.fromObject (_PrivacyPolicyAgreed, attribValue)));
...@@ -2876,6 +3386,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2876,6 +3386,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
return getWriteability_IsAccountVerified (); return getWriteability_IsAccountVerified ();
} }
else if (fieldName.equals (FIELD_GoogleAddressText))
{
return getWriteability_GoogleAddressText ();
}
else if (fieldName.equals (FIELD_PreferRemote))
{
return getWriteability_PreferRemote ();
}
else if (fieldName.equals (FIELD_HappyToRelocate))
{
return getWriteability_HappyToRelocate ();
}
else if (fieldName.equals (MULTIPLEREFERENCE_TestAnalysises)) else if (fieldName.equals (MULTIPLEREFERENCE_TestAnalysises))
{ {
return getWriteability_TestAnalysises (); return getWriteability_TestAnalysises ();
...@@ -2944,6 +3466,21 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2944,6 +3466,21 @@ public abstract class BaseCandidate extends SecUserExtension
fields.add (FIELD_IsAccountVerified); fields.add (FIELD_IsAccountVerified);
} }
if (getWriteability_GoogleAddressText () != FieldWriteability.TRUE)
{
fields.add (FIELD_GoogleAddressText);
}
if (getWriteability_PreferRemote () != FieldWriteability.TRUE)
{
fields.add (FIELD_PreferRemote);
}
if (getWriteability_HappyToRelocate () != FieldWriteability.TRUE)
{
fields.add (FIELD_HappyToRelocate);
}
if (getWriteability_PrivacyPolicyAgreed () != FieldWriteability.TRUE) if (getWriteability_PrivacyPolicyAgreed () != FieldWriteability.TRUE)
{ {
fields.add (FIELD_PrivacyPolicyAgreed); fields.add (FIELD_PrivacyPolicyAgreed);
...@@ -2969,6 +3506,9 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -2969,6 +3506,9 @@ public abstract class BaseCandidate extends SecUserExtension
result.add(HELPER_VerificationMailSendDate.getAttribObject (getClass (), _VerificationMailSendDate, false, FIELD_VerificationMailSendDate)); result.add(HELPER_VerificationMailSendDate.getAttribObject (getClass (), _VerificationMailSendDate, false, FIELD_VerificationMailSendDate));
result.add(HELPER_VerificationKey.getAttribObject (getClass (), _VerificationKey, false, FIELD_VerificationKey)); result.add(HELPER_VerificationKey.getAttribObject (getClass (), _VerificationKey, false, FIELD_VerificationKey));
result.add(HELPER_IsAccountVerified.getAttribObject (getClass (), _IsAccountVerified, false, FIELD_IsAccountVerified)); result.add(HELPER_IsAccountVerified.getAttribObject (getClass (), _IsAccountVerified, false, FIELD_IsAccountVerified));
result.add(HELPER_GoogleAddressText.getAttribObject (getClass (), _GoogleAddressText, false, FIELD_GoogleAddressText));
result.add(HELPER_PreferRemote.getAttribObject (getClass (), _PreferRemote, false, FIELD_PreferRemote));
result.add(HELPER_HappyToRelocate.getAttribObject (getClass (), _HappyToRelocate, false, FIELD_HappyToRelocate));
result.add(HELPER_PrivacyPolicyAgreed.getAttribObject (getClass (), _PrivacyPolicyAgreed, false, FIELD_PrivacyPolicyAgreed)); result.add(HELPER_PrivacyPolicyAgreed.getAttribObject (getClass (), _PrivacyPolicyAgreed, false, FIELD_PrivacyPolicyAgreed));
result.add(HELPER_ConditionsAgreed.getAttribObject (getClass (), _ConditionsAgreed, false, FIELD_ConditionsAgreed)); result.add(HELPER_ConditionsAgreed.getAttribObject (getClass (), _ConditionsAgreed, false, FIELD_ConditionsAgreed));
...@@ -3130,6 +3670,60 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -3130,6 +3670,60 @@ public abstract class BaseCandidate extends SecUserExtension
} }
/** /**
* Get the attribute GoogleAddressText
*/
public String getGoogleAddressText (Candidate obj, String original)
{
return original;
}
/**
* Change the value set for attribute GoogleAddressText.
* May modify the field beforehand
* Occurs before validation.
*/
public String setGoogleAddressText (Candidate obj, String newGoogleAddressText) throws FieldException
{
return newGoogleAddressText;
}
/**
* Get the attribute PreferRemote
*/
public Boolean getPreferRemote (Candidate obj, Boolean original)
{
return original;
}
/**
* Change the value set for attribute PreferRemote.
* May modify the field beforehand
* Occurs before validation.
*/
public Boolean setPreferRemote (Candidate obj, Boolean newPreferRemote) throws FieldException
{
return newPreferRemote;
}
/**
* Get the attribute HappyToRelocate
*/
public Boolean getHappyToRelocate (Candidate obj, Boolean original)
{
return original;
}
/**
* Change the value set for attribute HappyToRelocate.
* May modify the field beforehand
* Occurs before validation.
*/
public Boolean setHappyToRelocate (Candidate obj, Boolean newHappyToRelocate) throws FieldException
{
return newHappyToRelocate;
}
/**
* Get the attribute PrivacyPolicyAgreed * Get the attribute PrivacyPolicyAgreed
*/ */
public Boolean getPrivacyPolicyAgreed (Candidate obj, Boolean original) public Boolean getPrivacyPolicyAgreed (Candidate obj, Boolean original)
...@@ -3265,6 +3859,18 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -3265,6 +3859,18 @@ public abstract class BaseCandidate extends SecUserExtension
{ {
return toIsAccountVerified (); return toIsAccountVerified ();
} }
if (name.equals ("GoogleAddressText"))
{
return toGoogleAddressText ();
}
if (name.equals ("PreferRemote"))
{
return toPreferRemote ();
}
if (name.equals ("HappyToRelocate"))
{
return toHappyToRelocate ();
}
if (name.equals ("TestInput")) if (name.equals ("TestInput"))
{ {
return toTestInput (); return toTestInput ();
...@@ -3290,6 +3896,12 @@ public abstract class BaseCandidate extends SecUserExtension ...@@ -3290,6 +3896,12 @@ public abstract class BaseCandidate extends SecUserExtension
public PipeLine<From, String> toVerificationKey () { return pipe(new ORMAttributePipe<Me, String>(FIELD_VerificationKey)); } public PipeLine<From, String> toVerificationKey () { return pipe(new ORMAttributePipe<Me, String>(FIELD_VerificationKey)); }
public PipeLine<From, Boolean> toIsAccountVerified () { return pipe(new ORMAttributePipe<Me, Boolean>(FIELD_IsAccountVerified)); } public PipeLine<From, Boolean> toIsAccountVerified () { return pipe(new ORMAttributePipe<Me, Boolean>(FIELD_IsAccountVerified)); }
public PipeLine<From, String> toGoogleAddressText () { return pipe(new ORMAttributePipe<Me, String>(FIELD_GoogleAddressText)); }
public PipeLine<From, Boolean> toPreferRemote () { return pipe(new ORMAttributePipe<Me, Boolean>(FIELD_PreferRemote)); }
public PipeLine<From, Boolean> toHappyToRelocate () { return pipe(new ORMAttributePipe<Me, Boolean>(FIELD_HappyToRelocate)); }
public TestInput.TestInputPipeLineFactory<From, TestInput> toTestInput () { return toTestInput (Filter.ALL); } public TestInput.TestInputPipeLineFactory<From, TestInput> toTestInput () { return toTestInput (Filter.ALL); }
public TestInput.TestInputPipeLineFactory<From, TestInput> toTestInput (Filter<TestInput> filter) public TestInput.TestInputPipeLineFactory<From, TestInput> toTestInput (Filter<TestInput> filter)
......
...@@ -164,6 +164,16 @@ public class Candidate extends BaseCandidate ...@@ -164,6 +164,16 @@ public class Candidate extends BaseCandidate
return null; return null;
} }
public boolean showHappyToRelocate()
{
return isTrue(getHappyToRelocate());
}
public boolean showPreferRemote()
{
return isTrue(getPreferRemote());
}
public boolean showPrivacyPolicyAgreed() public boolean showPrivacyPolicyAgreed()
{ {
return isTrue(getPrivacyPolicyAgreed()); return isTrue(getPrivacyPolicyAgreed());
......
...@@ -16,13 +16,16 @@ ...@@ -16,13 +16,16 @@
<TABLE name="oneit_sec_user_extension" tablePrefix="object" polymorphic="TRUE"> <TABLE name="oneit_sec_user_extension" tablePrefix="object" polymorphic="TRUE">
<ATTRIB name="Phone" type="String" dbcol="phone" length="30"/> <ATTRIB name="Phone" type="String" dbcol="phone" length="30"/>
<ATTRIB name="ForgotPasswordMailSendDate" type="Date" dbcol="forgot_password_mail_send_date" /> <ATTRIB name="ForgotPasswordMailSendDate" type="Date" dbcol="forgot_password_mail_send_date" />
<ATTRIB name="ForgotPasswordKey" type="String" dbcol="forgot_password_key" length="10"/> <ATTRIB name="ForgotPasswordKey" type="String" dbcol="forgot_password_key" length="10"/>
<ATTRIB name="VerificationMailSendDate" type="Date" dbcol="verification_mail_send_date" /> <ATTRIB name="VerificationMailSendDate" type="Date" dbcol="verification_mail_send_date" />
<ATTRIB name="VerificationKey" type="String" dbcol="verification_key" length="10"/> <ATTRIB name="VerificationKey" type="String" dbcol="verification_key" length="10"/>
<ATTRIB name="IsAccountVerified" type="Boolean" dbcol="is_account_verified" defaultValue="Boolean.FALSE"/> <ATTRIB name="IsAccountVerified" type="Boolean" dbcol="is_account_verified" defaultValue="Boolean.FALSE"/>
<ATTRIB name="GoogleAddressText" type="String" dbcol="google_address_text" length="300"/>
<ATTRIB name="PreferRemote" type="Boolean" dbcol="prefer_remote" defaultValue="Boolean.FALSE"/>
<ATTRIB name="HappyToRelocate" type="Boolean" dbcol="happy_to_relocate" defaultValue="Boolean.FALSE"/>
<SINGLEREFERENCE name="TestInput" type="TestInput" dbcol="test_input_id" backreferenceName="Candidates" /> <SINGLEREFERENCE name="TestInput" type="TestInput" dbcol="test_input_id" backreferenceName="Candidates" />
<SINGLEREFERENCE name="User" type="SecUser" dbcol="user_id" backreferenceName="Extensions" inSuper='TRUE'/> <SINGLEREFERENCE name="User" type="SecUser" dbcol="user_id" backreferenceName="Extensions" inSuper='TRUE'/>
</TABLE> </TABLE>
......
...@@ -33,6 +33,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -33,6 +33,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
private Date dummyVerificationMailSendDate; private Date dummyVerificationMailSendDate;
private String dummyVerificationKey; private String dummyVerificationKey;
private Boolean dummyIsAccountVerified; private Boolean dummyIsAccountVerified;
private String dummyGoogleAddressText;
private Boolean dummyPreferRemote;
private Boolean dummyHappyToRelocate;
// Static constants corresponding to attribute helpers // Static constants corresponding to attribute helpers
...@@ -42,6 +45,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -42,6 +45,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
private static final DefaultAttributeHelper HELPER_VerificationMailSendDate = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper HELPER_VerificationMailSendDate = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_VerificationKey = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper HELPER_VerificationKey = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_IsAccountVerified = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper HELPER_IsAccountVerified = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_GoogleAddressText = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_PreferRemote = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_HappyToRelocate = DefaultAttributeHelper.INSTANCE;
...@@ -54,10 +60,13 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -54,10 +60,13 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
dummyVerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.initialise (dummyVerificationMailSendDate)); dummyVerificationMailSendDate = (Date)(HELPER_VerificationMailSendDate.initialise (dummyVerificationMailSendDate));
dummyVerificationKey = (String)(HELPER_VerificationKey.initialise (dummyVerificationKey)); dummyVerificationKey = (String)(HELPER_VerificationKey.initialise (dummyVerificationKey));
dummyIsAccountVerified = (Boolean)(HELPER_IsAccountVerified.initialise (dummyIsAccountVerified)); dummyIsAccountVerified = (Boolean)(HELPER_IsAccountVerified.initialise (dummyIsAccountVerified));
dummyGoogleAddressText = (String)(HELPER_GoogleAddressText.initialise (dummyGoogleAddressText));
dummyPreferRemote = (Boolean)(HELPER_PreferRemote.initialise (dummyPreferRemote));
dummyHappyToRelocate = (Boolean)(HELPER_HappyToRelocate.initialise (dummyHappyToRelocate));
} }
private String SELECT_COLUMNS = "{PREFIX}oneit_sec_user_extension.object_id as id, {PREFIX}oneit_sec_user_extension.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}oneit_sec_user_extension.object_CREATED_DATE as CREATED_DATE, {PREFIX}oneit_sec_user_extension.object_TYPE as OBJECT_TYPE, {PREFIX}oneit_sec_user_extension.phone, {PREFIX}oneit_sec_user_extension.forgot_password_mail_send_date, {PREFIX}oneit_sec_user_extension.forgot_password_key, {PREFIX}oneit_sec_user_extension.verification_mail_send_date, {PREFIX}oneit_sec_user_extension.verification_key, {PREFIX}oneit_sec_user_extension.is_account_verified, {PREFIX}oneit_sec_user_extension.test_input_id, {PREFIX}oneit_sec_user_extension.user_id, 1 AS commasafe "; private String SELECT_COLUMNS = "{PREFIX}oneit_sec_user_extension.object_id as id, {PREFIX}oneit_sec_user_extension.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}oneit_sec_user_extension.object_CREATED_DATE as CREATED_DATE, {PREFIX}oneit_sec_user_extension.object_TYPE as OBJECT_TYPE, {PREFIX}oneit_sec_user_extension.phone, {PREFIX}oneit_sec_user_extension.forgot_password_mail_send_date, {PREFIX}oneit_sec_user_extension.forgot_password_key, {PREFIX}oneit_sec_user_extension.verification_mail_send_date, {PREFIX}oneit_sec_user_extension.verification_key, {PREFIX}oneit_sec_user_extension.is_account_verified, {PREFIX}oneit_sec_user_extension.google_address_text, {PREFIX}oneit_sec_user_extension.prefer_remote, {PREFIX}oneit_sec_user_extension.happy_to_relocate, {PREFIX}oneit_sec_user_extension.test_input_id, {PREFIX}oneit_sec_user_extension.user_id, 1 AS commasafe ";
private String SELECT_JOINS = ""; private String SELECT_JOINS = "";
public BaseBusinessClass fetchByID(ObjectID id, PersistentSetCollection allPSets, RDBMSPersistenceContext context, SQLManager sqlMgr) throws SQLException, StorageException public BaseBusinessClass fetchByID(ObjectID id, PersistentSetCollection allPSets, RDBMSPersistenceContext context, SQLManager sqlMgr) throws SQLException, StorageException
...@@ -115,6 +124,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -115,6 +124,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_VerificationMailSendDate)|| !oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_VerificationMailSendDate)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_VerificationKey)|| !oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_VerificationKey)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_IsAccountVerified)|| !oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_IsAccountVerified)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_GoogleAddressText)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_PreferRemote)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.FIELD_HappyToRelocate)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.SINGLEREFERENCE_TestInput)|| !oneit_sec_user_extensionPSet.containsAttrib(Candidate.SINGLEREFERENCE_TestInput)||
!oneit_sec_user_extensionPSet.containsAttrib(Candidate.SINGLEREFERENCE_User)) !oneit_sec_user_extensionPSet.containsAttrib(Candidate.SINGLEREFERENCE_User))
{ {
...@@ -215,10 +227,10 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -215,10 +227,10 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
{ {
int rowsUpdated = executeStatement (sqlMgr, int rowsUpdated = executeStatement (sqlMgr,
"UPDATE {PREFIX}oneit_sec_user_extension " + "UPDATE {PREFIX}oneit_sec_user_extension " +
"SET phone = ?, forgot_password_mail_send_date = ?, forgot_password_key = ?, verification_mail_send_date = ?, verification_key = ?, is_account_verified = ?, test_input_id = ? , user_id = ? , object_LAST_UPDATED_DATE = " + sqlMgr.getPortabilityServices ().getTimestampExpression () + " " + "SET phone = ?, forgot_password_mail_send_date = ?, forgot_password_key = ?, verification_mail_send_date = ?, verification_key = ?, is_account_verified = ?, google_address_text = ?, prefer_remote = ?, happy_to_relocate = ?, test_input_id = ? , user_id = ? , object_LAST_UPDATED_DATE = " + sqlMgr.getPortabilityServices ().getTimestampExpression () + " " +
"WHERE oneit_sec_user_extension.object_id = ? AND " + getConcurrencyCheck (sqlMgr, "object_LAST_UPDATED_DATE", obj.getObjectLastModified ()) + " ", "WHERE oneit_sec_user_extension.object_id = ? AND " + getConcurrencyCheck (sqlMgr, "object_LAST_UPDATED_DATE", obj.getObjectLastModified ()) + " ",
CollectionUtils.listEntry (HELPER_Phone.getForSQL(dummyPhone, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_Phone))).listEntry (HELPER_ForgotPasswordMailSendDate.getForSQL(dummyForgotPasswordMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordMailSendDate))).listEntry (HELPER_ForgotPasswordKey.getForSQL(dummyForgotPasswordKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordKey))).listEntry (HELPER_VerificationMailSendDate.getForSQL(dummyVerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationMailSendDate))).listEntry (HELPER_VerificationKey.getForSQL(dummyVerificationKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationKey))).listEntry (HELPER_IsAccountVerified.getForSQL(dummyIsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_IsAccountVerified))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_TestInput)))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_User)))).listEntry (objectID.longID ()).listEntry (obj.getObjectLastModified ()).toList().toArray()); CollectionUtils.listEntry (HELPER_Phone.getForSQL(dummyPhone, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_Phone))).listEntry (HELPER_ForgotPasswordMailSendDate.getForSQL(dummyForgotPasswordMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordMailSendDate))).listEntry (HELPER_ForgotPasswordKey.getForSQL(dummyForgotPasswordKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordKey))).listEntry (HELPER_VerificationMailSendDate.getForSQL(dummyVerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationMailSendDate))).listEntry (HELPER_VerificationKey.getForSQL(dummyVerificationKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationKey))).listEntry (HELPER_IsAccountVerified.getForSQL(dummyIsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_IsAccountVerified))).listEntry (HELPER_GoogleAddressText.getForSQL(dummyGoogleAddressText, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_GoogleAddressText))).listEntry (HELPER_PreferRemote.getForSQL(dummyPreferRemote, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_PreferRemote))).listEntry (HELPER_HappyToRelocate.getForSQL(dummyHappyToRelocate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_HappyToRelocate))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_TestInput)))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_User)))).listEntry (objectID.longID ()).listEntry (obj.getObjectLastModified ()).toList().toArray());
if (rowsUpdated != 1) if (rowsUpdated != 1)
{ {
...@@ -587,6 +599,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -587,6 +599,9 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.getFromRS(dummyVerificationMailSendDate, r, "verification_mail_send_date")); oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_VerificationMailSendDate, HELPER_VerificationMailSendDate.getFromRS(dummyVerificationMailSendDate, r, "verification_mail_send_date"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_VerificationKey, HELPER_VerificationKey.getFromRS(dummyVerificationKey, r, "verification_key")); oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_VerificationKey, HELPER_VerificationKey.getFromRS(dummyVerificationKey, r, "verification_key"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_IsAccountVerified, HELPER_IsAccountVerified.getFromRS(dummyIsAccountVerified, r, "is_account_verified")); oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_IsAccountVerified, HELPER_IsAccountVerified.getFromRS(dummyIsAccountVerified, r, "is_account_verified"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_GoogleAddressText, HELPER_GoogleAddressText.getFromRS(dummyGoogleAddressText, r, "google_address_text"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_PreferRemote, HELPER_PreferRemote.getFromRS(dummyPreferRemote, r, "prefer_remote"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.FIELD_HappyToRelocate, HELPER_HappyToRelocate.getFromRS(dummyHappyToRelocate, r, "happy_to_relocate"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.SINGLEREFERENCE_TestInput, r.getObject ("test_input_id")); oneit_sec_user_extensionPSet.setAttrib(Candidate.SINGLEREFERENCE_TestInput, r.getObject ("test_input_id"));
oneit_sec_user_extensionPSet.setAttrib(Candidate.SINGLEREFERENCE_User, r.getObject ("user_id")); oneit_sec_user_extensionPSet.setAttrib(Candidate.SINGLEREFERENCE_User, r.getObject ("user_id"));
...@@ -606,10 +621,10 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr ...@@ -606,10 +621,10 @@ public class CandidatePersistenceMgr extends SecUserExtensionPersistenceMgr
{ {
executeStatement (sqlMgr, executeStatement (sqlMgr,
"INSERT INTO {PREFIX}oneit_sec_user_extension " + "INSERT INTO {PREFIX}oneit_sec_user_extension " +
" (phone, forgot_password_mail_send_date, forgot_password_key, verification_mail_send_date, verification_key, is_account_verified, test_input_id, user_id, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE, object_TYPE) " + " (phone, forgot_password_mail_send_date, forgot_password_key, verification_mail_send_date, verification_key, is_account_verified, google_address_text, prefer_remote, happy_to_relocate, test_input_id, user_id, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE, object_TYPE) " +
"VALUES " + "VALUES " +
" (?, ?, ?, ?, ?, ?, ?, ?, ?, " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", ?)", " (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", ?)",
CollectionUtils.listEntry (HELPER_Phone.getForSQL(dummyPhone, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_Phone))).listEntry (HELPER_ForgotPasswordMailSendDate.getForSQL(dummyForgotPasswordMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordMailSendDate))).listEntry (HELPER_ForgotPasswordKey.getForSQL(dummyForgotPasswordKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordKey))).listEntry (HELPER_VerificationMailSendDate.getForSQL(dummyVerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationMailSendDate))).listEntry (HELPER_VerificationKey.getForSQL(dummyVerificationKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationKey))).listEntry (HELPER_IsAccountVerified.getForSQL(dummyIsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_IsAccountVerified))) .listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_TestInput)))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_User)))) .listEntry (objectID.longID ()).listEntry (context.getTag (obj)).toList().toArray()); CollectionUtils.listEntry (HELPER_Phone.getForSQL(dummyPhone, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_Phone))).listEntry (HELPER_ForgotPasswordMailSendDate.getForSQL(dummyForgotPasswordMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordMailSendDate))).listEntry (HELPER_ForgotPasswordKey.getForSQL(dummyForgotPasswordKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_ForgotPasswordKey))).listEntry (HELPER_VerificationMailSendDate.getForSQL(dummyVerificationMailSendDate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationMailSendDate))).listEntry (HELPER_VerificationKey.getForSQL(dummyVerificationKey, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_VerificationKey))).listEntry (HELPER_IsAccountVerified.getForSQL(dummyIsAccountVerified, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_IsAccountVerified))).listEntry (HELPER_GoogleAddressText.getForSQL(dummyGoogleAddressText, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_GoogleAddressText))).listEntry (HELPER_PreferRemote.getForSQL(dummyPreferRemote, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_PreferRemote))).listEntry (HELPER_HappyToRelocate.getForSQL(dummyHappyToRelocate, oneit_sec_user_extensionPSet.getAttrib (Candidate.FIELD_HappyToRelocate))) .listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_TestInput)))).listEntry (SQLManager.CheckNull((Long)(oneit_sec_user_extensionPSet.getAttrib (Candidate.SINGLEREFERENCE_User)))) .listEntry (objectID.longID ()).listEntry (context.getTag (obj)).toList().toArray());
oneit_sec_user_extensionPSet.setStatus (PersistentSetStatus.PROCESSED); oneit_sec_user_extensionPSet.setStatus (PersistentSetStatus.PROCESSED);
} }
......
<?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">oneit_sec_user_extension</tableName>
<column name="google_address_text" type="String" nullable="true" length="300"/>
<column name="prefer_remote" type="Boolean" nullable="true"/>
<column name="happy_to_relocate" type="Boolean" nullable="true"/>
</NODE>
</NODE>
</OBJECTS>
\ No newline at end of file
...@@ -76,13 +76,12 @@ ...@@ -76,13 +76,12 @@
%> %>
<script type="text/javascript"> <script type="text/javascript">
$(document.body).addClass('bg-color'); $(document.body).addClass('bg-color');
var interval ; var interval ;
$(document).ready(function() { $(document).ready(function() {
recalcFunction = setupRecalc ($("form#signIn"), {'recalcOnError':true}); recalcFunction = setupRecalc ($("form#signIn"), {'recalcOnError':true});
interval = setInterval(function() { validate(); }, 500); interval = setInterval(function() { validate(); }, 500);
validate(); validate();
$('input').on('change keyup', function() { validate(); }); $('input').on('change keyup', function() { validate(); });
$('#myPassword').strength_meter({ $('#myPassword').strength_meter({
"inputName" : "<%= passkey %>" "inputName" : "<%= passkey %>"
...@@ -108,6 +107,10 @@ ...@@ -108,6 +107,10 @@
} }
} }
</script> </script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=AIzaSyCaBh-MsMb8BBYJD_NcFzoCmygQbt5-QSw"></script>
<oneit:script>
<oneit:script src="/scripts/google_address.js"/>
</oneit:script>
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/> <oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="apply-job-logo-header signinpage"> <div class="apply-job-logo-header signinpage">
<div> <div>
...@@ -152,6 +155,40 @@ ...@@ -152,6 +155,40 @@
<label><oneit:ormlabel obj="<%= candidate %>" field="Phone" /></label> <label><oneit:ormlabel obj="<%= candidate %>" field="Phone" /></label>
<oneit:ormInput obj="<%= candidate %>" type="text" attributeName="Phone" cssClass="form-control second-style" required="true"/> <oneit:ormInput obj="<%= candidate %>" type="text" attributeName="Phone" cssClass="form-control second-style" required="true"/>
</div> </div>
<div class="form-group text-left">
<label>Location</label>
<oneit:ormInput obj="<%= candidate %>" type="text" attributeName="GoogleAddressText" class="autoAddress" id="<%= "gAddress_"+candidate.getObjectID() %>" placeholder="Enter your address" cssClass="form-control" />
</div>
<div class="form-group text-left">
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= candidate %>" id="prefer-remote" attributeName="PreferRemote" type="checkbox"/>
<oneit:recalcClass htmlTag="span" classScript="candidate.showPreferRemote() ? 'checked': 'unchecked'" candidate="<%= candidate %>">
<label for="prefer-remote">
<oneit:label GUIName="I would prefer to work remotely" />
</label>
</oneit:recalcClass>
</div>
</div>
</div>
<div class="form-group text-left">
<label>
We noticed that your location is different to the location of the job (Melbourne, 3000).<br/>
Are you prepared to relocate for this position?
</label>
</div>
<div class="form-group text-left">
<div class="styled_checkboxes">
<div class="checkbox checkbox-primary">
<oneit:ormInput obj="<%= candidate %>" id="happy-to-relocate" attributeName="HappyToRelocate" type="checkbox" />
<oneit:recalcClass htmlTag="span" classScript="candidate.showHappyToRelocate() ? 'checked': 'unchecked'" candidate="<%= candidate %>">
<label for="happy-to-relocate">
<oneit:label GUIName="Yes, I am happy to relocate"/>
</label>
</oneit:recalcClass>
</div>
</div>
</div>
<% <%
if(isVerify) if(isVerify)
{ {
...@@ -202,5 +239,8 @@ ...@@ -202,5 +239,8 @@
</div> </div>
</div> </div>
</div> </div>
<script>
addGoogleAddressListener('#<%= "gAddress_"+ candidate.getObjectID() %>');
</script>
</oneit:form> </oneit:form>
</oneit:dynIncluded> </oneit:dynIncluded>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment