Package com.jalios.jcms.workspace
Class HierarchicalWorkspacesManager
java.lang.Object
com.jalios.jcms.workspace.HierarchicalWorkspacesManager
- All Implemented Interfaces:
JPropertiesListener
Provides resources for Hierarchical Workspaces:
- LRU cache of last visited Workspaces for a member
- cache of plugin properties
- Since:
- jcms-7.0.0
- Author:
- dissert
-
Method Summary
Modifier and TypeMethodDescriptiongetLastUsedWorkspaces(Member member) Gives the set of last visited workspaces (in the BO).booleanisShowAllWorkingWorkspace(Set<Workspace> workingWorkspaceSet) voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.voidsaveWSForMember(Workspace ws, Member member) Add the given workspace in the LRU cache of last visited workspaces for the current Member
-
Method Details
-
getInstance
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked 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.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
saveWSForMember
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
Gives the set of last visited workspaces (in the BO).- Parameters:
member- the current member- Returns:
- the set of last visited workspaces
-
isShowAllWorkingWorkspace
-