Commit b015bdda by nilu

select hiring team service to implement header in angular

parent a50e806c
package performa.ws;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
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.Job;
public class SelectHiringTeamFP extends BaseSelectHiringTeamFP
{
private static final long serialVersionUID = 0L;
public static LoggingArea LOG = LoggingArea.createLoggingArea("SelectHiringTeamFP");
// This constructor should not be called
public SelectHiringTeamFP ()
{
// 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
{
HttpServletRequest httpRequest = request.getRequest();
LogMgr.log(Job.LOG, LogLevel.PROCESSING1, "Setting hiring team to the session ", getHiringTeam());
httpRequest.getSession().setAttribute("SelectedHiringTeam", getHiringTeam());
}
}
<?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='SelectHiringTeamFP' package='performa.ws' superclass='WebServicesFormProcessor'>
       <IMPORT value="oneit.appservices.ws.services.*"/>
<IMPORT value="performa.orm.*"/>
<TABLE tablePrefix="object" polymorphic="FALSE">
<SINGLEREFERENCE name="HiringTeam" type="HiringTeam" mandatory="true" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
...@@ -112,6 +112,10 @@ ...@@ -112,6 +112,10 @@
<Overview>This service will return whether a job can be created for the selected hiring team</Overview> <Overview>This service will return whether a job can be created for the selected hiring team</Overview>
</NODE> </NODE>
<NODE name="SelectHiringTeam" factory="Participant" class="oneit.appservices.ws.services.ORMFormProcessorService" fpClass="performa.ws.SelectHiringTeamFP" privilege="*">
<Overview>This service will set the selected hiring team to the session</Overview>
</NODE>
<NODE name="JobApplications" factory="Participant" class="oneit.appservices.ws.services.ORMSearchJSONService" boClass="performa.orm.JobApplication" privilege="*"> <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> <Overview>This service returns all the Job Applications</Overview>
......
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