Package org.cyclos.security.system
Class ConfigurationImageServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.BaseImageServiceSecurity<ConfigurationImage,NewConfigurationImageParams>
-
- org.cyclos.security.system.ConfigurationImageServiceSecurity
-
- All Implemented Interfaces:
Service,BaseImageService<NewConfigurationImageParams>,ConfigurationImageService
@Security public class ConfigurationImageServiceSecurity extends BaseImageServiceSecurity<ConfigurationImage,NewConfigurationImageParams> implements ConfigurationImageService
Security forConfigurationImageService
-
-
Field Summary
-
Fields inherited from class org.cyclos.security.system.BaseImageServiceSecurity
imageType
-
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 ConfigurationImageServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCreateNew(NewConfigurationImageParams param)ConfigurationImageVOgetImageVO(ConfigurationVO configuration, @NotNull ConfigurationImageType type)Returns data about a configuration image, for a given type.ConfigurationImageServiceLocalgetImplementation()ConfigurationImagesListDatagetListData(ConfigurationVO configurationVO)Returns data to list images in a given configurationbooleanhasManageAccess(ConfigurationImage image)List<ConfigurationImageVO>list(ConfigurationVO configurationVO)Lists a configuration's images, optionally including inherited images from parent configurationsConfigurationImageVOload(@NotNull Long id)Returns metadata of a configuration image by idvoidremoveByConfigurationAndType(ConfigurationVO configurationVO, ConfigurationImageType type)Removes a configuration image, making it inherit the default (either from a parent configuration or the hardcoded default)-
Methods inherited from class org.cyclos.security.system.BaseImageServiceSecurity
checkManageAccess, find, getImageNature, remove, removeAll, resolveEntityCheck, save, saveName
-
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
-
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.system.BaseImageService
remove, removeAll, save, saveName
-
-
-
-
Method Detail
-
getImageVO
public ConfigurationImageVO getImageVO(ConfigurationVO configuration, @NotNull @NotNull ConfigurationImageType type)
Description copied from interface:ConfigurationImageServiceReturns data about a configuration image, for a given type. If the configuration is null, assumes the current configuration.- Specified by:
getImageVOin interfaceConfigurationImageService
-
getImplementation
public ConfigurationImageServiceLocal getImplementation()
- Specified by:
getImplementationin classBaseImageServiceSecurity<ConfigurationImage,NewConfigurationImageParams>
-
getListData
public ConfigurationImagesListData getListData(ConfigurationVO configurationVO) throws FrameworkException
Description copied from interface:ConfigurationImageServiceReturns data to list images in a given configuration- Specified by:
getListDatain interfaceConfigurationImageService- Throws:
FrameworkException
-
hasManageAccess
public boolean hasManageAccess(ConfigurationImage image)
- Specified by:
hasManageAccessin classBaseImageServiceSecurity<ConfigurationImage,NewConfigurationImageParams>
-
list
public List<ConfigurationImageVO> list(ConfigurationVO configurationVO) throws FrameworkException
Description copied from interface:ConfigurationImageServiceLists a configuration's images, optionally including inherited images from parent configurations- Specified by:
listin interfaceConfigurationImageService- Throws:
FrameworkException
-
load
public ConfigurationImageVO load(@NotNull @NotNull Long id) throws FrameworkException
Description copied from interface:ConfigurationImageServiceReturns metadata of a configuration image by id- Specified by:
loadin interfaceConfigurationImageService- Throws:
FrameworkException
-
removeByConfigurationAndType
public void removeByConfigurationAndType(ConfigurationVO configurationVO, ConfigurationImageType type) throws FrameworkException
Description copied from interface:ConfigurationImageServiceRemoves a configuration image, making it inherit the default (either from a parent configuration or the hardcoded default)- Specified by:
removeByConfigurationAndTypein interfaceConfigurationImageService- Throws:
FrameworkException
-
checkCreateNew
protected void checkCreateNew(NewConfigurationImageParams param)
- Specified by:
checkCreateNewin classBaseImageServiceSecurity<ConfigurationImage,NewConfigurationImageParams>
-
-