Package org.cyclos.security
Class ConfigurationEntityCRUDServiceSecurity<DTO extends EntityDTO,E extends ConfigurationEntity,D extends EntityData<DTO>,DP>
- 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<DTO,E,D,DP>
-
- All Implemented Interfaces:
CRUDService<DTO,D,DP>,CRUDWithConfirmationPasswordService<DTO,D,DP>,Service
- Direct Known Subclasses:
BaseCustomFieldPossibleValueCategoryServiceSecurity,BaseCustomFieldServiceSecurity,ConfigurationServiceSecurity,CustomOperationServiceSecurity,CustomScriptServiceSecurity,CustomWebServiceServiceSecurity,CustomWizardServiceSecurity,CustomWizardStepServiceSecurity,GroupServiceSecurity,LanguageServiceSecurity,NetworkServiceSecurity,ProductServiceSecurity,ServiceInterceptorServiceSecurity,SimpleConfigurationEntityCRUDServiceSecurity,SmsOperationConfigurationServiceSecurity,VoucherTemplateServiceSecurity,VoucherTypeServiceSecurity
public abstract class ConfigurationEntityCRUDServiceSecurity<DTO extends EntityDTO,E extends ConfigurationEntity,D extends EntityData<DTO>,DP> extends CRUDServiceSecurity<DTO,E,D,DP>
Configuration entities CRUD security layer, making final isAccessible and returning true for it.
-
-
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 ConfigurationEntityCRUDServiceSecurity(Class<E> entityClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAccessible(SessionData sessionData, E entity)Must be implemented in order to determine whether the given entity is accessible for the given session data.-
Methods inherited from class org.cyclos.security.CRUDServiceSecurity
canPerformOperation, canViewData, checkCreateNew, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, doHasManageAccess, doHasViewAccess, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, getImplementation, 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, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
isAccessible
public final boolean isAccessible(SessionData sessionData, E entity)
Description copied from class:CRUDServiceSecurityMust be implemented in order to determine whether the given entity is accessible for the given session data. This method shouldn't check the same condition asCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity isCRUDServiceSecurity.hasViewAccess(BaseEntity), this method should return false.- Specified by:
isAccessiblein classCRUDServiceSecurity<DTO extends EntityDTO,E extends ConfigurationEntity,D extends EntityData<DTO>,DP>
-
-