Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
a50e806c
Commit
a50e806c
authored
Nov 13, 2019
by
nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding web service for create job visibility - for header functions
parent
835682f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
BaseCreateJobVisibilityFP.java
cmsWebApp/src/performa/ws/BaseCreateJobVisibilityFP.java
+0
-0
CreateJobVisibilityFP.java
cmsWebApp/src/performa/ws/CreateJobVisibilityFP.java
+48
-0
CreateJobVisibilityFP.xml
cmsWebApp/src/performa/ws/CreateJobVisibilityFP.xml
+16
-0
GeneralConfig_performa.xml
...pp/webroot/extensions/performa/GeneralConfig_performa.xml
+4
-0
No files found.
cmsWebApp/src/performa/ws/BaseCreateJobVisibilityFP.java
0 → 100644
View file @
a50e806c
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/ws/CreateJobVisibilityFP.java
0 → 100644
View file @
a50e806c
package
performa
.
ws
;
import
java.util.Set
;
import
oneit.appservices.ws.JSONServiceRequest
;
import
oneit.logging.LogLevel
;
import
oneit.logging.LogMgr
;
import
oneit.logging.LoggingArea
;
import
oneit.objstore.BaseBusinessClass
;
import
oneit.objstore.ObjectTransaction
;
import
oneit.utils.BusinessException
;
import
oneit.utils.MultiException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
performa.orm.HiringTeam
;
public
class
CreateJobVisibilityFP
extends
BaseCreateJobVisibilityFP
{
private
static
final
long
serialVersionUID
=
0L
;
public
static
LoggingArea
LOG
=
LoggingArea
.
createLoggingArea
(
"CreateJobVisibilityFP"
);
// This constructor should not be called
public
CreateJobVisibilityFP
()
{
// Do not add any code to this, always put it in initialiseNewObject
}
@Override
public
void
processForm
(
JSONServiceRequest
request
,
ObjectTransaction
objTran
,
JSONObject
result
,
MultiException
exceptions
,
Set
<
BaseBusinessClass
>
createdBBCs
,
Set
<
BaseBusinessClass
>
updatedBBCs
)
throws
BusinessException
,
JSONException
{
HiringTeam
selectedTeam
=
getSelectedTeam
();
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Checking Create Job Visibility. Selected Team: "
,
selectedTeam
,
" Company User: "
,
getCompanyUser
());
if
(
getCompanyUser
()
!=
null
&&
selectedTeam
!=
null
)
{
boolean
canCreateJob
=
selectedTeam
.
allowJobCreation
();
boolean
trialNotAllowed
=
selectedTeam
.
trialJobNotAllowed
();
result
.
append
(
"AllowCreateJob"
,
canCreateJob
?
"SUCCESS"
:
trialNotAllowed
?
"TRIAL"
:
"REACHED_CAP"
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Can Create Job : "
,
canCreateJob
,
" Trial Not Allowed: "
,
trialNotAllowed
);
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/ws/CreateJobVisibilityFP.xml
0 → 100644
View file @
a50e806c
<?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=
'CreateJobVisibilityFP'
package=
'performa.ws'
superclass=
'WebServicesFormProcessor'
>
<IMPORT
value=
"oneit.appservices.ws.services.*"
/>
<IMPORT
value=
"performa.orm.*"
/>
<TABLE
tablePrefix=
"object"
polymorphic=
"FALSE"
>
<SINGLEREFERENCE
name=
"SelectedTeam"
type=
"HiringTeam"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"CompanyUser"
type=
"CompanyUser"
mandatory=
"true"
/>
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
cmsWebApp/webroot/extensions/performa/GeneralConfig_performa.xml
View file @
a50e806c
...
...
@@ -108,6 +108,10 @@
<Overview>
This service will set all messages to read in given job application
</Overview>
</NODE>
<NODE
name=
"CreateJobVisibility"
factory=
"Participant"
class=
"oneit.appservices.ws.services.ORMFormProcessorService"
fpClass=
"performa.ws.CreateJobVisibilityFP"
privilege=
"*"
>
<Overview>
This service will return whether a job can be created for the selected hiring team
</Overview>
</NODE>
<NODE
name=
"JobApplications"
factory=
"Participant"
class=
"oneit.appservices.ws.services.ORMSearchJSONService"
boClass=
"performa.orm.JobApplication"
privilege=
"*"
>
<Overview>
This service returns all the Job Applications
</Overview>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment