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
    Version:
    $Revision: 107554 $
    Author:
    Sylvain Devaux
    • Constructor Detail

      • FavoriteWorkspaceHandler

        public FavoriteWorkspaceHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.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:
        java.io.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​(java.lang.String v)
      • setOpRemove

        public void setOpRemove​(java.lang.String v)
      • setOpClear

        public void setOpClear​(java.lang.String v)