@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,
User user,
BasicAd ad,
Record record) |
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 |
getRunAdData(CustomOperationVO customOperation,
BasicAdVO adVO)
Returns data to run a custom operation over an specific ad.
|
RunCustomOperationData |
getRunData(CustomOperationVO customOperation)
Returns data to run a custom operation with one of the following scopes:
CustomOperationScope.SYSTEM
CustomOperationScope.INTERNAL
CustomOperationScope.MENU |
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> |
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> |
getRunnableOperationsForUser(UserLocatorVO locator)
Lists the user custom operations scope =
CustomOperationScope.USER the logged user can run over the given
user (or self if null) |
RunCustomOperationData |
getRunRecordData(CustomOperationVO customOperation,
RecordVO recordVO)
Returns data to run a custom operation over an specific record.
|
RunCustomOperationData |
getRunUserData(CustomOperationVO customOperation,
UserLocatorVO userLocatorVO)
Returns data to run a custom operation over an specific user.
|
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, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, 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, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, mailContentBuilder, message, message, persist, 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 getRunAdData(CustomOperationVO customOperation, BasicAdVO adVO) throws FrameworkException
CustomOperationServiceCustomOperationScope.ADVERTISEMENTgetRunAdData in interface CustomOperationServiceFrameworkExceptionpublic RunCustomOperationData getRunData(CustomOperationVO customOperation) throws FrameworkException
CustomOperationServiceCustomOperationScope.SYSTEMCustomOperationScope.INTERNALCustomOperationScope.MENUgetRunData 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> 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> getRunnableOperationsForUser(UserLocatorVO locator) throws FrameworkException
CustomOperationServiceCustomOperationScope.USER the logged user can run over the given
user (or self if null)getRunnableOperationsForUser in interface CustomOperationServiceFrameworkExceptionpublic RunCustomOperationData getRunRecordData(CustomOperationVO customOperation, RecordVO recordVO) throws FrameworkException
CustomOperationServiceCustomOperationScope.RECORDgetRunRecordData in interface CustomOperationServiceFrameworkExceptionpublic RunCustomOperationData getRunUserData(CustomOperationVO customOperation, UserLocatorVO userLocatorVO) throws FrameworkException
CustomOperationServiceCustomOperationScope.USERgetRunUserData 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, User user, BasicAd ad, Record record)
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>