public interface CustomOperationService extends CRUDService<CustomOperationDTO,CustomOperationData,java.lang.Void>
| Modifier and Type | Method and Description |
|---|---|
RunCustomOperationData |
getRunData(CustomOperationVO customOperation,
UserLocatorVO user,
BasicAdVO ad)
Returns data to run a custom operation over an specific user or specific ad.
|
java.util.List<CustomOperationVO> |
list()
Lists all available custom operations
|
java.util.List<CustomOperationVO> |
listSystemToRun()
Lists the custom operations with scope =
CustomOperationScope.SYSTEM the logged user can run |
java.util.List<CustomOperationVO> |
listUserToRun(UserLocatorVO locator)
Lists the user custom operations scope =
CustomOperationScope.USER the logged user can run over the given
user (or self if null) |
RunCustomOperationResult |
run(RunCustomOperationDTO params)
Runs a custom operation, returning the result with all type information
|
java.lang.String |
runExternalRedirectCallback(RunExternalRedirectCallbackParams params)
Runs the callback for a custom operation of type external redirect
|
CustomOperationContentResult |
runForContent(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
FileInfo |
runForCSV(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
FileInfo |
runForFile(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
CustomOperationPageResult |
runForPage(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
FileInfo |
runForPDF(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
java.lang.String |
runForString(RunCustomOperationDTO params,
FileInfo inputFile)
Deprecated.
Will be removed in future versions. Use
run(RunCustomOperationDTO) instead |
getData, getDataForNew, load, remove, removeAll, saveRunCustomOperationData getRunData(CustomOperationVO customOperation, UserLocatorVO user, BasicAdVO ad) throws FrameworkException
CustomOperationScope.SYSTEM, user and ad must be null.
if CustomOperationScope.USER, user must be passed in
if CustomOperationScope.ADVERTISEMENT, ad must be passed inFrameworkExceptionjava.util.List<CustomOperationVO> list() throws FrameworkException
FrameworkExceptionjava.util.List<CustomOperationVO> listSystemToRun() throws FrameworkException
CustomOperationScope.SYSTEM the logged user can runFrameworkExceptionjava.util.List<CustomOperationVO> listUserToRun(UserLocatorVO locator) throws FrameworkException
CustomOperationScope.USER the logged user can run over the given
user (or self if null)FrameworkExceptionRunCustomOperationResult run(RunCustomOperationDTO params) throws FrameworkException
FrameworkExceptionjava.lang.String runExternalRedirectCallback(RunExternalRedirectCallbackParams params) throws FrameworkException
FrameworkException@Deprecated CustomOperationContentResult runForContent(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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_PAGEFrameworkException@Deprecated FileInfo runForCSV(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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_PAGEFrameworkException@Deprecated FileInfo runForFile(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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_DOWNLOADFrameworkException@Deprecated CustomOperationPageResult runForPage(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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_PAGEFrameworkException@Deprecated FileInfo runForPDF(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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_PAGEFrameworkException@Deprecated java.lang.String runForString(RunCustomOperationDTO params, FileInfo inputFile) throws FrameworkException
run(RunCustomOperationDTO) insteadValidationException - 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