public abstract class BaseCustomFieldPossibleValueServiceSecurity<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>> extends CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams> implements BaseCustomFieldPossibleValueService
entityClass| Constructor and Description |
|---|
BaseCustomFieldPossibleValueServiceSecurity(java.lang.Class<PV> possibleValueClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(CustomFieldPossibleValueDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
boolean |
doHasManageAccess(PV possibleValue)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(PV possibleValue)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected abstract BaseCustomFieldServiceSecurity<?,CF,C,PV,?,?> |
getCustomFieldServiceSecurity()
Must be implemented in order to return the corresponding custom field service security
|
protected abstract BaseCustomFieldPossibleValueServiceLocal<CF,C,PV> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
void |
insert(CustomFieldVO customFieldVO,
CustomFieldPossibleValueCategoryVO customFieldPossibleValueCategoryVO,
java.util.List<java.lang.String> possibleValues)
Inserts a list of custom field possible values, optionally in a category
|
boolean |
isAccessible(SessionData sessionData,
PV possibleValue)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
void |
move(java.lang.Long id,
boolean up)
Moves the given possible value in order, either up or down
|
Page<CustomFieldPossibleValueVO> |
search(CustomFieldPossibleValueQuery query)
Searches for possible values
|
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, 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, savepublic BaseCustomFieldPossibleValueServiceSecurity(java.lang.Class<PV> possibleValueClass)
public boolean doHasManageAccess(PV possibleValue)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV extends CustomFieldPossibleValue<CF,C,PV>,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams>public boolean doHasViewAccess(PV possibleValue)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV extends CustomFieldPossibleValue<CF,C,PV>,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams>public final void insert(CustomFieldVO customFieldVO, CustomFieldPossibleValueCategoryVO customFieldPossibleValueCategoryVO, java.util.List<java.lang.String> possibleValues) throws FrameworkException
BaseCustomFieldPossibleValueServiceinsert in interface BaseCustomFieldPossibleValueServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, PV possibleValue)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV extends CustomFieldPossibleValue<CF,C,PV>,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams>public void move(java.lang.Long id,
boolean up)
throws EntityNotFoundException
BaseCustomFieldPossibleValueServicemove in interface BaseCustomFieldPossibleValueServiceEntityNotFoundExceptionpublic final Page<CustomFieldPossibleValueVO> search(CustomFieldPossibleValueQuery query) throws FrameworkException
BaseCustomFieldPossibleValueServicesearch in interface BaseCustomFieldPossibleValueServiceFrameworkExceptionprotected void checkCreateNew(CustomFieldPossibleValueDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV extends CustomFieldPossibleValue<CF,C,PV>,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams>protected abstract BaseCustomFieldServiceSecurity<?,CF,C,PV,?,?> getCustomFieldServiceSecurity()
protected abstract BaseCustomFieldPossibleValueServiceLocal<CF,C,PV> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<CustomFieldPossibleValueDTO,PV extends CustomFieldPossibleValue<CF,C,PV>,CustomFieldPossibleValueData,CustomFieldPossibleValueDataParams>