public interface CustomOperationServiceLocal extends org.cyclos.impl.CRUDServiceLocal<CustomOperation,CustomOperationDTO,CustomOperationData,java.lang.Void>, CustomOperationService
CustomOperationService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_CURRENT_PAGE
Script attribute: the current page, used when the result type is page results
|
static java.lang.String |
ATTR_CUSTOM_OPERATION
Script attribute: the
CustomOperation |
static java.lang.String |
ATTR_FORM_PARAMETERS
Script attribute: the form parameters (custom field values)
|
static java.lang.String |
ATTR_INPUT_FILE
Script attribute: the
SerializableInputStream for the uploaded file |
static java.lang.String |
ATTR_PAGE_CONTEXT
Script attribute: the
CustomOperationPageContext |
static java.lang.String |
ATTR_PAGE_SIZE
Script attribute: the page size, used when the result type is page results
|
static java.lang.String |
ATTR_PARAMETER_STORAGE
Script attribute: the
ParameterStorage used on operations of type external redirect, both on first
execution and on the callback |
static java.lang.String |
ATTR_REQUEST
Script attribute: the
RequestInfo used on external redirect callback |
static java.lang.String |
ATTR_RETURN_URL
Script attribute: the URL for the external service to call Cyclos and complete the operation
|
static java.lang.String |
ATTR_USER
Script attribute: the
User |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CustomOperation> |
listAllowedToRun()
Lists all custom operations the logged user is allowed to run
|
java.util.List<CustomOperation> |
listByScope(CustomOperationScope scope)
Lists the custom operations for a given scope
|
java.util.List<CustomOperation> |
listOperationsRedirectingTo(CustomOperation internal)
Lists the custom operations that redirect to the given internal operation
|
void |
prepareContext(org.cyclos.impl.system.ExternalRedirectCallbackContext context,
long id,
RequestInfo request)
Collects in the given context all information needed to run an external redirect callback.
|
java.lang.String |
runExternalRedirectCallback(org.cyclos.impl.system.ExternalRedirectCallbackContext context)
Runs the callback for a custom operation of type external redirect
|
find, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetRunData, list, runForContent, runForCSV, runForFile, runForPage, runForPDF, runForStringgetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String ATTR_CUSTOM_OPERATION
CustomOperationstatic final java.lang.String ATTR_USER
Userstatic final java.lang.String ATTR_INPUT_FILE
SerializableInputStream for the uploaded filestatic final java.lang.String ATTR_FORM_PARAMETERS
static final java.lang.String ATTR_REQUEST
RequestInfo used on external redirect callbackstatic final java.lang.String ATTR_PARAMETER_STORAGE
ParameterStorage used on operations of type external redirect, both on first
execution and on the callbackstatic final java.lang.String ATTR_RETURN_URL
static final java.lang.String ATTR_CURRENT_PAGE
static final java.lang.String ATTR_PAGE_SIZE
static final java.lang.String ATTR_PAGE_CONTEXT
CustomOperationPageContextjava.util.List<CustomOperation> listAllowedToRun()
java.util.List<CustomOperation> listByScope(CustomOperationScope scope) throws FrameworkException
FrameworkExceptionjava.util.List<CustomOperation> listOperationsRedirectingTo(CustomOperation internal)
void prepareContext(org.cyclos.impl.system.ExternalRedirectCallbackContext context,
long id,
RequestInfo request)
throws FrameworkException
id - the ExternalRedirectExecution's id, the execution created when the custom operation was
executed (before redirect to the external url)FrameworkExceptionjava.lang.String runExternalRedirectCallback(org.cyclos.impl.system.ExternalRedirectCallbackContext context)
throws FrameworkException
FrameworkException