@Security public class ThemeServiceSecurity extends CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams> implements ThemeService
entityClass| Constructor and Description |
|---|
ThemeServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyThemes(ConfigurationVO configurationVO,
java.lang.Long usersThemeId,
java.lang.Long guestsThemeId,
java.lang.Long mobileThemeId)
Applies the given themes to the given configuration: one for logged user, one for guests and another for mobile.
|
protected void |
checkCreateNew(ThemeDataParams params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
boolean |
doHasManageAccess(Theme theme)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Theme theme)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
SerializableInputStream |
export(java.lang.Long id)
Exports the given theme
|
java.lang.String |
getCSS(java.lang.Long id)
Returns the CSS corresponding to the theme with the given id
|
protected ThemeServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
ThemesListData |
getListData(ConfigurationVO configurationVO)
Returns data to list themes in a configuration
|
ThemeVO |
getVO(java.lang.Long id)
Loads the theme vo with the given id
|
java.lang.Long |
importNew(ConfigurationVO configurationVO,
java.lang.String importedFromFile,
SerializableInputStream in)
Import the theme definitions from file, creating it on the given configuration, returning the new theme id
|
boolean |
isAccessible(SessionData sessionData,
Theme entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
java.util.List<ThemeVO> |
list(ConfigurationVO configurationVO)
Returns a list with visible themes on the given configuration sorted by theme type (first main web themes)
|
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 void applyThemes(ConfigurationVO configurationVO, java.lang.Long usersThemeId, java.lang.Long guestsThemeId, java.lang.Long mobileThemeId) throws FrameworkException
ThemeServiceapplyThemes in interface ThemeServiceFrameworkExceptionpublic boolean doHasManageAccess(Theme theme)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams>public boolean doHasViewAccess(Theme theme)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams>public SerializableInputStream export(java.lang.Long id)
ThemeServiceexport in interface ThemeServicepublic java.lang.String getCSS(java.lang.Long id)
ThemeServicegetCSS in interface ThemeServicepublic ThemesListData getListData(ConfigurationVO configurationVO) throws FrameworkException
ThemeServicegetListData in interface ThemeServiceFrameworkExceptionpublic ThemeVO getVO(java.lang.Long id) throws EntityNotFoundException
ThemeServicegetVO in interface ThemeServiceEntityNotFoundExceptionpublic java.lang.Long importNew(ConfigurationVO configurationVO, java.lang.String importedFromFile, SerializableInputStream in) throws FileParsingException
ThemeServiceimportNew in interface ThemeServiceFileParsingExceptionpublic boolean isAccessible(SessionData sessionData, Theme entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams>public java.util.List<ThemeVO> list(ConfigurationVO configurationVO) throws FrameworkException
ThemeServicelist in interface ThemeServiceFrameworkExceptionprotected void checkCreateNew(ThemeDataParams params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams>protected ThemeServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<ThemeDTO,Theme,ThemeData,ThemeDataParams>