Package org.opencms.ui.apps.sessions
Class CmsSessionsApp
java.lang.Object
org.opencms.ui.apps.A_CmsWorkplaceApp
org.opencms.ui.apps.sessions.CmsSessionsApp
- All Implemented Interfaces:
I_CmsWorkplaceApp
Class for the broadcast app.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry
-
Field Summary
Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedHashMap<String,
String> getBreadCrumbForState
(String state) Returns the current bread crumb entries in an ordered map.protected com.vaadin.ui.Component
getComponentForState
(String state) Returns the app component for the given state.Get a map with infos for info button.protected List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries
(String state) Returns the sub navigation entries.protected static List<CmsResourceInfo>
getUserInfos
(Set<String> ids) Get resource info boxes for given users.protected static String
getUserNames
(Set<String> ids, String andLocalized) Get user names as String from set of sessions.protected void
Opens dialog for login message settings.protected static void
showSendBroadcastDialog
(Set<String> ids, String caption, CmsSessionsTable table) Shows dialog to send broadcast.Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, initUI, onStateChange, openSubView, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
Constructor Details
-
CmsSessionsApp
public CmsSessionsApp()
-
-
Method Details
-
getUserInfos
Get resource info boxes for given users.- Parameters:
ids
- of user to be shown in boxed- Returns:
- list of resource infos
-
getUserNames
Get user names as String from set of sessions.- Parameters:
ids
- to gain usernames fromandLocalized
- String- Returns:
- user names as string
-
showSendBroadcastDialog
protected static void showSendBroadcastDialog(Set<String> ids, String caption, CmsSessionsTable table) Shows dialog to send broadcast.- Parameters:
ids
- of sessions to send broadcast tocaption
- of windowtable
- instance of table to be refreshed after sending broadcast
-
getBreadCrumbForState
Description copied from class:A_CmsWorkplaceApp
Returns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the current state- Returns:
- bread crumb entry name by state, in case the state is empty, the entry will be disabled
- See Also:
-
getComponentForState
Description copied from class:A_CmsWorkplaceApp
Returns the app component for the given state.- Specified by:
getComponentForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the state to render- Returns:
- the app component
- See Also:
-
getInfoMap
Get a map with infos for info button.- Returns:
- map
-
openEditLoginMessageDialog
Opens dialog for login message settings.
-