@Security public class ConfigurationServiceSecurity extends CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO> implements ConfigurationService
ConfigurationServiceentityClass| Constructor and Description |
|---|
ConfigurationServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(ConfigurationVO parentVO)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
void |
checkManageContent(Configuration configuration) |
boolean |
doHasManageAccess(Configuration configuration)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Configuration configuration)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
ActiveConfigurationData |
getActiveConfiguration(ConfigurationVO configurationVO)
Returns the active configuration for the configuration with the given id
|
ConfigurationVO |
getDefault()
Returns the default configuration for the current network (or the global default configuration)
|
protected ConfigurationServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
ConfigurationSearchData |
getSearchData()
Gets data used on the search page
|
boolean |
hasManageContent(Configuration configuration) |
boolean |
isAccessible(SessionData sessionData,
Configuration entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
boolean |
isVisibleForManageContent(Configuration configuration) |
java.util.List<ConfigurationDetailedVO> |
list()
Returns all visible configurations
|
protected void |
onBeforeSave(ConfigurationDTO dto,
Configuration entity) |
Page<ConfigurationDetailedVO> |
search(ConfigurationQuery params)
Search configurations according to the specified query parameters
|
canPerformOperation, canViewData, checkManageAccess, checkOperation, checkSave, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, 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, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic void checkManageContent(Configuration configuration)
public boolean doHasManageAccess(Configuration configuration)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>public boolean doHasViewAccess(Configuration configuration)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>public ActiveConfigurationData getActiveConfiguration(ConfigurationVO configurationVO)
ConfigurationServicegetActiveConfiguration in interface ConfigurationServicepublic ConfigurationVO getDefault() throws FrameworkException
ConfigurationServicegetDefault in interface ConfigurationServiceFrameworkExceptionpublic ConfigurationSearchData getSearchData()
ConfigurationServicegetSearchData in interface ConfigurationServicepublic boolean hasManageContent(Configuration configuration)
public boolean isAccessible(SessionData sessionData, Configuration entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>public boolean isVisibleForManageContent(Configuration configuration)
Permission.SPECIFIC_CONFIGURATION_MANAGE_CONTENT permission).public java.util.List<ConfigurationDetailedVO> list() throws FrameworkException
ConfigurationServicelist in interface ConfigurationServiceFrameworkExceptionpublic Page<ConfigurationDetailedVO> search(ConfigurationQuery params) throws FrameworkException
ConfigurationServicesearch in interface ConfigurationServiceFrameworkExceptionprotected void checkCreateNew(ConfigurationVO parentVO)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>protected ConfigurationServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>protected void onBeforeSave(ConfigurationDTO dto, Configuration entity)
onBeforeSave in class CRUDServiceSecurity<ConfigurationDTO,Configuration,ConfigurationData,ConfigurationVO>