@Security public class BulkActionServiceSecurity extends CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams> implements BulkActionService
BulkActionServiceentityClass| Constructor and Description |
|---|
BulkActionServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
int |
cancel(java.lang.Long bulkActionId)
Cancels a running bulk action, returning the number of users that were effectively canceled
|
boolean |
canPerformOperation(BulkAction bulkAction,
CRUDOperation operation)
Bulk actions cannot be edited and need special permissions to run (create)
|
protected void |
checkCreateNew(BulkActionDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected void |
customizeData(BulkActionData data)
Can be overridden in order to process the returned data object for the given entity
|
protected boolean |
doHasManageAccess(BulkAction bulkAction)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(BulkAction bulkAction)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
java.lang.String |
getErrorStackTrace(java.lang.Long bulkActionUserId)
Returns the error stack trace for the given bulk action user.
|
protected CRUDServiceLocal<BulkAction,BulkActionDTO,BulkActionData,BulkActionDataParams> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
BulkActionsSearchData |
getSearchData()
Returns data for searching bulk actions
|
BulkActionSearchUsersData |
getSearchUsersData(BulkActionDataParams params)
Returns data for searching users to run a bulk action over them
|
BulkActionStatusVO |
getStatus(java.lang.Long id)
Returns the current status of this bulk action counter of users for the bulk action with the given id
|
boolean |
isAccessible(SessionData sessionData,
BulkAction entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
Page<BulkActionVO> |
search(BulkActionQuery params)
Searches for already executed bulk actions
|
Page<BulkActionUserVO> |
searchUsers(BulkActionUserQuery query)
Searches for users affected by a bulk action
|
canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, 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, 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, message, message, persist, processBatch, refresh, remove, selectFrom, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic int cancel(java.lang.Long bulkActionId)
throws FrameworkException
BulkActionServicecancel in interface BulkActionServiceFrameworkExceptionpublic boolean canPerformOperation(BulkAction bulkAction, CRUDOperation operation)
canPerformOperation in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>public boolean doHasViewAccess(BulkAction bulkAction)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>public java.lang.String getErrorStackTrace(java.lang.Long bulkActionUserId)
throws FrameworkException
BulkActionServicegetErrorStackTrace in interface BulkActionServiceFrameworkExceptionpublic BulkActionsSearchData getSearchData() throws FrameworkException
BulkActionServicegetSearchData in interface BulkActionServiceFrameworkExceptionpublic BulkActionSearchUsersData getSearchUsersData(BulkActionDataParams params) throws FrameworkException
BulkActionServicegetSearchUsersData in interface BulkActionServiceFrameworkExceptionpublic BulkActionStatusVO getStatus(java.lang.Long id) throws FrameworkException
BulkActionServicegetStatus in interface BulkActionServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, BulkAction entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>public Page<BulkActionVO> search(BulkActionQuery params) throws FrameworkException
BulkActionServicesearch in interface BulkActionServiceFrameworkExceptionpublic Page<BulkActionUserVO> searchUsers(BulkActionUserQuery query) throws FrameworkException
BulkActionServicesearchUsers in interface BulkActionServiceFrameworkExceptionprotected void checkCreateNew(BulkActionDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>protected void customizeData(BulkActionData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>protected boolean doHasManageAccess(BulkAction bulkAction)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>protected CRUDServiceLocal<BulkAction,BulkActionDTO,BulkActionData,BulkActionDataParams> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<BulkActionDTO,BulkAction,BulkActionData,BulkActionDataParams>