Class InternalUiServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.contentmanagement.InternalUiServiceImpl
-
- All Implemented Interfaces:
InternalUiServiceLocal,InternalUiService,Service
@Service public class InternalUiServiceImpl extends BaseServiceImpl implements InternalUiServiceLocal
Implementation ofInternalUiService
-
-
Field Summary
-
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 InternalUiServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UiDatagetData(ThemeType type, boolean isThemeByComponents, Long deviceId, PinLocatorVO pinLocator, GetVersionedDataParams params)Return data containing the configuration for the current user or guest if there is no logged user.
In case of the content data (i.e header / footer / theme) it's returned only if it has changed regarding the given cache control (i.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkThemeResultVOtoThemeResultVO(Theme theme, boolean byComponents, VersionedVO currentVersion, String cyclosVersion)Converts the givenThemeonly if it has changed according to the givenVersionedVOand cyclosVersion.TranslatableUIElementResultVOtoTranslatableUIElementResultVO(BaseStaticContent content, com.querydsl.core.types.dsl.StringPath property, TranslatableVersionedVO currentVersion)Converts the givenBaseStaticContentonly if it has changed according to the givenTranslatableVersionedVO.-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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
-
getData
public UiData getData(ThemeType type, boolean isThemeByComponents, Long deviceId, PinLocatorVO pinLocator, GetVersionedDataParams params)
Description copied from interface:InternalUiServiceReturn data containing the configuration for the current user or guest if there is no logged user.
In case of the content data (i.e header / footer / theme) it's returned only if it has changed regarding the given cache control (i. eGetVersionedDataParams).- Specified by:
getDatain interfaceInternalUiServiceisThemeByComponents- flag used to indicate how the theme must be returned: by its CSS content (false) or by its components (true): base definitions, advanced definitions and custom style.deviceId- (Optional) the trusted device id to query if it's still exists.pinLocator- (Optional) the device pin locator to query if it's still exists.params- Required. The current version the client has for the content data. If we want to force get the data then invoke this method with an empty instance (not null).
-
toThemeResultVO
public ThemeResultVO toThemeResultVO(Theme theme, boolean byComponents, VersionedVO currentVersion, String cyclosVersion)
Description copied from interface:InternalUiServiceLocalConverts the givenThemeonly if it has changed according to the givenVersionedVOand cyclosVersion. Otherwise returns null.
ThebyComponentsflag indicates if the result will contains the theme components separately or the final CSS must be generated and returned as its content.- Specified by:
toThemeResultVOin interfaceInternalUiServiceLocal
-
toTranslatableUIElementResultVO
public TranslatableUIElementResultVO toTranslatableUIElementResultVO(BaseStaticContent content, com.querydsl.core.types.dsl.StringPath property, TranslatableVersionedVO currentVersion)
Description copied from interface:InternalUiServiceLocalConverts the givenBaseStaticContentonly if it has changed according to the givenTranslatableVersionedVO. Otherwise returns null.- Specified by:
toTranslatableUIElementResultVOin interfaceInternalUiServiceLocalproperty- required to allow translate the content.
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-