Class FavoriteWorkspaceHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class FavoriteWorkspaceHandler extends JcmsFormHandler
Allows a Member to add, or remove a favorite Workspace or clear its favorites.
Since:
jcms-10.0.0
Author:
Sylvain Devaux
  • Constructor Details

    • FavoriteWorkspaceHandler

      public FavoriteWorkspaceHandler()
  • Method Details

    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • isFavorite

      public boolean isFavorite()
      Returns:
      true if current workspace is in current loggedMember's favorite workspaces.
    • showToggleFavorite

      public boolean showToggleFavorite()
      Returns:
      true if toggle favorite link should be provided for current member and workspace.
    • hasBeenAdded

      public boolean hasBeenAdded()
      Returns:
      boolean for UI to display success message
    • hasBeenRemoved

      public boolean hasBeenRemoved()
      Returns:
      boolean for UI to display success message
    • hasBeenCleared

      public boolean hasBeenCleared()
      Returns:
      boolean for UI to display success message
    • setOpAdd

      public void setOpAdd(String v)
    • setOpRemove

      public void setOpRemove(String v)
    • setOpClear

      public void setOpClear(String v)