public interface AuthoringUIModeService
Modifier and Type | Method and Description |
---|---|
AuthoringUIMode |
getAuthoringUIMode(SlingHttpServletRequest slingRequest)
Get authoring UI mode
|
AuthoringUIMode |
getAuthoringUIModeFromCookie(SlingHttpServletRequest slingRequest)
Get authoring UI mode from the sent cookie
|
AuthoringUIMode |
getAuthoringUIModeFromOSGIConfig(SlingHttpServletRequest slingRequest)
Get authoring UI mode from OSGI config
|
AuthoringUIMode |
getAuthoringUIModeFromUserPreferences(SlingHttpServletRequest slingRequest)
Get authoring UI mode from the user preferences
|
java.lang.String |
getEditorURL(AuthoringUIMode authoringUIMode)
Get editor URL for provided authoring UI mode
|
void |
setUserAuthoringUIMode(ResourceResolver resolver,
java.lang.String userId,
AuthoringUIMode authoringUIMode,
boolean save)
Permanently set user's authoring UI mode
|
AuthoringUIMode getAuthoringUIMode(SlingHttpServletRequest slingRequest)
slingRequest
- The Sling HTTP requestAuthoringUIMode getAuthoringUIModeFromCookie(SlingHttpServletRequest slingRequest)
slingRequest
- SlingHttpServletRequest
AuthoringUIMode getAuthoringUIModeFromUserPreferences(SlingHttpServletRequest slingRequest)
slingRequest
- SlingHttpServletRequest
AuthoringUIMode getAuthoringUIModeFromOSGIConfig(SlingHttpServletRequest slingRequest)
slingRequest
- SlingHttpServletRequest
java.lang.String getEditorURL(AuthoringUIMode authoringUIMode)
authoringUIMode
- The authoring UI modevoid setUserAuthoringUIMode(ResourceResolver resolver, java.lang.String userId, AuthoringUIMode authoringUIMode, boolean save) throws RepositoryException
resolver
- The Sling resource resolveruserId
- The ID of the user which authoring UI mode should be changedauthoringUIMode
- The user's new authoring UI modesave
- Set to true
if the change should be saved immediately.RepositoryException
- This exception is thrown for repository access related issues.Copyright © 2010 - 2020 Adobe. All Rights Reserved