public abstract class BaseSimpleCustomFieldServiceSecurity<DTO extends CustomFieldDTO,CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>,D extends CustomFieldData<DTO>,DP> extends BaseCustomFieldServiceSecurity<DTO,CF,C,PV,D,DP>
| Modifier and Type | Field and Description |
|---|---|
protected Permission |
managePermission |
protected Permission |
viewPermission |
entityClass| Constructor and Description |
|---|
BaseSimpleCustomFieldServiceSecurity(java.lang.Class<CF> 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(CF entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(CF entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected boolean |
hasManagePermission()
Returns whether the caller has the manage permission granted
|
protected boolean |
hasViewPermission()
Returns whether the caller has the view permission granted
|
saveOrdercanPerformOperation, 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, saveprotected final Permission viewPermission
protected final Permission managePermission
public BaseSimpleCustomFieldServiceSecurity(java.lang.Class<CF> entityClass, Permission viewPermission, Permission managePermission)
public final boolean doHasManageAccess(CF entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<DTO extends CustomFieldDTO,CF extends CustomField<CF,C,PV>,D extends CustomFieldData<DTO>,DP>public final boolean doHasViewAccess(CF entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<DTO extends CustomFieldDTO,CF extends CustomField<CF,C,PV>,D extends CustomFieldData<DTO>,DP>protected final void checkCreateNew(DP params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<DTO extends CustomFieldDTO,CF extends CustomField<CF,C,PV>,D extends CustomFieldData<DTO>,DP>protected final void checkManagePermission()
throws PermissionDeniedException
PermissionDeniedExceptionprotected final void checkViewPermission()
throws PermissionDeniedException
PermissionDeniedExceptionprotected final boolean hasManagePermission()
protected final boolean hasViewPermission()