Class InternalUiServiceImpl

    • Constructor Detail

      • InternalUiServiceImpl

        public InternalUiServiceImpl()
    • Method Detail

      • getData

        public UiData getData​(ThemeType type,
                              boolean isThemeByComponents,
                              Long deviceId,
                              PinLocatorVO pinLocator,
                              GetVersionedDataParams params)
        Description copied from interface: InternalUiService
        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. e GetVersionedDataParams).
        Specified by:
        getData in interface InternalUiService
        isThemeByComponents - 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: InternalUiServiceLocal
        Converts the given Theme only if it has changed according to the given VersionedVO and cyclosVersion. Otherwise returns null.
        The byComponents flag indicates if the result will contains the theme components separately or the final CSS must be generated and returned as its content.
        Specified by:
        toThemeResultVO in interface InternalUiServiceLocal