Class CategoryCleanerHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class CategoryCleanerHandler extends JcmsFormHandler
  • Field Details

    • categoryRoot

      protected Category categoryRoot
    • similarity

      protected int similarity
    • opCompute

      protected boolean opCompute
    • opMerge

      protected boolean opMerge
    • opRemove

      protected boolean opRemove
    • catSet

      protected SortedSet<Category> catSet
    • newName

      protected String newName
    • elderCat

      protected Category elderCat
    • catList

      protected List<Category> catList
    • catNameList

      protected List<String> catNameList
    • stringDistance

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

      protected String similarityAlgorithm
    • clusterMap

      protected Map<String,Set<Category>> clusterMap
    • clusterId

      protected String clusterId
  • Constructor Details

    • CategoryCleanerHandler

      public CategoryCleanerHandler()
  • Method Details

    • 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 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
    • getRedirect

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

      public Map<String,Set<Category>> getClusterMap()
    • setCategoryRootId

      public void setCategoryRootId(String v)
    • getCategoryRoot

      public Category getCategoryRoot()
    • getProposedName

      public String getProposedName()
    • setOpCompute

      public void setOpCompute(boolean v)
    • setOpMerge

      public void setOpMerge(boolean v)
    • setOpRemove

      public void setOpRemove(boolean v)
    • setClusterId

      public void setClusterId(String v)
    • setCids

      public void setCids(String[] cids)
    • setNewName

      public void setNewName(String newName)
    • getCatList

      public List<Category> getCatList()
    • getCatNameList

      public List<String> getCatNameList()
    • setSimilarity

      public void setSimilarity(String v)
    • getAvailableSimilarity

      public int getAvailableSimilarity()
    • setSimilarityAlgorithm

      public void setSimilarityAlgorithm(String v)
    • getAvailableSimilarityAlgorithm

      public String getAvailableSimilarityAlgorithm()
    • getSimilarityAlgorithmNames

      public List<String> getSimilarityAlgorithmNames()