Example usage for Java com.liferay.portal.kernel.theme ThemeDisplay fields, constructors, methods, implement or subclass
The text is from its open source code.
void | clearLayoutFriendlyURL(Layout layout) |
String | getCDNBaseURL() Returns the content delivery network (CDN) base URL, or the current portal URL if the CDN base URL is null . |
String | getCDNHost() |
ColorScheme | getColorScheme() |
Company | getCompany() Returns the portal instance bean. |
long | getCompanyGroupId() |
long | getCompanyId() Returns the portal instance ID. |
long | getDefaultUserId() Returns the ID of the portal instance's default user. |
Device | getDevice() Returns the information about the detected device, such as the device's brand, browser, operating system, screen resolution, etc. |
long | getDoAsGroupId() |
String | getI18nPath() Returns the path element for the current internationalization language. |
String | getLanguageId() Returns the current language's code. |
Layout | getLayout() Returns the site's page. |
List | getLayouts() Returns the site's top-level pages. |
LayoutSet | getLayoutSet() Returns the current layout set, being either a public layout set or a private layout set. |
LayoutTypePortlet | getLayoutTypePortlet() |
Locale | getLocale() Returns the locale used for displaying content. |
String | getPathContext() |
String | getPathFriendlyURLPrivateGroup() Returns the URL for the site's private layout set. |
String | getPathFriendlyURLPrivateUser() Returns the URL for the user's private page set. |
String | getPathFriendlyURLPublic() Returns the URL for the site's public page set. |
String | getPathImage() Returns the URL for the portal instance's images. |
String | getPathMain() Returns the URL for the portal instance's main servlet. |
String | getPathThemeCss() Returns the URL for the theme's CSS directory. |
String | getPathThemeImages() Returns the URL for the theme's images. |
PermissionChecker | getPermissionChecker() Returns the permission checker, which is used to ensure users making resource requests have the necessary access permissions. |
long | getPlid() Returns the primary key of the page. |
String | getPortalURL() Returns the portal instance's base URL, which can be configured by setting the web.server.host property in a portal-ext.properties file. |
PortletDisplay | getPortletDisplay() |
String | getPpid() |
long | getRealUserId() Returns the ID of the logged in user. |
Group | getRefererGroup() |
long | getRefererGroupId() |
long | getRefererPlid() |
HttpServletRequest | getRequest() Returns the currently served HTTP servlet request. |
HttpServletResponse | getResponse() Returns the currently served HTTP servlet response. |
Group | getScopeGroup() Returns the scoped or sub-scoped active group (e.g. |
long | getScopeGroupId() Returns the ID of the scoped or sub-scoped active group (e.g. |
String | getScopeGroupName() Returns the name of the scoped or sub-scoped active group (e.g. |
String | getServerName() Returns the portal instance's server name, which can be configured by setting the web.server.host property in a portal-ext.properties file. |
int | getServerPort() Returns the server port, which can be configured by setting the web.server.http.port or web.server.https.port property in a portal-ext.properties file. |
Locale | getSiteDefaultLocale() |
Group | getSiteGroup() |
long | getSiteGroupId() |
long | getSiteGroupIdOrLiveGroupId() |
PortletPreferences | getStrictLayoutPortletSetup(Layout layout, String portletId) |
Theme | getTheme() |
String | getThemeId() |
String | getThemeSetting(String key) Returns the theme's configurable settings, which are declared in liferay-look-and-feel.xml and are configurable in the user interface. |
TimeZone | getTimeZone() |
String | getURLCurrent() |
String | getURLPortal() |
String | getURLSignIn() |
User | getUser() The user for which the current request is being handled. |
long | getUserId() Returns the ID of the user for which the current request is being handled. |
boolean | isI18n() |
boolean | isImpersonated() Returns true if the user is being impersonated by an administrative user. |
boolean | isIsolated() |
boolean | isSecure() |
boolean | isShowLayoutTemplatesIcon() |
boolean | isShowPageSettingsIcon() |
boolean | isShowStagingIcon() |
boolean | isSignedIn() |
boolean | isStateExclusive() |
boolean | isStateMaximized() |
boolean | isStatePopUp() |
boolean | isThemeCssFastLoad() |
boolean | isThemeJsBarebone() |
boolean | isThemeJsFastLoad() |
void | setCompany(Company company) |
void | setDevice(Device device) |
void | setI18nLanguageId(String i18nLanguageId) |
void | setLayout(Layout layout) |
void | setLayoutSet(LayoutSet layoutSet) |
void | setLocale(Locale locale) |
void | setLookAndFeel(Theme theme, ColorScheme colorScheme) |
void | setMDRRuleGroupInstance(MDRRuleGroupInstance mdrRuleGroupInstance) |
void | setPermissionChecker(PermissionChecker permissionChecker) |
void | setPlid(long plid) |
void | setRealUser(User realUser) |
void | setRequest(HttpServletRequest httpServletRequest) |
void | setResponse(HttpServletResponse httpServletResponse) |
void | setScopeGroupId(long scopeGroupId) |
void | setSecure(boolean secure) |
void | setServerName(String serverName) |
void | setServerPort(int serverPort) |
void | setSiteGroupId(long siteGroupId) |
void | setTimeZone(TimeZone timeZone) |
void | setUser(User user) |
void | setWidget(boolean widget) |
String | translate(String key) |
String | translate(String pattern, Object... arguments) |