Package org.opencms.workplace.editors
Class CmsEditorSessionInfo
java.lang.Object
org.opencms.workplace.editors.CmsEditorSessionInfo
Stores editor session data.
- Since:
- 8.0.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the back link for closing the editor.Returns the id of the edited resource.Returns the session info key for the bean.protected static StringgetEditorSessionInfoKey(CmsResource editedResource) Returns the session info key for the bean.Returns the element locale currently edited.booleanReturns if in direct edit mode.voidsetBackLink(String backLink) Sets the back link for closing the editor.voidsetDirectEdit(boolean directEdit) Sets the flag indicating if in direct edit mode.voidsetEditedStructureId(CmsUUID editedStructureId) Sets the id of the edited resource.voidsetElementLocale(Locale elementLocale) Sets the element locale currently edited.
-
Field Details
-
PREFIX_EDITOR_SESSION_INFO
The editor session info key prefix.- See Also:
-
-
Constructor Details
-
CmsEditorSessionInfo
Constructor.- Parameters:
editedStructureId- the id of the edited resource
-
-
Method Details
-
getEditorSessionInfoKey
Returns the session info key for the bean.- Parameters:
editedResource- the edited resource- Returns:
- the session info key for the bean
-
getBackLink
Returns the back link for closing the editor.- Returns:
- the back link for closing the editor
-
getEditedStructureId
Returns the id of the edited resource.- Returns:
- the id of the edited resource
-
getEditorSessionInfoKey
Returns the session info key for the bean.- Returns:
- the session info key for the bean
-
getElementLocale
Returns the element locale currently edited.- Returns:
- the element locale
-
isDirectEdit
Returns if in direct edit mode.- Returns:
trueif in direct edit mode
-
setBackLink
Sets the back link for closing the editor.- Parameters:
backLink- the back link for closing the editor to set
-
setDirectEdit
Sets the flag indicating if in direct edit mode.- Parameters:
directEdit- the flag indicating if in direct edit mode
-
setEditedStructureId
Sets the id of the edited resource.- Parameters:
editedStructureId- the id of the edited resource to set
-
setElementLocale
Sets the element locale currently edited.- Parameters:
elementLocale- the element locale to set
-