Class CategoryCleanerHandler

    • Field Detail

      • categoryRoot

        protected Category categoryRoot
      • similarity

        protected int similarity
      • opCompute

        protected boolean opCompute
      • opMerge

        protected boolean opMerge
      • opRemove

        protected boolean opRemove
      • catSet

        protected java.util.SortedSet<Category> catSet
      • newName

        protected java.lang.String newName
      • catList

        protected java.util.List<Category> catList
      • catNameList

        protected java.util.List<java.lang.String> catNameList
      • stringDistance

        protected org.apache.lucene.search.spell.StringDistance stringDistance
      • similarityAlgorithm

        protected java.lang.String similarityAlgorithm
      • clusterMap

        protected java.util.Map<java.lang.String,​java.util.Set<Category>> clusterMap
      • clusterId

        protected java.lang.String clusterId
    • Constructor Detail

      • CategoryCleanerHandler

        public CategoryCleanerHandler()
    • Method Detail

      • init

        protected void init()
        Description copied from class: JcmsFormHandler
        Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

        You must absolutely not perform any action which modify data or site configuration.

        Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

        Overrides:
        init in class JcmsFormHandler
      • 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
      • getRedirect

        public java.lang.String getRedirect()
        Description copied from class: JcmsFormHandler
        Get the value of redirect.
        Overrides:
        getRedirect in class JcmsFormHandler
        Returns:
        Value of redirect.
      • getClusterMap

        public java.util.Map<java.lang.String,​java.util.Set<Category>> getClusterMap()
      • setCategoryRootId

        public void setCategoryRootId​(java.lang.String v)
      • getCategoryRoot

        public Category getCategoryRoot()
      • getProposedName

        public java.lang.String getProposedName()
      • setOpCompute

        public void setOpCompute​(boolean v)
      • setOpMerge

        public void setOpMerge​(boolean v)
      • setOpRemove

        public void setOpRemove​(boolean v)
      • setClusterId

        public void setClusterId​(java.lang.String v)
      • setCids

        public void setCids​(java.lang.String[] cids)
      • setNewName

        public void setNewName​(java.lang.String newName)
      • getCatList

        public java.util.List<Category> getCatList()
      • getCatNameList

        public java.util.List<java.lang.String> getCatNameList()
      • setSimilarity

        public void setSimilarity​(java.lang.String v)
      • getAvailableSimilarity

        public int getAvailableSimilarity()
      • setSimilarityAlgorithm

        public void setSimilarityAlgorithm​(java.lang.String v)
      • getAvailableSimilarityAlgorithm

        public java.lang.String getAvailableSimilarityAlgorithm()
      • getSimilarityAlgorithmNames

        public java.util.List<java.lang.String> getSimilarityAlgorithmNames()