Commit 182efaa9 by Chamath

Added SearchJobApplication service.

parent ff0b1874
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
{
......@@ -27,5 +11,3 @@ public class Message extends BaseMessage
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
package performa.search;
import oneit.objstore.BaseBusinessClass;
import performa.orm.JobApplication;
public class SearchJobApplication extends BaseSearchJobApplication
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public SearchJobApplication ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
@Override
public BaseBusinessClass[] doSearch()
{
return JobApplication.SearchByAll().search(getTransaction());
}
}
\ No newline at end of file
<?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="SearchJobApplication" package="performa.search" superclass="SearchExecutor" >
<IMPORT value="oneit.servlets.orm.*" />
<IMPORT value="performa.orm.*"/>
<IMPORT value="performa.orm.types.*"/>
<TABLE tablePrefix="object" polymorphic="FALSE" >
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
......@@ -95,6 +95,12 @@
<Overview>This service will set all messages to read in given job application</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>
<QueryType factory="String" name="All" value="performa.search.SearchJobApplication"/>
</NODE>
<!-- Enum services -->
<NODE name="ResponseAction" factory="Participant" class="oneit.appservices.ws.services.EnumJSONService" enumClass="performa.orm.types.ResponseAction" privilege="*"/>
<NODE name="StageType" factory="Participant" class="oneit.appservices.ws.services.EnumJSONService" enumClass="performa.orm.types.StageType" privilege="*"/>
......
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