Class HierarchicalWorkspacesManager

java.lang.Object
com.jalios.jcms.workspace.HierarchicalWorkspacesManager
All Implemented Interfaces:
JPropertiesListener

public class HierarchicalWorkspacesManager extends 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
Author:
dissert
  • Method Details

    • 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 or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      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 workspace
      member - the current loggedMember
    • getLastUsedWorkspaces

      public 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(Set<Workspace> workingWorkspaceSet)