public interface CustomWebServiceServiceLocal extends CRUDServiceLocal<CustomWebService,CustomWebServiceDTO,CustomWebServiceData,java.lang.Void>, CustomWebServiceService
CustomWebServiceService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_CUSTOM_WEB_SERVICE
Script binding attribute: The
CustomWebService being executed |
static java.lang.String |
ATTR_PATH
Script binding attribute: Path resolved for the custom web service call
|
static java.lang.String |
ATTR_PATH_VARIABLES
Script binding attribute: A
ParameterStorage with the resolved path variables |
static java.lang.String |
ATTR_REQUEST
Script binding attribute: The
RequestInfo of the current call |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareContext(org.cyclos.impl.system.CustomWebServiceContext context,
SessionData runAs,
RequestInfo request)
Collects in the given context all information needed to run a custom web service.
|
ResponseInfo |
run(org.cyclos.impl.system.CustomWebServiceContext context)
Runs the custom web service associated to the request's uri.
|
find, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validatelistgetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String ATTR_CUSTOM_WEB_SERVICE
CustomWebService being executedstatic final java.lang.String ATTR_REQUEST
RequestInfo of the current callstatic final java.lang.String ATTR_PATH
static final java.lang.String ATTR_PATH_VARIABLES
ParameterStorage with the resolved path variablesvoid prepareContext(org.cyclos.impl.system.CustomWebServiceContext context,
SessionData runAs,
RequestInfo request)
runAs - The session data resolved from client. May or may not be used, according to the resolved
CustomWebService's RunAs field.ResponseInfo run(org.cyclos.impl.system.CustomWebServiceContext context)
ResponseException - When there is an error, indicates how the response is generated