Package org.opencms.workplace.editors
Class CmsEditorSessionInfo
java.lang.Object
org.opencms.workplace.editors.CmsEditorSessionInfo
Stores editor session data.
- Since:
- 8.0.
-
Field Summary
-
Constructor Summary
-
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 String
getEditorSessionInfoKey
(CmsResource editedResource) Returns the session info key for the bean.Returns the element locale currently edited.boolean
Returns if in direct edit mode.void
setBackLink
(String backLink) Sets the back link for closing the editor.void
setDirectEdit
(boolean directEdit) Sets the flag indicating if in direct edit mode.void
setEditedStructureId
(CmsUUID editedStructureId) Sets the id of the edited resource.void
setElementLocale
(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:
true
if 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
-