Package com.jalios.jcms.workspace
Class HierarchicalWorkspacesManager
- java.lang.Object
-
- com.jalios.jcms.workspace.HierarchicalWorkspacesManager
-
- All Implemented Interfaces:
JPropertiesListener
public class HierarchicalWorkspacesManager extends java.lang.Object implements JPropertiesListener
Provides resources for Hierarchical Workspaces: - LRU cache of last visited Workspaces for a member - cache of plugin properties- Since:
- jcms-7.0.0
- Version:
- $Revision: 68226 $
- Author:
- dissert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HierarchicalWorkspacesManager
getInstance()
java.util.Set<Workspace>
getLastUsedWorkspaces(Member member)
Gives the set of last visited workspaces (in the BO).boolean
isShowAllWorkingWorkspace(java.util.Set<Workspace> workingWorkspaceSet)
void
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.void
saveWSForMember(Workspace ws, Member member)
Add the given workspace in the LRU cache of last visited workspaces for the current Member
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static HierarchicalWorkspacesManager getInstance()
-
propertiesChange
public void propertiesChange(JProperties properties)
Description copied from interface:JPropertiesListener
Invoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getProperties
orchannel.getProperty
.- Specified by:
propertiesChange
in interfaceJPropertiesListener
- Parameters:
properties
- the properties which have been submitted to change
-
saveWSForMember
public void saveWSForMember(Workspace ws, Member member)
Add the given workspace in the LRU cache of last visited workspaces for the current Member- Parameters:
ws
- the newly visited workspacemember
- the current loggedMember
-
getLastUsedWorkspaces
public java.util.Set<Workspace> getLastUsedWorkspaces(Member member)
Gives the set of last visited workspaces (in the BO).- Parameters:
member
- the current member- Returns:
- the set of last visited workspaces
-
isShowAllWorkingWorkspace
public boolean isShowAllWorkingWorkspace(java.util.Set<Workspace> workingWorkspaceSet)
-
-