public abstract class SimpleCRUDServiceSecurity<DTO extends EntityDTO,E extends BaseEntity,D extends EntityData<DTO>,DP> extends CRUDServiceSecurity<DTO,E,D,DP>
| Modifier and Type | Field and Description |
|---|---|
protected Permission |
managePermission |
protected Permission |
viewPermission |
entityClass| Constructor and Description |
|---|
SimpleCRUDServiceSecurity(java.lang.Class<E> entityClass,
Permission viewPermission,
Permission managePermission) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(DP params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected void |
checkManagePermission()
Checks whether the caller has the manage permission granted
|
protected void |
checkViewPermission()
Checks whether the caller has the view permission granted
|
boolean |
doHasManageAccess(E entity)
Returns whether the caller has the the manage permission, if any
|
boolean |
doHasViewAccess(E entity)
Returns whether the caller has the the view permission, if any
|
protected boolean |
hasManagePermission()
Returns whether the caller has the manage permission granted
|
protected boolean |
hasViewPermission()
Returns whether the caller has the view permission granted
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, getImplementation, hasManageAccess, hasViewAccess, isAccessible, 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, subQuery, updateprotected final Permission viewPermission
protected final Permission managePermission
public SimpleCRUDServiceSecurity(java.lang.Class<E> entityClass, Permission viewPermission, Permission managePermission)
public final boolean doHasManageAccess(E entity)
doHasManageAccess in class CRUDServiceSecurity<DTO extends EntityDTO,E extends BaseEntity,D extends EntityData<DTO>,DP>public final boolean doHasViewAccess(E entity)
doHasViewAccess in class CRUDServiceSecurity<DTO extends EntityDTO,E extends BaseEntity,D extends EntityData<DTO>,DP>protected final void checkCreateNew(DP params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<DTO extends EntityDTO,E extends BaseEntity,D extends EntityData<DTO>,DP>protected final void checkManagePermission()
throws PermissionDeniedException
PermissionDeniedExceptionprotected final void checkViewPermission()
throws PermissionDeniedException
PermissionDeniedExceptionprotected final boolean hasManagePermission()
protected final boolean hasViewPermission()