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 Summary
ConstructorsConstructorDescriptionBrandingRestResourcesV1(org.exoplatform.portal.branding.BrandingService brandingService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetAppBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsegetAppTextHeaderBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsegetAppTextTitleBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsegetBrandingCSS(javax.ws.rs.core.Request request, String lastModified) javax.ws.rs.core.ResponsegetBrandingFavicon(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetBrandingLogo(javax.ws.rs.core.Request request, String version) protected ResourceBundleThe labels of the emails in a language, in English when the platform does not have themjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetDrawerBackground(javax.ws.rs.core.Request request, String version) protected StringThe 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 onejavax.ws.rs.core.ResponsegetLoginBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsegetPageBackground(javax.ws.rs.core.Request request, String version) protected io.meeds.portal.mail.model.EmailPreviewReaderThe administrator who reads the preview, so that the greeting of the sample is the one they would getjavax.ws.rs.core.ResponsegetSideBarBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsegetTopBarBackground(javax.ws.rs.core.Request request, String version) javax.ws.rs.core.ResponsepreviewEmail(javax.ws.rs.core.UriInfo uriInfo, EmailPreviewRequest request) javax.ws.rs.core.ResponseupdateBrandingInformation(org.exoplatform.portal.branding.model.Branding branding)
-
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
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
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)
-