Package org.cyclos.security.system
Class BaseCustomFieldPossibleValueCategoryServiceSecurity<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.CRUDServiceSecurity<DTO,E,D,DP>
-
- org.cyclos.security.ConfigurationEntityCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
- org.cyclos.security.system.BaseCustomFieldPossibleValueCategoryServiceSecurity<CF,C,PV>
-
- All Implemented Interfaces:
CRUDService<CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>,CRUDWithConfirmationPasswordService<CustomFieldPossibleValueCategoryDTO,CustomFieldPossibleValueCategoryData,CustomFieldVO>,Service,BaseCustomFieldPossibleValueCategoryService
- Direct Known Subclasses:
AdCustomFieldPossibleValueCategoryServiceSecurity,ContactCustomFieldPossibleValueCategoryServiceSecurity,ContactInfoFieldPossibleValueCategoryServiceSecurity,CustomOperationFieldPossibleValueCategoryServiceSecurity,CustomWizardFieldPossibleValueCategoryServiceSecurity,DocumentCustomFieldPossibleValueCategoryServiceSecurity,RecordCustomFieldPossibleValueCategoryServiceSecurity,TransactionCustomFieldPossibleValueCategoryServiceSecurity,UserCustomFieldPossibleValueCategoryServiceSecurity
public abstract class BaseCustomFieldPossibleValueCategoryServiceSecurity<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>> extends ConfigurationEntityCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C,CustomFieldPossibleValueCategoryData,CustomFieldVO> implements BaseCustomFieldPossibleValueCategoryService
Base implementation for security of custom field possible value category services
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.CRUDServiceSecurity
entityClass
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description BaseCustomFieldPossibleValueCategoryServiceSecurity(Class<C> possibleValueCategoryClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(CustomFieldVO customFieldVO)Checks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif notbooleandoHasManageAccess(C possibleValueCategory)Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given operationbooleandoHasViewAccess(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 securityprotected abstract BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV>getImplementation()Should be implemented in order to return the actual implementation of the serviceList<CustomFieldPossibleValueCategoryVO>list(CustomFieldVO customFieldVO)Returns all categories for the given custom fieldvoidmove(Long id, boolean up)Moves the given possible value in order, either up or downvoidsaveCategories(List<CustomFieldPossibleValueCategoryDTO> dtos)Saves the given categoriesvoidsaveOrder(List<Long> customFieldCategoryIds)Saves a custom field possible value category order.-
Methods inherited from class org.cyclos.security.ConfigurationEntityCRUDServiceSecurity
isAccessible
-
Methods inherited from class org.cyclos.security.CRUDServiceSecurity
canPerformOperation, canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, onBeforeSave, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPassword
-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
doHasManageAccess
public boolean doHasManageAccess(C possibleValueCategory)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to manage the given entity, for the given operation- Specified by:
doHasManageAccessin classCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
doHasViewAccess
public boolean doHasViewAccess(C possibleValueCategory)
Description copied from class:CRUDServiceSecurityShould be implemented in order to return whether the caller is allowed to view the given entity.- Specified by:
doHasViewAccessin classCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
list
public final List<CustomFieldPossibleValueCategoryVO> list(CustomFieldVO customFieldVO) throws FrameworkException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceReturns all categories for the given custom field- Specified by:
listin interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
FrameworkException
-
move
public void move(Long id, boolean up) throws EntityNotFoundException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceMoves the given possible value in order, either up or down- Specified by:
movein interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
EntityNotFoundException
-
saveCategories
public void saveCategories(List<CustomFieldPossibleValueCategoryDTO> dtos) throws FrameworkException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceSaves the given categories- Specified by:
saveCategoriesin interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
FrameworkException
-
saveOrder
public final void saveOrder(List<Long> customFieldCategoryIds) throws FrameworkException
Description copied from interface:BaseCustomFieldPossibleValueCategoryServiceSaves a custom field possible value category order.- Specified by:
saveOrderin interfaceBaseCustomFieldPossibleValueCategoryService- Throws:
FrameworkException
-
checkCreateNew
protected final void checkCreateNew(CustomFieldVO customFieldVO)
Description copied from class:CRUDServiceSecurityChecks whether creating new entities with the given context parameters is allowed, throwingPermissionDeniedExceptionif not- Specified by:
checkCreateNewin classCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
getCustomFieldServiceSecurity
protected abstract BaseCustomFieldServiceSecurity<?,CF,C,PV,?,?> getCustomFieldServiceSecurity()
Must be implemented in order to return the corresponding custom field service security
-
getImplementation
protected abstract BaseCustomFieldPossibleValueCategoryServiceLocal<CF,C,PV> getImplementation()
Description copied from class:CRUDServiceSecurityShould be implemented in order to return the actual implementation of the service- Specified by:
getImplementationin classCRUDServiceSecurity<CustomFieldPossibleValueCategoryDTO,C extends CustomFieldPossibleValueCategory<CF,C,PV>,CustomFieldPossibleValueCategoryData,CustomFieldVO>
-
-