@Security public class CustomOperationServiceSecurity extends CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void> implements CustomOperationService
CustomOperationentityClass| Constructor and Description |
|---|
CustomOperationServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManage() |
boolean |
canView() |
void |
checkCreateNew(java.lang.Void param)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected CustomOperation |
checkRun(CustomOperationVO customOperationVO,
SimpleEntity entity) |
protected boolean |
doHasManageAccess(CustomOperation entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(CustomOperation entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected CRUDServiceLocal<CustomOperation,CustomOperationDTO,CustomOperationData,java.lang.Void> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
RunCustomOperationData |
getRunData(RunCustomOperationDataParams params)
Returns data to run a custom operation.
|
java.util.List<CustomOperationVO> |
getRunnableOperationsForAd(BasicAdVO ad)
Lists the user custom operations scope =
CustomOperationScope.ADVERTISEMENT the logged user can run over
the given
advertisement |
java.util.List<CustomOperationVO> |
getRunnableOperationsForContact(ContactVO contact)
Lists the user custom operations scope =
CustomOperationScope.CONTACT the logged user can run over the
given contact |
java.util.List<CustomOperationVO> |
getRunnableOperationsForContactInfo(ContactInfoVO contactInfo)
Lists the user custom operations scope =
CustomOperationScope.CONTACT_INFO the logged user can run over
the given additional contact information |
java.util.List<CustomOperationVO> |
getRunnableOperationsForRecord(RecordVO record)
Lists the user custom operations scope =
CustomOperationScope.RECORD the logged user can run over the
given record |
java.util.List<CustomOperationVO> |
getRunnableOperationsForSystem()
Lists the custom operations with scope =
CustomOperationScope.SYSTEM the logged user can run |
java.util.List<CustomOperationVO> |
getRunnableOperationsForTransfer(TransferVO transfer)
Lists the custom operations with scope =
CustomOperationScope.TRANSFER the logged user can run over the
given transfer |
java.util.List<CustomOperationVO> |
getRunnableOperationsForUser(UserLocatorVO locator)
Lists the user custom operations scope =
CustomOperationScope.USER the logged user can run over the given
user (or self if null) |
boolean |
isAccessible(SessionData sessionData,
CustomOperation entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
java.util.List<CustomOperationResultVO> |
list()
Lists all available custom operations
|
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
|
void |
saveOrder(java.util.List<java.lang.Long> ids)
Saves the order according to the given operation ids
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic boolean canManage()
public boolean canView()
public void checkCreateNew(java.lang.Void param)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void>public boolean doHasViewAccess(CustomOperation entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void>public RunCustomOperationData getRunData(RunCustomOperationDataParams params) throws FrameworkException
CustomOperationServiceRunCustomOperationDataParams with the specific parmeters set (for example, a
RunRecordCustomOperationDataParams with the record set if the scope is
CustomOperationScope.RECORD)
The result will also be a subclass of RunCustomOperationData depending on the custom operation scope, for
example a RunRecordCustomOperationData.getRunData in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForAd(BasicAdVO ad) throws FrameworkException
CustomOperationServiceCustomOperationScope.ADVERTISEMENT the logged user can run over
the given
advertisementgetRunnableOperationsForAd in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForContact(ContactVO contact) throws FrameworkException
CustomOperationServiceCustomOperationScope.CONTACT the logged user can run over the
given contactgetRunnableOperationsForContact in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForContactInfo(ContactInfoVO contactInfo) throws FrameworkException
CustomOperationServiceCustomOperationScope.CONTACT_INFO the logged user can run over
the given additional contact informationgetRunnableOperationsForContactInfo in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForRecord(RecordVO record) throws FrameworkException
CustomOperationServiceCustomOperationScope.RECORD the logged user can run over the
given recordgetRunnableOperationsForRecord in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForSystem() throws FrameworkException
CustomOperationServiceCustomOperationScope.SYSTEM the logged user can rungetRunnableOperationsForSystem in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForTransfer(TransferVO transfer) throws FrameworkException
CustomOperationServiceCustomOperationScope.TRANSFER the logged user can run over the
given transfergetRunnableOperationsForTransfer in interface CustomOperationServiceFrameworkExceptionpublic java.util.List<CustomOperationVO> getRunnableOperationsForUser(UserLocatorVO locator) throws FrameworkException
CustomOperationServiceCustomOperationScope.USER the logged user can run over the given
user (or self if null)getRunnableOperationsForUser in interface CustomOperationServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, CustomOperation entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void>public java.util.List<CustomOperationResultVO> list() throws FrameworkException
CustomOperationServicelist in interface CustomOperationServiceFrameworkExceptionpublic RunCustomOperationResult run(RunCustomOperationDTO params) throws FrameworkException
CustomOperationServicerun in interface CustomOperationServiceFrameworkExceptionpublic java.lang.String runExternalRedirectCallback(RunExternalRedirectCallbackParams params) throws FrameworkException
CustomOperationServicerunExternalRedirectCallback in interface CustomOperationServiceFrameworkExceptionpublic void saveOrder(java.util.List<java.lang.Long> ids)
CustomOperationServicesaveOrder in interface CustomOperationServiceprotected CustomOperation checkRun(CustomOperationVO customOperationVO, SimpleEntity entity)
protected boolean doHasManageAccess(CustomOperation entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void>protected CRUDServiceLocal<CustomOperation,CustomOperationDTO,CustomOperationData,java.lang.Void> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<CustomOperationDTO,CustomOperation,CustomOperationData,java.lang.Void>