public interface CustomOperationService extends CRUDService<CustomOperationDTO,CustomOperationData,java.lang.Void>
| Modifier and Type | Method and Description |
|---|---|
RunCustomOperationData |
getRunData(java.lang.Long operationId,
java.lang.Long userId)
Returns data to run a custom operation over an specific user.
|
java.util.List<CustomOperationVO> |
list()
Lists all available custom operations
|
FileInfo |
runForCSV(RunCustomOperationDTO params,
FileInfo inputFile)
Runs a result page custom operation, returning all results in a CSV file
|
FileInfo |
runForFile(RunCustomOperationDTO params,
FileInfo inputFile)
Runs a custom operation.
|
CustomOperationPageResult |
runForPage(RunCustomOperationDTO params,
FileInfo inputFile)
Runs a result page custom operation
|
java.lang.String |
runForString(RunCustomOperationDTO params,
FileInfo inputFile)
Runs a custom operation.
|
getData, getDataForNew, load, remove, removeAll, saveRunCustomOperationData getRunData(java.lang.Long operationId, java.lang.Long userId) throws FrameworkException
CustomOperationScope.SYSTEM, userId must be null.
Otherwise, for CustomOperationScope.USER, userId must be passed inFrameworkExceptionjava.util.List<CustomOperationVO> list() throws FrameworkException
FrameworkExceptionFileInfo runForCSV(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
ValidationException - If the operation has system scope but an user id was informed, or if the operation didn't expect a file but one was
uploadedIllegalActionException - When the custom operation result type is not CustomOperationResultType.RESULT_PAGEFrameworkExceptionFileInfo runForFile(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
ValidationException - If the operation has system scope but an user id was informed, or if the operation didn't expect a file but one was
uploadedIllegalActionException - When the custom operation result type is not CustomOperationResultType.FILE_DOWNLOADFrameworkExceptionCustomOperationPageResult runForPage(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
ValidationException - If the operation has system scope but an user id was informed, or if the operation didn't expect a file but one was
uploadedIllegalActionException - When the custom operation result type is not CustomOperationResultType.RESULT_PAGEFrameworkExceptionjava.lang.String runForString(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
ValidationException - If the operation has system scope but an user id was informed, or if the operation didn't expect a file but one was
uploadedIllegalActionException - When the custom operation result type is not a stringFrameworkException