Class BrandingRestResourcesV1

java.lang.Object
org.exoplatform.portal.branding.BrandingRestResourcesV1
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class BrandingRestResourcesV1 extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Constructor Details

    • BrandingRestResourcesV1

      public BrandingRestResourcesV1(org.exoplatform.portal.branding.BrandingService brandingService)
  • Method Details

    • getBrandingInformation

      @RolesAllowed("users") public javax.ws.rs.core.Response getBrandingInformation()
    • getDefaultBrandingThemeStyle

      @RolesAllowed("administrators") public javax.ws.rs.core.Response getDefaultBrandingThemeStyle()
    • updateBrandingInformation

      @RolesAllowed("administrators") public javax.ws.rs.core.Response updateBrandingInformation(org.exoplatform.portal.branding.model.Branding branding)
    • previewEmail

      @RolesAllowed("administrators") public javax.ws.rs.core.Response previewEmail(@Context javax.ws.rs.core.UriInfo uriInfo, EmailPreviewRequest request)
    • getLanguage

      protected String getLanguage()
      The language of the preview, which is the default language of the platform as the emails are sent in it unless the person has chosen another one
    • getBundle

      protected ResourceBundle getBundle(String lang)
      The labels of the emails in a language, in English when the platform does not have them
    • getReader

      protected io.meeds.portal.mail.model.EmailPreviewReader getReader()
      The administrator who reads the preview, so that the greeting of the sample is the one they would get
      Returns:
      the reader, a value is null when it is not known
    • getBrandingLogo

      public javax.ws.rs.core.Response getBrandingLogo(@Context javax.ws.rs.core.Request request, String version)
    • getPageBackground

      public javax.ws.rs.core.Response getPageBackground(@Context javax.ws.rs.core.Request request, String version)
    • getTopBarBackground

      public javax.ws.rs.core.Response getTopBarBackground(@Context javax.ws.rs.core.Request request, String version)
    • getSideBarBackground

      public javax.ws.rs.core.Response getSideBarBackground(@Context javax.ws.rs.core.Request request, String version)
    • getDrawerBackground

      public javax.ws.rs.core.Response getDrawerBackground(@Context javax.ws.rs.core.Request request, String version)
    • getAppBackground

      public javax.ws.rs.core.Response getAppBackground(@Context javax.ws.rs.core.Request request, String version)
    • getAppTextTitleBackground

      public javax.ws.rs.core.Response getAppTextTitleBackground(@Context javax.ws.rs.core.Request request, String version)
    • getAppTextHeaderBackground

      public javax.ws.rs.core.Response getAppTextHeaderBackground(@Context javax.ws.rs.core.Request request, String version)
    • getBrandingFavicon

      public javax.ws.rs.core.Response getBrandingFavicon(@Context javax.ws.rs.core.Request request, String version)
    • getLoginBackground

      public javax.ws.rs.core.Response getLoginBackground(@Context javax.ws.rs.core.Request request, String version)
    • getBrandingCSS

      public javax.ws.rs.core.Response getBrandingCSS(@Context javax.ws.rs.core.Request request, String lastModified)