public abstract class BaseCustomFieldPossibleValueCategoryServiceSecurity<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>> extends CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C,CustomFieldPossibleValueCategoryData,CustomFieldVO> implements BaseCustomFieldPossibleValueCategoryService
entityClass| Constructor and Description |
|---|
BaseCustomFieldPossibleValueCategoryServiceSecurity(java.lang.Class<C> possibleValueCategoryClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(CustomFieldVO customFieldVO)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
boolean |
doHasManageAccess(C possibleValueCategory)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(C possibleValueCategory)
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 BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV> |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
boolean |
isAccessible(SessionData sessionData,
C possibleValueCategory)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
java.util.List<CustomFieldPossibleValueCategoryVO> |
list(CustomFieldVO customFieldVO)
Returns all categories for the given custom field
|
void |
move(java.lang.Long id,
boolean up)
Moves the given possible value in order, either up or down
|
void |
saveCategories(java.util.List<CustomFieldPossibleValueCategoryDTO> dtos)
Saves the given categories
|
void |
saveOrder(java.util.List<java.lang.Long> customFieldCategoryIds)
Saves a custom field possible value category order.
|
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 BaseCustomFieldPossibleValueCategoryServiceSecurity(java.lang.Class<C> possibleValueCategoryClass)
public boolean doHasManageAccess(C possibleValueCategory)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>public boolean doHasViewAccess(C possibleValueCategory)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>public boolean isAccessible(SessionData sessionData, C possibleValueCategory)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>public final java.util.List<CustomFieldPossibleValueCategoryVO> list(CustomFieldVO customFieldVO) throws FrameworkException
BaseCustomFieldPossibleValueCategoryServicelist in interface BaseCustomFieldPossibleValueCategoryServiceFrameworkExceptionpublic void move(java.lang.Long id,
boolean up)
throws EntityNotFoundException
BaseCustomFieldPossibleValueCategoryServicemove in interface BaseCustomFieldPossibleValueCategoryServiceEntityNotFoundExceptionpublic void saveCategories(java.util.List<CustomFieldPossibleValueCategoryDTO> dtos) throws FrameworkException
BaseCustomFieldPossibleValueCategoryServicesaveCategories in interface BaseCustomFieldPossibleValueCategoryServiceFrameworkExceptionpublic final void saveOrder(java.util.List<java.lang.Long> customFieldCategoryIds)
throws FrameworkException
BaseCustomFieldPossibleValueCategoryServicesaveOrder in interface BaseCustomFieldPossibleValueCategoryServiceFrameworkExceptionprotected final void checkCreateNew(CustomFieldVO customFieldVO)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>protected abstract BaseCustomFieldServiceSecurity<?,CF,C,PV,?,?> getCustomFieldServiceSecurity()
protected abstract BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV> getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>