Commit 5a844232 by Chamath

ORM changes.

parent cb8f0b0e
<?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.DefineTableOperation">
<tableName factory="String">tl_chat_attachment</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="file" type="BLOB" nullable="true"/>
<column name="message_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_chat_attachment" indexName="idx_tl_chat_attachment_message_id" isUnique="false"><column name="message_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
......@@ -44,8 +44,11 @@
<column name="shortened_url_id" type="Long" length="11" nullable="true"/>
<column name="template_id" type="Long" length="11" nullable="true"/>
<column name="job_title_id" type="Long" length="11" nullable="false"/>
<column name="work_flow_template_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job" indexName="idx_tl_job_client_id" isUnique="false"><column name="client_id"/></NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job" indexName="idx_tl_job_work_flow_template_id" isUnique="false"><column name="work_flow_template_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
......@@ -18,6 +18,7 @@
<column name="is_email_ingest" type="Boolean" nullable="true"/>
<column name="candidate_id" type="Long" length="11" nullable="false"/>
<column name="job_id" type="Long" length="11" nullable="false"/>
<column name="work_flow_stage_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_job_application" indexName="idx_tl_job_application_candidate_id" isUnique="false"><column name="candidate_id"/></NODE>
......
<?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.DefineTableOperation">
<tableName factory="String">tl_message</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="sent_via" type="String" nullable="true" length="200"/>
<column name="message_content" type="CLOB" nullable="true"/>
<column name="is_read" type="Boolean" nullable="true"/>
<column name="sent_by" type="Long" length="11" nullable="true"/>
<column name="work_flow_message" type="Long" length="11" nullable="true"/>
<column name="job_application_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_message" indexName="idx_tl_message_job_application_id" isUnique="false"><column name="job_application_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
......@@ -17,6 +17,11 @@
<column name="variance" type="Long" nullable="true"/>
<column name="business_hours_only" type="Boolean" nullable="true"/>
<column name="message_content" type="CLOB" nullable="false"/>
<column name="template_type" type="String" nullable="true" length="200"/>
<column name="is_global_template" type="Boolean" nullable="true"/>
<column name="hiring_team_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_message_template" indexName="idx_tl_message_template_hiring_team_id" isUnique="false"><column name="hiring_team_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?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.DefineTableOperation">
<tableName factory="String">tl_work_flow_message</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="delay" type="CLOB" nullable="true"/>
<column name="variance" type="CLOB" nullable="true"/>
<column name="business_hours_only" type="Boolean" nullable="true"/>
<column name="is_withdrawal_message" type="Boolean" nullable="true"/>
<column name="message_template_id" type="Long" length="11" nullable="true"/>
<column name="work_flow_stage_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_work_flow_message" indexName="idx_tl_work_flow_message_work_flow_stage_id" isUnique="false"><column name="work_flow_stage_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?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.DefineTableOperation">
<tableName factory="String">tl_work_flow_stage</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="name" type="CLOB" nullable="false"/>
<column name="use_messaging" type="Boolean" nullable="true"/>
<column name="stage_type" type="String" nullable="false" length="200"/>
<column name="sort_order" type="Long" nullable="false"/>
<column name="withdrawal_message_id" type="Long" length="11" nullable="true"/>
<column name="work_flow_template_id" type="Long" length="11" nullable="false"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_work_flow_stage" indexName="idx_tl_work_flow_stage_work_flow_template_id" isUnique="false"><column name="work_flow_template_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?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.DefineTableOperation">
<tableName factory="String">tl_work_flow_template</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="template_name" type="CLOB" nullable="false"/>
<column name="landing_button_text" type="CLOB" nullable="true"/>
<column name="verification_header_text" type="CLOB" nullable="true"/>
<column name="capture_cv" type="Boolean" nullable="true"/>
<column name="is_cv_mandatory" type="Boolean" nullable="true"/>
<column name="capture_cl" type="Boolean" nullable="true"/>
<column name="is_cl_mandatory" type="Boolean" nullable="true"/>
<column name="application_button_text" type="CLOB" nullable="true"/>
<column name="application_response_action" type="String" nullable="false" length="200"/>
<column name="thank_you_header_text" type="CLOB" nullable="true"/>
<column name="thank_you_secondary_text" type="CLOB" nullable="true"/>
<column name="job_outline_button_text" type="CLOB" nullable="true"/>
<column name="is_global_template" type="Boolean" nullable="true"/>
<column name="withdrawal_message_id" type="Long" length="11" nullable="true"/>
<column name="hiring_team_id" type="Long" length="11" nullable="true"/>
</NODE>
<NODE name="INDEX" factory="Participant" class="oneit.sql.transfer.DefineIndexOperation" tableName="tl_work_flow_template" indexName="idx_tl_work_flow_template_hiring_team_id" isUnique="false"><column name="hiring_team_id"/></NODE>
</NODE></OBJECTS>
\ No newline at end of file
-- DROP TABLE tl_chat_attachment;
CREATE TABLE tl_chat_attachment (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
file image NULL,
message_id numeric(12) NULL
);
ALTER TABLE tl_chat_attachment ADD
CONSTRAINT PK_tl_chat_attachment PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_chat_attachment_message_id
ON tl_chat_attachment (message_id);
......@@ -43,7 +43,8 @@ CREATE TABLE tl_job (
occupation_id numeric(12) NOT NULL,
shortened_url_id numeric(12) NULL,
template_id numeric(12) NULL,
job_title_id numeric(12) NOT NULL
job_title_id numeric(12) NOT NULL,
work_flow_template_id numeric(12) NULL
);
......@@ -58,3 +59,6 @@ ALTER TABLE tl_job ADD
CREATE INDEX idx_tl_job_client_id
ON tl_job (client_id);
CREATE INDEX idx_tl_job_work_flow_template_id
ON tl_job (work_flow_template_id);
......@@ -17,7 +17,8 @@ CREATE TABLE tl_job_application (
happy_to_relocate char(1) NULL,
is_email_ingest char(1) NULL,
candidate_id numeric(12) NOT NULL,
job_id numeric(12) NOT NULL
job_id numeric(12) NOT NULL,
work_flow_stage_id numeric(12) NULL
);
......
-- DROP TABLE tl_message;
CREATE TABLE tl_message (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
sent_via varchar(200) NULL,
message_content text NULL,
is_read char(1) NULL,
sent_by numeric(12) NULL,
work_flow_message numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_message ADD
CONSTRAINT PK_tl_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_message_job_application_id
ON tl_message (job_application_id);
......@@ -16,7 +16,10 @@ CREATE TABLE tl_message_template (
delay_min numeric(12) NULL,
variance numeric(12) NULL,
business_hours_only char(1) NULL,
message_content text NOT NULL
message_content text NOT NULL,
template_type varchar(200) NULL,
is_global_template char(1) NULL,
hiring_team_id numeric(12) NULL
);
......@@ -28,4 +31,6 @@ ALTER TABLE tl_message_template ADD
) ;
\ No newline at end of file
CREATE INDEX idx_tl_message_template_hiring_team_id
ON tl_message_template (hiring_team_id);
-- DROP TABLE tl_work_flow_message;
CREATE TABLE tl_work_flow_message (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
delay text NULL,
variance text NULL,
business_hours_only char(1) NULL,
is_withdrawal_message char(1) NULL,
message_template_id numeric(12) NULL,
work_flow_stage_id numeric(12) NULL
);
ALTER TABLE tl_work_flow_message ADD
CONSTRAINT PK_tl_work_flow_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_message_work_flow_stage_id
ON tl_work_flow_message (work_flow_stage_id);
-- DROP TABLE tl_work_flow_stage;
CREATE TABLE tl_work_flow_stage (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
name text NOT NULL,
use_messaging char(1) NULL,
stage_type varchar(200) NOT NULL,
sort_order numeric(12) NOT NULL,
withdrawal_message_id numeric(12) NULL,
work_flow_template_id numeric(12) NOT NULL
);
ALTER TABLE tl_work_flow_stage ADD
CONSTRAINT PK_tl_work_flow_stage PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_stage_work_flow_template_id
ON tl_work_flow_stage (work_flow_template_id);
-- DROP TABLE tl_work_flow_template;
CREATE TABLE tl_work_flow_template (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
template_name text NOT NULL,
landing_button_text text NULL,
verification_header_text text NULL,
capture_cv char(1) NULL,
is_cv_mandatory char(1) NULL,
capture_cl char(1) NULL,
is_cl_mandatory char(1) NULL,
application_button_text text NULL,
application_response_action varchar(200) NOT NULL,
thank_you_header_text text NULL,
thank_you_secondary_text text NULL,
job_outline_button_text text NULL,
is_global_template char(1) NULL,
withdrawal_message_id numeric(12) NULL,
hiring_team_id numeric(12) NULL
);
ALTER TABLE tl_work_flow_template ADD
CONSTRAINT PK_tl_work_flow_template PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_template_hiring_team_id
ON tl_work_flow_template (hiring_team_id);
-- DROP TABLE tl_chat_attachment;
CREATE TABLE tl_chat_attachment (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
file blob NULL,
message_id number(12) NULL
);
ALTER TABLE tl_chat_attachment ADD
CONSTRAINT PK_tl_chat_attachment PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_chat_attachment_message_id
ON tl_chat_attachment (message_id);
......@@ -44,7 +44,8 @@ CREATE TABLE tl_job (
occupation_id number(12) NOT NULL,
shortened_url_id number(12) NULL,
template_id number(12) NULL,
job_title_id number(12) NOT NULL
job_title_id number(12) NOT NULL,
work_flow_template_id number(12) NULL
);
......@@ -59,3 +60,6 @@ ALTER TABLE tl_job ADD
CREATE INDEX idx_tl_job_client_id
ON tl_job (client_id);
CREATE INDEX idx_tl_job_work_flow_template_id
ON tl_job (work_flow_template_id);
......@@ -18,7 +18,8 @@ CREATE TABLE tl_job_application (
happy_to_relocate char(1) NULL,
is_email_ingest char(1) NULL,
candidate_id number(12) NOT NULL,
job_id number(12) NOT NULL
job_id number(12) NOT NULL,
work_flow_stage_id number(12) NULL
);
......
-- DROP TABLE tl_message;
CREATE TABLE tl_message (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
sent_via varchar2(200) NULL,
message_content clob NULL,
is_read char(1) NULL,
sent_by number(12) NULL,
work_flow_message number(12) NULL,
job_application_id number(12) NULL
);
ALTER TABLE tl_message ADD
CONSTRAINT PK_tl_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_message_job_application_id
ON tl_message (job_application_id);
......@@ -17,7 +17,10 @@ CREATE TABLE tl_message_template (
delay_min number(12) NULL,
variance number(12) NULL,
business_hours_only char(1) NULL,
message_content clob NOT NULL
message_content clob NOT NULL,
template_type varchar2(200) NULL,
is_global_template char(1) NULL,
hiring_team_id number(12) NULL
);
......@@ -29,4 +32,6 @@ ALTER TABLE tl_message_template ADD
) ;
\ No newline at end of file
CREATE INDEX idx_tl_message_template_hiring_team_id
ON tl_message_template (hiring_team_id);
-- DROP TABLE tl_work_flow_message;
CREATE TABLE tl_work_flow_message (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
delay clob NULL,
variance clob NULL,
business_hours_only char(1) NULL,
is_withdrawal_message char(1) NULL,
message_template_id number(12) NULL,
work_flow_stage_id number(12) NULL
);
ALTER TABLE tl_work_flow_message ADD
CONSTRAINT PK_tl_work_flow_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_message_work_flow_stage_id
ON tl_work_flow_message (work_flow_stage_id);
-- DROP TABLE tl_work_flow_stage;
CREATE TABLE tl_work_flow_stage (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
name clob NOT NULL,
use_messaging char(1) NULL,
stage_type varchar2(200) NOT NULL,
sort_order number(12) NOT NULL,
withdrawal_message_id number(12) NULL,
work_flow_template_id number(12) NOT NULL
);
ALTER TABLE tl_work_flow_stage ADD
CONSTRAINT PK_tl_work_flow_stage PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_stage_work_flow_template_id
ON tl_work_flow_stage (work_flow_template_id);
-- DROP TABLE tl_work_flow_template;
CREATE TABLE tl_work_flow_template (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
template_name clob NOT NULL,
landing_button_text clob NULL,
verification_header_text clob NULL,
capture_cv char(1) NULL,
is_cv_mandatory char(1) NULL,
capture_cl char(1) NULL,
is_cl_mandatory char(1) NULL,
application_button_text clob NULL,
application_response_action varchar2(200) NOT NULL,
thank_you_header_text clob NULL,
thank_you_secondary_text clob NULL,
job_outline_button_text clob NULL,
is_global_template char(1) NULL,
withdrawal_message_id number(12) NULL,
hiring_team_id number(12) NULL
);
ALTER TABLE tl_work_flow_template ADD
CONSTRAINT PK_tl_work_flow_template PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_template_hiring_team_id
ON tl_work_flow_template (hiring_team_id);
-- @AutoRun
-- drop table tl_chat_attachment;
CREATE TABLE tl_chat_attachment (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
file bytea NULL,
message_id numeric(12) NULL
);
ALTER TABLE tl_chat_attachment ADD
CONSTRAINT pk_tl_chat_attachment PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_chat_attachment_message_id
ON tl_chat_attachment (message_id);
......@@ -44,7 +44,8 @@ CREATE TABLE tl_job (
occupation_id numeric(12) NOT NULL,
shortened_url_id numeric(12) NULL,
template_id numeric(12) NULL,
job_title_id numeric(12) NOT NULL
job_title_id numeric(12) NOT NULL,
work_flow_template_id numeric(12) NULL
);
......@@ -59,3 +60,6 @@ ALTER TABLE tl_job ADD
CREATE INDEX idx_tl_job_client_id
ON tl_job (client_id);
CREATE INDEX idx_tl_job_work_flow_template_id
ON tl_job (work_flow_template_id);
......@@ -18,7 +18,8 @@ CREATE TABLE tl_job_application (
happy_to_relocate char(1) NULL,
is_email_ingest char(1) NULL,
candidate_id numeric(12) NOT NULL,
job_id numeric(12) NOT NULL
job_id numeric(12) NOT NULL,
work_flow_stage_id numeric(12) NULL
);
......
-- @AutoRun
-- drop table tl_message;
CREATE TABLE tl_message (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
sent_via varchar(200) NULL,
message_content text NULL,
is_read char(1) NULL,
sent_by numeric(12) NULL,
work_flow_message numeric(12) NULL,
job_application_id numeric(12) NULL
);
ALTER TABLE tl_message ADD
CONSTRAINT pk_tl_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_message_job_application_id
ON tl_message (job_application_id);
......@@ -17,7 +17,10 @@ CREATE TABLE tl_message_template (
delay_min numeric(12) NULL,
variance numeric(12) NULL,
business_hours_only char(1) NULL,
message_content text NOT NULL
message_content text NOT NULL,
template_type varchar(200) NULL,
is_global_template char(1) NULL,
hiring_team_id numeric(12) NULL
);
......@@ -29,4 +32,6 @@ ALTER TABLE tl_message_template ADD
) ;
\ No newline at end of file
CREATE INDEX idx_tl_message_template_hiring_team_id
ON tl_message_template (hiring_team_id);
-- @AutoRun
-- drop table tl_work_flow_message;
CREATE TABLE tl_work_flow_message (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
delay text NULL,
variance text NULL,
business_hours_only char(1) NULL,
is_withdrawal_message char(1) NULL,
message_template_id numeric(12) NULL,
work_flow_stage_id numeric(12) NULL
);
ALTER TABLE tl_work_flow_message ADD
CONSTRAINT pk_tl_work_flow_message PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_message_work_flow_stage_id
ON tl_work_flow_message (work_flow_stage_id);
-- @AutoRun
-- drop table tl_work_flow_stage;
CREATE TABLE tl_work_flow_stage (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
name text NOT NULL,
use_messaging char(1) NULL,
stage_type varchar(200) NOT NULL,
sort_order numeric(12) NOT NULL,
withdrawal_message_id numeric(12) NULL,
work_flow_template_id numeric(12) NOT NULL
);
ALTER TABLE tl_work_flow_stage ADD
CONSTRAINT pk_tl_work_flow_stage PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_stage_work_flow_template_id
ON tl_work_flow_stage (work_flow_template_id);
-- @AutoRun
-- drop table tl_work_flow_template;
CREATE TABLE tl_work_flow_template (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
template_name text NOT NULL,
landing_button_text text NULL,
verification_header_text text NULL,
capture_cv char(1) NULL,
is_cv_mandatory char(1) NULL,
capture_cl char(1) NULL,
is_cl_mandatory char(1) NULL,
application_button_text text NULL,
application_response_action varchar(200) NOT NULL,
thank_you_header_text text NULL,
thank_you_secondary_text text NULL,
job_outline_button_text text NULL,
is_global_template char(1) NULL,
withdrawal_message_id numeric(12) NULL,
hiring_team_id numeric(12) NULL
);
ALTER TABLE tl_work_flow_template ADD
CONSTRAINT pk_tl_work_flow_template PRIMARY KEY
(
object_id
) ;
CREATE INDEX idx_tl_work_flow_template_hiring_team_id
ON tl_work_flow_template (hiring_team_id);
This source diff could not be displayed because it is too large. You can view the blob instead.
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
public class ChatAttachment extends BaseChatAttachment
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public ChatAttachment ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="ChatAttachment" package="performa.orm">
<TABLE name="tl_chat_attachment" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="File" type="BinaryContent" dbcol="file" attribHelper="BLOBAttributeHelper" attribHelperInstance="BLOBAttributeHelper.INSTANCE" binaryHandler="loggedin"/>
<SINGLEREFERENCE name="Message" type="Message" dbcol="message_id" backreferenceName="Attachments"/>
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
......@@ -11,6 +11,8 @@
<MULTIPLEREFERENCE name="Clients" type="Client" backreferenceName="HiringTeam" />
<MULTIPLEREFERENCE name="BillingTeams" type="HiringTeam" backreferenceName="BilledByTeam" />
<MULTIPLEREFERENCE name="DiversityQuestions" type="HTDiversityQuestion" backreferenceName="HiringTeam" />
<MULTIPLEREFERENCE name="WorkFlowTemplates" type="WorkFlowTemplate" backreferenceName="HiringTeam" />
<MULTIPLEREFERENCE name="MessageTemplates" type="MessageTemplate" backreferenceName="HiringTeam" />
<TRANSIENT name="ExistingCustomer" type="Boolean" defaultValue="Boolean.TRUE"/>
<TRANSIENT name="IsLogoDeleted" type="Boolean" defaultValue="Boolean.FALSE"/>
......
......@@ -61,15 +61,16 @@
<ATTRIB name="GoogleAddressText" type="String" dbcol="google_address_text" mandatory="true" length="300" />
<ATTRIB name="DiversityIncluded" type="Boolean" dbcol="diversity_included" defaultValue="Boolean.FALSE"/>
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_id" mandatory="false"/>
<SINGLEREFERENCE name="Client" type="Client" dbcol="client_id" backreferenceName="Jobs"/>
<SINGLEREFERENCE name="Level" type="Level" dbcol="level_id" mandatory="false"/>
<SINGLEREFERENCE name="Client" type="Client" dbcol="client_id" backreferenceName="Jobs"/>
<SINGLEREFERENCE name="JobOwner" type="CompanyUser" dbcol="job_owner_id" />
<SINGLEREFERENCE name="CreatedBy" type="CompanyUser" dbcol="company_user_id" />
<SINGLEREFERENCE name="HiringTeam" type="HiringTeam" dbcol="hiring_team_id" />
<SINGLEREFERENCE name="Occupation" type="Occupation" dbcol="occupation_id" mandatory="true"/>
<SINGLEREFERENCE name="Occupation" type="Occupation" dbcol="occupation_id" mandatory="true"/>
<SINGLEREFERENCE name="ShortenedURL" type="ShortenedURL" dbcol="shortened_url_id" />
<SINGLEREFERENCE name="AssessmentTemplate" type="AssessmentCriteriaTemplate" dbcol="template_id" />
<SINGLEREFERENCE name="ILOJobTitle" type="ILOJobTitle" dbcol="job_title_id" mandatory="true"/>
<SINGLEREFERENCE name="ILOJobTitle" type="ILOJobTitle" dbcol="job_title_id" mandatory="true"/>
<SINGLEREFERENCE name="WorkFlowTemplate" type="WorkFlowTemplate" dbcol="work_flow_template_id" backreferenceName="Jobs" mandatory="false"/>
</TABLE>
......
......@@ -10,6 +10,7 @@
<MULTIPLEREFERENCE name="Notes" type="Note" backreferenceName="JobApplication" />
<MULTIPLEREFERENCE name="ScheduledEmails" type="ScheduledEmail" backreferenceName="JobApplication" />
<MULTIPLEREFERENCE name="SentEmails" type="SentEmail" backreferenceName="JobApplication" />
<MULTIPLEREFERENCE name="Messages" type="Message" backreferenceName="JobApplication" />
<TRANSIENT name="AppProcessOption" type="AppProcessOption" attribHelper="EnumeratedAttributeHelper"/>
<TRANSIENT name="OverallRank" type="Integer" />
......@@ -32,8 +33,9 @@
<ATTRIB name="HappyToRelocate" type="Boolean" dbcol="happy_to_relocate"/>
<ATTRIB name="IsEmailIngest" type="Boolean" dbcol="is_email_ingest" defaultValue="Boolean.FALSE"/>
<SINGLEREFERENCE name="Candidate" type="Candidate" dbcol="candidate_id" backreferenceName="JobApplications" mandatory="true"/>
<SINGLEREFERENCE name="Job" type="Job" dbcol="job_id" backreferenceName="JobApplications" mandatory="true"/>
<SINGLEREFERENCE name="Candidate" type="Candidate" dbcol="candidate_id" backreferenceName="JobApplications" mandatory="true"/>
<SINGLEREFERENCE name="Job" type="Job" dbcol="job_id" backreferenceName="JobApplications" mandatory="true"/>
<SINGLEREFERENCE name="WorkFlowStage" type="WorkFlowStage" dbcol="work_flow_stage_id" mandatory="false"/>
</TABLE>
......
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
import oneit.security.*;
public class Message extends BaseMessage
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Message ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="Message" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<IMPORT value="oneit.security.*"/>
<MULTIPLEREFERENCE name="Attachments" type="ChatAttachment" backreferenceName="Message" />
<TABLE name="tl_message" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="SentVia" type="SentVia" dbcol="sent_via" attribHelper="EnumeratedAttributeHelper" mandatory="false"/>
<ATTRIB name="MessageContent" type="String" dbcol="message_content" mandatory="false"/>
<ATTRIB name="IsRead" type="Boolean" dbcol="is_read" mandatory="false"/>
<SINGLEREFERENCE name="SentBy" type="SecUser" dbcol="sent_by" />
<SINGLEREFERENCE name="WorkFlowMessage" type="WorkFlowMessage" dbcol="work_flow_message" />
<SINGLEREFERENCE name="JobApplication" type="JobApplication" dbcol="job_application_id" backreferenceName="Messages" mandatory="false"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_message.object_id is not null" orderBy="tl_message.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
......@@ -15,7 +15,11 @@
<ATTRIB name="Variance" type="Integer" dbcol="variance" mandatory="false" defaultValue="0" />
<ATTRIB name="BusinessHoursOnly" type="Boolean" dbcol="business_hours_only" mandatory="false" defaultValue="Boolean.FALSE"/>
<ATTRIB name="MessageContent" type="String" dbcol="message_content" mandatory="true" />
<ATTRIB name="TemplateType" type="TemplateType" dbcol="template_type" attribHelper="EnumeratedAttributeHelper" mandatory="false"/>
<ATTRIB name="IsGlobalTemplate" type="Boolean" dbcol="is_global_template" mandatory="false"/>
<SINGLEREFERENCE name="HiringTeam" type="HiringTeam" dbcol="hiring_team_id" backreferenceName="MessageTemplates" mandatory="false"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_message_template.object_id is not null" />
......
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
public class WorkFlowMessage extends BaseWorkFlowMessage
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public WorkFlowMessage ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="WorkFlowMessage" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<TABLE name="tl_work_flow_message" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Delay" type="String" dbcol="delay" mandatory="false"/>
<ATTRIB name="Variance" type="String" dbcol="variance" mandatory="false"/>
<ATTRIB name="BusinessHoursOnly" type="Boolean" dbcol="business_hours_only" mandatory="false"/>
<ATTRIB name="IsWithdrawalMessage" type="Boolean" dbcol="is_withdrawal_message" mandatory="false"/>
<SINGLEREFERENCE name="MessageTemplate" type="MessageTemplate" dbcol="message_template_id" />
<SINGLEREFERENCE name="WorkFlowStage" type="WorkFlowStage" dbcol="work_flow_stage_id" backreferenceName="WorkFlowMessages" mandatory="false"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_work_flow_message.object_id is not null" orderBy="tl_work_flow_message.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
public class WorkFlowStage extends BaseWorkFlowStage
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public WorkFlowStage ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="WorkFlowStage" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<MULTIPLEREFERENCE name="WorkFlowMessages" type="WorkFlowMessage" backreferenceName="WorkFlowStage" />
<TABLE name="tl_work_flow_stage" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Name" type="String" dbcol="name" mandatory="true"/>
<ATTRIB name="UseMessaging" type="Boolean" dbcol="use_messaging" mandatory="false"/>
<ATTRIB name="StageType" type="StageType" dbcol="stage_type" attribHelper="EnumeratedAttributeHelper" mandatory="true"/>
<ATTRIB name="SortOrder" type="Integer" dbcol="sort_order" mandatory="true"/>
<SINGLEREFERENCE name="WithdrawalMessage" type="WorkFlowMessage" dbcol="withdrawal_message_id" />
<SINGLEREFERENCE name="WorkFlowTemplate" type="WorkFlowTemplate" dbcol="work_flow_template_id" backreferenceName="WorkFlowStages" mandatory="true"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_work_flow_stage.object_id is not null" orderBy="tl_work_flow_stage.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
public class WorkFlowTemplate extends BaseWorkFlowTemplate
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public WorkFlowTemplate ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="WorkFlowTemplate" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<MULTIPLEREFERENCE name="WorkFlowStages" type="WorkFlowStage" backreferenceName="WorkFlowTemplate" />
<MULTIPLEREFERENCE name="Jobs" type="Job" backreferenceName="WorkFlowTemplate" />
<TABLE name="tl_work_flow_template" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="TemplateName" type="String" dbcol="template_name" mandatory="true"/>
<ATTRIB name="LandingButtonText" type="String" dbcol="landing_button_text" mandatory="false"/>
<ATTRIB name="VerificationHeaderText" type="String" dbcol="verification_header_text" mandatory="false"/>
<ATTRIB name="CaptureCV" type="Boolean" dbcol="capture_cv" mandatory="false"/>
<ATTRIB name="IsCVMandatory" type="Boolean" dbcol="is_cv_mandatory" mandatory="false"/>
<ATTRIB name="CaptureCL" type="Boolean" dbcol="capture_cl" mandatory="false"/>
<ATTRIB name="IsCLMandatory" type="Boolean" dbcol="is_cl_mandatory" mandatory="false"/>
<ATTRIB name="ApplicationButtonText" type="String" dbcol="application_button_text" mandatory="false"/>
<ATTRIB name="ApplicationResponseAction" type="ResponseAction" dbcol="application_response_action" attribHelper="EnumeratedAttributeHelper" mandatory="true"/>
<ATTRIB name="ThankYouHeaderText" type="String" dbcol="thank_you_header_text" mandatory="false"/>
<ATTRIB name="ThankYouSecondaryText" type="String" dbcol="thank_you_secondary_text" mandatory="false"/>
<ATTRIB name="JobOutlineButtonText" type="String" dbcol="job_outline_button_text" mandatory="false"/>
<ATTRIB name="IsGlobalTemplate" type="Boolean" dbcol="is_global_template" mandatory="false"/>
<SINGLEREFERENCE name="WithdrawalMessage" type="WorkFlowMessage" dbcol="withdrawal_message_id" />
<SINGLEREFERENCE name="HiringTeam" type="HiringTeam" dbcol="hiring_team_id" backreferenceName="WorkFlowTemplates" mandatory="false"/>
</TABLE>
<SEARCH type="All" paramFilter="tl_work_flow_template.object_id is not null" orderBy="tl_work_flow_template.object_id" />
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
......@@ -36,9 +36,15 @@ public class PlaceholderOptions extends AbstractEnumerated
public static final PlaceholderOptions JOB_REFERENCE = new PlaceholderOptions ("JOB_REFERENCE", "JOB_REFERENCE", "Job Reference", false);
public static final PlaceholderOptions JOB_LINK = new PlaceholderOptions ("JOB_LINK", "JOB_LINK", "Job Link", false);
public static final PlaceholderOptions WITHDRAW_LINK = new PlaceholderOptions ("WITHDRAW_LINK", "WITHDRAW_LINK", "Withdraw Link", false);
public static final PlaceholderOptions JOB_OWNER_FIRST_NAME = new PlaceholderOptions ("JOB_OWNER_FIRST_NAME", "JOB_OWNER_FIRST_NAME", "Job Owner - First Name", false);
public static final PlaceholderOptions JOB_OWNER_LAST_NAME = new PlaceholderOptions ("JOB_OWNER_LAST_NAME", "JOB_OWNER_LAST_NAME", "Job Owner - Last Name", false);
private static final PlaceholderOptions[] allPlaceholderOptionss =
new PlaceholderOptions[] { FIRST_NAME,SURNAME,EMAIL_ADDRESS,LOCATION,HIRING_TEAM,JOB_TITLE,JOB_REFERENCE,JOB_LINK};
new PlaceholderOptions[] { FIRST_NAME,SURNAME,EMAIL_ADDRESS,LOCATION,HIRING_TEAM,JOB_TITLE,JOB_REFERENCE,JOB_LINK,WITHDRAW_LINK,JOB_OWNER_FIRST_NAME,JOB_OWNER_LAST_NAME};
private static PlaceholderOptions[] getAllPlaceholderOptionss ()
......@@ -48,6 +54,10 @@ public class PlaceholderOptions extends AbstractEnumerated
private transient String Placeholder;
private transient Boolean ShowForSubject;
private transient Boolean ShowForContent;
private PlaceholderOptions (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
......@@ -57,6 +67,16 @@ public class PlaceholderOptions extends AbstractEnumerated
{
return Placeholder;
}
public Boolean getShowForSubject()
{
return ShowForSubject;
}
public Boolean getShowForContent()
{
return ShowForContent;
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allPlaceholderOptionss);
......@@ -126,13 +146,38 @@ public class PlaceholderOptions extends AbstractEnumerated
public static void defineAdditionalData ()
{
FIRST_NAME.Placeholder = "$firstName";
FIRST_NAME.ShowForSubject = Boolean.TRUE;
FIRST_NAME.ShowForContent = Boolean.TRUE;
SURNAME.Placeholder = "$surname";
SURNAME.ShowForSubject = Boolean.TRUE;
SURNAME.ShowForContent = Boolean.TRUE;
EMAIL_ADDRESS.Placeholder = "$emailAddress";
EMAIL_ADDRESS.ShowForSubject = Boolean.TRUE;
EMAIL_ADDRESS.ShowForContent = Boolean.TRUE;
LOCATION.Placeholder = "$location";
LOCATION.ShowForSubject = Boolean.TRUE;
LOCATION.ShowForContent = Boolean.TRUE;
HIRING_TEAM.Placeholder = "$hiringTeam";
HIRING_TEAM.ShowForSubject = Boolean.TRUE;
HIRING_TEAM.ShowForContent = Boolean.TRUE;
JOB_TITLE.Placeholder = "$jobTitle";
JOB_TITLE.ShowForSubject = Boolean.TRUE;
JOB_TITLE.ShowForContent = Boolean.TRUE;
JOB_REFERENCE.Placeholder = "$jobReference";
JOB_REFERENCE.ShowForSubject = Boolean.TRUE;
JOB_REFERENCE.ShowForContent = Boolean.TRUE;
JOB_LINK.Placeholder = "$jobLink";
JOB_LINK.ShowForSubject = Boolean.FALSE;
JOB_LINK.ShowForContent = Boolean.TRUE;
WITHDRAW_LINK.Placeholder = "$withdrawLink";
WITHDRAW_LINK.ShowForSubject = Boolean.FALSE;
WITHDRAW_LINK.ShowForContent = Boolean.TRUE;
JOB_OWNER_FIRST_NAME.Placeholder = "$jobOwnerFirstName";
JOB_OWNER_FIRST_NAME.ShowForSubject = Boolean.TRUE;
JOB_OWNER_FIRST_NAME.ShowForContent = Boolean.TRUE;
JOB_OWNER_LAST_NAME.Placeholder = "$jobOwnerLastName";
JOB_OWNER_LAST_NAME.ShowForSubject = Boolean.TRUE;
JOB_OWNER_LAST_NAME.ShowForContent = Boolean.TRUE;
}
......@@ -161,6 +206,8 @@ public class PlaceholderOptions extends AbstractEnumerated
Map attribs = new HashMap ();
attribs.put ("Placeholder", ArrayFormatter.toObject(getPlaceholder()));
attribs.put ("ShowForSubject", ArrayFormatter.toObject(getShowForSubject()));
attribs.put ("ShowForContent", ArrayFormatter.toObject(getShowForContent()));
return attribs;
}
......@@ -188,12 +235,24 @@ public class PlaceholderOptions extends AbstractEnumerated
{
return toPlaceholder ();
}
if (name.equals ("ShowForSubject"))
{
return toShowForSubject ();
}
if (name.equals ("ShowForContent"))
{
return toShowForContent ();
}
return super.to(name);
}
public PipeLine<From, String> toPlaceholder () { return pipe(new EnumAttributePipe<Me, String>("Placeholder")); }
public PipeLine<From, Boolean> toShowForSubject () { return pipe(new EnumAttributePipe<Me, Boolean>("ShowForSubject")); }
public PipeLine<From, Boolean> toShowForContent () { return pipe(new EnumAttributePipe<Me, Boolean>("ShowForContent")); }
}
}
......@@ -3,16 +3,32 @@
<ROOT>
<CONSTANT package="performa.orm.types" name="PlaceholderOptions">
<DATA name="Placeholder" type="String"/>
<DATA name="Placeholder" type="String"/>
<DATA name="ShowForSubject" type="Boolean"/>
<DATA name="ShowForContent" type="Boolean"/>
<VALUE name="FIRST_NAME" value="FIRST_NAME" description="First Name" Placeholder='"$firstName"' />
<VALUE name="SURNAME" value="SURNAME" description="Surname" Placeholder='"$surname"' />
<VALUE name="EMAIL_ADDRESS" value="EMAIL_ADDRESS" description="Email Address" Placeholder='"$emailAddress"' />
<VALUE name="LOCATION" value="LOCATION" description="Location" Placeholder='"$location"' />
<VALUE name="HIRING_TEAM" value="HIRING_TEAM" description="Hiring Team" Placeholder='"$hiringTeam"' />
<VALUE name="JOB_TITLE" value="JOB_TITLE" description="Job Title" Placeholder='"$jobTitle"' />
<VALUE name="JOB_REFERENCE" value="JOB_REFERENCE" description="Job Reference" Placeholder='"$jobReference"' />
<VALUE name="JOB_LINK" value="JOB_LINK" description="Job Link" Placeholder='"$jobLink"' />
<VALUE name="FIRST_NAME" value="FIRST_NAME" description="First Name" Placeholder='"$firstName"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="SURNAME" value="SURNAME" description="Surname" Placeholder='"$surname"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="EMAIL_ADDRESS" value="EMAIL_ADDRESS" description="Email Address" Placeholder='"$emailAddress"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="LOCATION" value="LOCATION" description="Location" Placeholder='"$location"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="HIRING_TEAM" value="HIRING_TEAM" description="Hiring Team" Placeholder='"$hiringTeam"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="JOB_TITLE" value="JOB_TITLE" description="Job Title" Placeholder='"$jobTitle"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="JOB_REFERENCE" value="JOB_REFERENCE" description="Job Reference" Placeholder='"$jobReference"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="JOB_LINK" value="JOB_LINK" description="Job Link" Placeholder='"$jobLink"'
ShowForSubject="Boolean.FALSE" ShowForContent="Boolean.TRUE"/>
<VALUE name="WITHDRAW_LINK" value="WITHDRAW_LINK" description="Withdraw Link" Placeholder='"$withdrawLink"'
ShowForSubject="Boolean.FALSE" ShowForContent="Boolean.TRUE"/>
<VALUE name="JOB_OWNER_FIRST_NAME" value="JOB_OWNER_FIRST_NAME" description="Job Owner - First Name" Placeholder='"$jobOwnerFirstName"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
<VALUE name="JOB_OWNER_LAST_NAME" value="JOB_OWNER_LAST_NAME" description="Job Owner - Last Name" Placeholder='"$jobOwnerLastName"'
ShowForSubject="Boolean.TRUE" ShowForContent="Boolean.TRUE"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
import oneit.utils.transform.*;
/**
* 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 ResponseAction extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_ResponseAction = new ResponseActionFactory();
public static final ResponseAction EMAIL_RESPONSE = new ResponseAction ("EMAIL_RESPONSE", "EMAIL_RESPONSE", "Email Response", false);
public static final ResponseAction CONTINUE = new ResponseAction ("CONTINUE", "CONTINUE", "Continue", false);
private static final ResponseAction[] allResponseActions =
new ResponseAction[] { EMAIL_RESPONSE,CONTINUE};
private static ResponseAction[] getAllResponseActions ()
{
return allResponseActions;
}
private ResponseAction (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allResponseActions);
static
{
defineAdditionalData ();
}
public boolean isEqual (ResponseAction other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return ResponseAction.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return ResponseAction.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_ResponseAction;
}
public static ResponseAction forName (String name)
{
if (name == null) { return null; }
ResponseAction[] all = getAllResponseActions();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static ResponseAction forValue (String value)
{
if (value == null) { return null; }
ResponseAction[] all = getAllResponseActions();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllResponseActions (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllResponseActions());
}
public static ResponseAction[] getResponseActionArray ()
{
return (ResponseAction[])getAllResponseActions().clone ();
}
public static void defineAdditionalData ()
{
}
static class ResponseActionFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return ResponseAction.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return ResponseAction.forValue (name);
}
public Enumeration getAll ()
{
return ResponseAction.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
public static class ResponseActionPipeLineFactory<From, Me extends ResponseAction> extends AbstractEnumerated.EnumPipeLine<From, Me>
{
public <Prev> ResponseActionPipeLineFactory (PipeLine<From, Prev> pipeLine, Pipe<Prev, Me> nextPipe)
{
super (pipeLine, nextPipe);
}
public ResponseActionPipeLineFactory (From seed)
{
super(seed);
}
public ResponseActionPipeLineFactory (Collection<From> seed)
{
super(seed);
}
public PipeLine<From, ? extends Object> to(String name)
{
return super.to(name);
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="ResponseAction">
<VALUE name="EMAIL_RESPONSE" description="Email Response"/>
<VALUE name="CONTINUE" description="Continue"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
import oneit.utils.transform.*;
/**
* 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 SentVia extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_SentVia = new SentViaFactory();
public static final SentVia EMAIL = new SentVia ("EMAIL", "EMAIL", "Email", false);
public static final SentVia SMS = new SentVia ("SMS", "SMS", "SMS", false);
public static final SentVia ON_APP = new SentVia ("ON_APP", "ON_APP", "On App", false);
private static final SentVia[] allSentVias =
new SentVia[] { EMAIL,SMS,ON_APP};
private static SentVia[] getAllSentVias ()
{
return allSentVias;
}
private SentVia (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allSentVias);
static
{
defineAdditionalData ();
}
public boolean isEqual (SentVia other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return SentVia.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return SentVia.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_SentVia;
}
public static SentVia forName (String name)
{
if (name == null) { return null; }
SentVia[] all = getAllSentVias();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static SentVia forValue (String value)
{
if (value == null) { return null; }
SentVia[] all = getAllSentVias();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllSentVias (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllSentVias());
}
public static SentVia[] getSentViaArray ()
{
return (SentVia[])getAllSentVias().clone ();
}
public static void defineAdditionalData ()
{
}
static class SentViaFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return SentVia.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return SentVia.forValue (name);
}
public Enumeration getAll ()
{
return SentVia.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
public static class SentViaPipeLineFactory<From, Me extends SentVia> extends AbstractEnumerated.EnumPipeLine<From, Me>
{
public <Prev> SentViaPipeLineFactory (PipeLine<From, Prev> pipeLine, Pipe<Prev, Me> nextPipe)
{
super (pipeLine, nextPipe);
}
public SentViaPipeLineFactory (From seed)
{
super(seed);
}
public SentViaPipeLineFactory (Collection<From> seed)
{
super(seed);
}
public PipeLine<From, ? extends Object> to(String name)
{
return super.to(name);
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="SentVia">
<VALUE name="EMAIL" description="Email"/>
<VALUE name="SMS" description="SMS"/>
<VALUE name="ON_APP" description="On App"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
import oneit.utils.transform.*;
/**
* 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 StageType extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_StageType = new StageTypeFactory();
public static final StageType POST_INGEST = new StageType ("POST_INGEST", "POST_INGEST", "Post Ingest", false);
public static final StageType INCOMPLETE = new StageType ("INCOMPLETE", "INCOMPLETE", "Incomplete", false);
public static final StageType REFERENCE_CHECK = new StageType ("REFERENCE_CHECK", "REFERENCE_CHECK", "Reference Check", false);
public static final StageType SCREENING_CHECK = new StageType ("SCREENING_CHECK", "SCREENING_CHECK", "Screening Check", false);
public static final StageType VIDEO_INTERVIEW = new StageType ("VIDEO_INTERVIEW", "VIDEO_INTERVIEW", "Video Interview", false);
public static final StageType INTERVIEW = new StageType ("INTERVIEW", "INTERVIEW", "Interview", false);
public static final StageType REQUIREMENT_FIT = new StageType ("REQUIREMENT_FIT", "REQUIREMENT_FIT", "Requirement Fit", false);
public static final StageType CULTURE_FIT = new StageType ("CULTURE_FIT", "CULTURE_FIT", "Culture Fit", false);
public static final StageType ROLE_FIT = new StageType ("ROLE_FIT", "ROLE_FIT", "Role Fit", false);
public static final StageType DIVERSITY = new StageType ("DIVERSITY", "DIVERSITY", "Diversity", false);
public static final StageType SUCCESSFULL = new StageType ("SUCCESSFULL", "SUCCESSFULL", "Successfull", false);
public static final StageType UNSUITABLE = new StageType ("UNSUITABLE", "UNSUITABLE", "Unsuitable", false);
public static final StageType WITHDREW = new StageType ("WITHDREW", "WITHDREW", "Withdrew", false);
private static final StageType[] allStageTypes =
new StageType[] { POST_INGEST,INCOMPLETE,REFERENCE_CHECK,SCREENING_CHECK,VIDEO_INTERVIEW,INTERVIEW,REQUIREMENT_FIT,CULTURE_FIT,ROLE_FIT,DIVERSITY,SUCCESSFULL,UNSUITABLE,WITHDREW};
private static StageType[] getAllStageTypes ()
{
return allStageTypes;
}
private transient Boolean IsPreStage;
private transient Boolean IsPostStage;
private StageType (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public Boolean getIsPreStage()
{
return IsPreStage;
}
public Boolean getIsPostStage()
{
return IsPostStage;
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allStageTypes);
static
{
defineAdditionalData ();
}
public boolean isEqual (StageType other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return StageType.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return StageType.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_StageType;
}
public static StageType forName (String name)
{
if (name == null) { return null; }
StageType[] all = getAllStageTypes();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static StageType forValue (String value)
{
if (value == null) { return null; }
StageType[] all = getAllStageTypes();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllStageTypes (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllStageTypes());
}
public static StageType[] getStageTypeArray ()
{
return (StageType[])getAllStageTypes().clone ();
}
public static void defineAdditionalData ()
{
POST_INGEST.IsPreStage = Boolean.TRUE;
POST_INGEST.IsPostStage = Boolean.FALSE;
INCOMPLETE.IsPreStage = Boolean.TRUE;
INCOMPLETE.IsPostStage = Boolean.FALSE;
REFERENCE_CHECK.IsPreStage = Boolean.FALSE;
REFERENCE_CHECK.IsPostStage = Boolean.FALSE;
SCREENING_CHECK.IsPreStage = Boolean.FALSE;
SCREENING_CHECK.IsPostStage = Boolean.FALSE;
VIDEO_INTERVIEW.IsPreStage = Boolean.FALSE;
VIDEO_INTERVIEW.IsPostStage = Boolean.FALSE;
INTERVIEW.IsPreStage = Boolean.FALSE;
INTERVIEW.IsPostStage = Boolean.FALSE;
REQUIREMENT_FIT.IsPreStage = Boolean.FALSE;
REQUIREMENT_FIT.IsPostStage = Boolean.FALSE;
CULTURE_FIT.IsPreStage = Boolean.FALSE;
CULTURE_FIT.IsPostStage = Boolean.FALSE;
ROLE_FIT.IsPreStage = Boolean.FALSE;
ROLE_FIT.IsPostStage = Boolean.FALSE;
DIVERSITY.IsPreStage = Boolean.FALSE;
DIVERSITY.IsPostStage = Boolean.FALSE;
SUCCESSFULL.IsPreStage = Boolean.FALSE;
SUCCESSFULL.IsPostStage = Boolean.TRUE;
UNSUITABLE.IsPreStage = Boolean.FALSE;
UNSUITABLE.IsPostStage = Boolean.TRUE;
WITHDREW.IsPreStage = Boolean.FALSE;
WITHDREW.IsPostStage = Boolean.TRUE;
}
static class StageTypeFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return StageType.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return StageType.forValue (name);
}
public Enumeration getAll ()
{
return StageType.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
attribs.put ("IsPreStage", ArrayFormatter.toObject(getIsPreStage()));
attribs.put ("IsPostStage", ArrayFormatter.toObject(getIsPostStage()));
return attribs;
}
public static class StageTypePipeLineFactory<From, Me extends StageType> extends AbstractEnumerated.EnumPipeLine<From, Me>
{
public <Prev> StageTypePipeLineFactory (PipeLine<From, Prev> pipeLine, Pipe<Prev, Me> nextPipe)
{
super (pipeLine, nextPipe);
}
public StageTypePipeLineFactory (From seed)
{
super(seed);
}
public StageTypePipeLineFactory (Collection<From> seed)
{
super(seed);
}
public PipeLine<From, ? extends Object> to(String name)
{
if (name.equals ("IsPreStage"))
{
return toIsPreStage ();
}
if (name.equals ("IsPostStage"))
{
return toIsPostStage ();
}
return super.to(name);
}
public PipeLine<From, Boolean> toIsPreStage () { return pipe(new EnumAttributePipe<Me, Boolean>("IsPreStage")); }
public PipeLine<From, Boolean> toIsPostStage () { return pipe(new EnumAttributePipe<Me, Boolean>("IsPostStage")); }
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="StageType">
<DATA name="IsPreStage" type="Boolean"/>
<DATA name="IsPostStage" type="Boolean"/>
<VALUE name="POST_INGEST" description="Post Ingest" IsPreStage="Boolean.TRUE" IsPostStage="Boolean.FALSE"/>
<VALUE name="INCOMPLETE" description="Incomplete" IsPreStage="Boolean.TRUE" IsPostStage="Boolean.FALSE"/>
<VALUE name="REFERENCE_CHECK" description="Reference Check" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="SCREENING_CHECK" description="Screening Check" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="VIDEO_INTERVIEW" description="Video Interview" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="INTERVIEW" description="Interview" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="REQUIREMENT_FIT" description="Requirement Fit" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="CULTURE_FIT" description="Culture Fit" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="ROLE_FIT" description="Role Fit" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="DIVERSITY" description="Diversity" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.FALSE"/>
<VALUE name="SUCCESSFULL" description="Successfull" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.TRUE"/>
<VALUE name="UNSUITABLE" description="Unsuitable" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.TRUE"/>
<VALUE name="WITHDREW" description="Withdrew" IsPreStage="Boolean.FALSE" IsPostStage="Boolean.TRUE"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
package performa.orm.types;
import java.util.*;
import oneit.utils.*;
import oneit.utils.transform.*;
/**
* 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 TemplateType extends AbstractEnumerated
{
public static final EnumeratedFactory FACTORY_TemplateType = new TemplateTypeFactory();
public static final TemplateType EMAIL = new TemplateType ("EMAIL", "EMAIL", "Email", false);
public static final TemplateType SMS = new TemplateType ("SMS", "SMS", "SMS", false);
private static final TemplateType[] allTemplateTypes =
new TemplateType[] { EMAIL,SMS};
private static TemplateType[] getAllTemplateTypes ()
{
return allTemplateTypes;
}
private TemplateType (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allTemplateTypes);
static
{
defineAdditionalData ();
}
public boolean isEqual (TemplateType other)
{
return this.name.equals (other.name);
}
public Enumeration getAllInstances ()
{
return TemplateType.getAll ();
}
private Object readResolve() throws java.io.ObjectStreamException
{
return TemplateType.forName (this.name);
}
public EnumeratedFactory getFactory ()
{
return FACTORY_TemplateType;
}
public static TemplateType forName (String name)
{
if (name == null) { return null; }
TemplateType[] all = getAllTemplateTypes();
int enumIndex = AbstractEnumerated.getIndexForName (all, name);
return all[enumIndex];
}
public static TemplateType forValue (String value)
{
if (value == null) { return null; }
TemplateType[] all = getAllTemplateTypes();
int enumIndex = AbstractEnumerated.getIndexForValue (getAllTemplateTypes (), value);
return all[enumIndex];
}
public static java.util.Enumeration getAll ()
{
return AbstractEnumerated.getAll (getAllTemplateTypes());
}
public static TemplateType[] getTemplateTypeArray ()
{
return (TemplateType[])getAllTemplateTypes().clone ();
}
public static void defineAdditionalData ()
{
}
static class TemplateTypeFactory implements EnumeratedFactory
{
public AbstractEnumerated getForName (String name)
{
return TemplateType.forName (name);
}
public AbstractEnumerated getForValue (String name)
{
return TemplateType.forValue (name);
}
public Enumeration getAll ()
{
return TemplateType.getAll ();
}
}
public Map getAdditionalAttributes ()
{
Map attribs = new HashMap ();
return attribs;
}
public static class TemplateTypePipeLineFactory<From, Me extends TemplateType> extends AbstractEnumerated.EnumPipeLine<From, Me>
{
public <Prev> TemplateTypePipeLineFactory (PipeLine<From, Prev> pipeLine, Pipe<Prev, Me> nextPipe)
{
super (pipeLine, nextPipe);
}
public TemplateTypePipeLineFactory (From seed)
{
super(seed);
}
public TemplateTypePipeLineFactory (Collection<From> seed)
{
super(seed);
}
public PipeLine<From, ? extends Object> to(String name)
{
return super.to(name);
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<CONSTANT package="performa.orm.types" name="TemplateType">
<VALUE name="EMAIL" description="Email"/>
<VALUE name="SMS" description="SMS"/>
</CONSTANT>
</ROOT>
\ No newline at end of file
......@@ -191,7 +191,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
return;
}
Message[] messages;
javax.mail.Message[] messages;
SearchTerm searchTerm = getSearchTerm();
if(searchTerm == null)
......@@ -205,7 +205,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
LogMgr.log(LOG, LogLevel.PROCESSING1, "Number of messages to be processed in ", folder.getName(), ": ", messages.length);
for(Message message : messages)
for(javax.mail.Message message : messages)
{
processMessage(message, uidFolder, messageIDs);
}
......@@ -224,7 +224,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
return null;
}
public static void processMessage(Message message, UIDFolder uidFolder, final Set<String> messageIDs)
public static void processMessage(javax.mail.Message message, UIDFolder uidFolder, final Set<String> messageIDs)
{
LogMgr.log(LOG, LogLevel.PROCESSING2 , "processMessage called");
......@@ -570,7 +570,7 @@ public class PerformaEmailFetcher implements Runnable, InitialisationParticipant
return strPerson.replace("via SEEK", "").trim();
}
private static List<FileBinaryContent> getAttachments(Message message) throws IOException, MessagingException
private static List<FileBinaryContent> getAttachments(javax.mail.Message message) throws IOException, MessagingException
{
List<FileBinaryContent> contents = new ArrayList<>();
......
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