Dashboard > Hippo CMS > ... > Hippo Webdav Batch Processor plugins > WDBP Repair Index
WDBP Repair Index
Added by Niels van Kampenhout, last edited by Niels van Kampenhout on Jun 08, 2007  (view change) show comment
Labels: 


Description

A Webdav Batch Processor plugin which sets a valid index property for any resource in the repository which does not have one. The index property is used to order documents in a folder (the up and down arrows in the Documents tab in Hippo CMS).

Disclaimer

This is unsupported software, provided as is.

Using the plugin

  1. Check out the code from svn
    $ svn co https://svn.hippocms.org/repos/hippo/hippo-tools/hippo-wdbp-plugin-indexrepair/trunk/ wdbp-repairindex
    
  2. $ cd wdbp-repairindex
    
  3. Build the uberjar
    $ maven clean uberjar
    
  4. Edit repairindex.properties according to you configuration. The example below is configured for a standard Hippo Repository binary distribution.
    location.host=localhost
    location.port=60000
    location.rootpath=/default
    location.path=/files/default.preview/content
    
    authentication.realm=default realm
    authentication.username=root
    authentication.password=password
    
    threading.maxthreads=1
    
    plugin.1.classname=nl.hippo.webdav.batchprocessor.repairindex.RepairIndex
    
  5. Run the uberjar with the name of the properties file as a command line argument:
    $ java -jar target/wdbp-repairindex-1.01.00-dev-uber.jar repairindex.properties
    

    (Note: the version number might be different for you checkout)

  6. The plugin will output something similar to the following:
    Processing http://localhost:60000/default/files/default.preview/content
    Skipping root node
    
    Processing http://localhost:60000/default/files/default.preview/content/documents
    Current index =
    Setting index for to: 00000000010
    
    Processing http://localhost:60000/default/files/default.preview/content/documents/nl
    Current index =
    Setting index for to: 00000000002
    
    Processing http://localhost:60000/default/files/default.preview/content/documents/en
    Current index = 00000000001
    Node already has a valid index
    

    etc.

Read-only mode

As of SVN revision 6681 (later: release 1.01.01), the plugin features a read-only mode, i.e. it will check all resources for a missing or invalid index property but will not modify anything in the repository. To use the plugin in read-only mode, add the following property to your properties file:

plugin.1.configuration.mode.readonly=true

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.7 Build:#813 Aug 28, 2007) - Bug/feature request - Contact Administrators