org.nuiton.wikitty.storage.solr
Class AttachmentInTree

java.lang.Object
  extended by org.nuiton.wikitty.storage.solr.AttachmentInTree

public class AttachmentInTree
extends Object

Class permettant de construire la liste des objets qui ont ete ajoute ou supprimer d'un noeud

Since:
3.1 Last update: $Date$ by : $Author$
Version:
$Revision$
Author:
poussin

Field Summary
protected  Set<String> allAttachmentToIndex
           
protected  Map<String,Set<String>> attachmentAddedInTree
           
protected  Map<String,Set<String>> attachmentRemovedInTree
           
protected  org.apache.commons.collections.Factory listFactory
           
 
Constructor Summary
AttachmentInTree()
           
 
Method Summary
 void add(org.apache.solr.common.SolrDocument doc)
           
 void add(org.apache.solr.common.SolrInputDocument doc)
           
 void add(String id, Collection<String> attId)
           
 void add(Wikitty w)
           
 void clean(Collection<String> ids)
          Remove all ids in attachment list.
 Map<String,Set<String>> getAdded()
           
 Set<String> getAll()
           
 Map<String,Set<String>> getRemoved()
           
 void remove(org.apache.solr.common.SolrDocument doc)
           
 void remove(org.apache.solr.common.SolrInputDocument doc)
           
 void remove(String id, Collection<String> attId)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allAttachmentToIndex

protected Set<String> allAttachmentToIndex

listFactory

protected org.apache.commons.collections.Factory listFactory

attachmentRemovedInTree

protected Map<String,Set<String>> attachmentRemovedInTree

attachmentAddedInTree

protected Map<String,Set<String>> attachmentAddedInTree
Constructor Detail

AttachmentInTree

public AttachmentInTree()
Method Detail

clean

public void clean(Collection<String> ids)
Remove all ids in attachment list. Ids is object already deleted reindex it is not necessary

Parameters:
ids -

size

public int size()

getAll

public Set<String> getAll()

getAdded

public Map<String,Set<String>> getAdded()

getRemoved

public Map<String,Set<String>> getRemoved()

remove

public void remove(String id,
                   Collection<String> attId)
Parameters:
id - TreeNode id
ids - attachment id

remove

public void remove(org.apache.solr.common.SolrDocument doc)
Parameters:
doc - TreeNode document representation

remove

public void remove(org.apache.solr.common.SolrInputDocument doc)
Parameters:
doc - TreeNode document representation

add

public void add(String id,
                Collection<String> attId)
Parameters:
id - TreeNode id
ids - attachment id

add

public void add(org.apache.solr.common.SolrDocument doc)
Parameters:
doc - TreeNode document representation

add

public void add(org.apache.solr.common.SolrInputDocument doc)
Parameters:
doc - TreeNode document representation

add

public void add(Wikitty w)
Parameters:
doc - TreeNode document representation


Copyright © 2009-2011 CodeLutin. All Rights Reserved.