org.nuiton.wikitty.storage.solr
Class AttachmentInTree
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AttachmentInTree
public AttachmentInTree()
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 idids - 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 idids - 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.