public class IndexingCommand extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DELETE |
static String |
INSERT |
static String |
PREFIX |
static String |
UNKOWN_DOCUMENT_ID |
static String |
UPDATE |
static String |
UPDATE_SECURITY |
Constructor and Description |
---|
IndexingCommand(DocumentModel targetDocument,
boolean sync,
boolean recurse) |
IndexingCommand(DocumentModel targetDocument,
String command,
boolean sync,
boolean recurse) |
Modifier and Type | Method and Description |
---|---|
void |
addSchemas(String schema) |
Event |
asIndexingEvent() |
boolean |
canBeMerged(IndexingCommand other) |
IndexingCommand |
clone(DocumentModel newDoc) |
void |
computeIndexingEvent() |
void |
disconnect() |
static IndexingCommand |
fromJSON(CoreSession session,
org.codehaus.jackson.JsonParser jp) |
static IndexingCommand |
fromJSON(CoreSession session,
String json) |
String |
getDocId() |
String |
getId() |
String |
getName() |
String |
getRepository() |
String[] |
getSchemas() |
DocumentModel |
getTargetDocument() |
boolean |
isRecurse() |
boolean |
isSync() |
void |
makeSync()
Try to make the command synchronous.
|
void |
merge(boolean sync,
boolean recurse) |
void |
merge(IndexingCommand other) |
void |
refresh(CoreSession session) |
String |
toJSON() |
void |
toJSON(org.codehaus.jackson.JsonGenerator jsonGen) |
String |
toString() |
public static final String INSERT
public static final String UPDATE
public static final String UPDATE_SECURITY
public static final String DELETE
public static final String PREFIX
public static final String UNKOWN_DOCUMENT_ID
public IndexingCommand(DocumentModel targetDocument, String command, boolean sync, boolean recurse)
public IndexingCommand(DocumentModel targetDocument, boolean sync, boolean recurse)
public void refresh(CoreSession session) throws ClientException
ClientException
public String getRepository()
public void merge(IndexingCommand other)
public void merge(boolean sync, boolean recurse)
public boolean canBeMerged(IndexingCommand other)
public boolean isSync()
public boolean isRecurse()
public String getName()
public DocumentModel getTargetDocument()
public String toJSON() throws IOException
IOException
public void toJSON(org.codehaus.jackson.JsonGenerator jsonGen) throws IOException
IOException
public static IndexingCommand fromJSON(CoreSession session, String json) throws ClientException
ClientException
public static IndexingCommand fromJSON(CoreSession session, org.codehaus.jackson.JsonParser jp) throws Exception
Exception
public String getId()
public String getDocId()
public IndexingCommand clone(DocumentModel newDoc)
public String[] getSchemas()
public void addSchemas(String schema)
public void computeIndexingEvent()
public Event asIndexingEvent() throws IOException
IOException
public void makeSync()
public void disconnect()
Copyright © 2014 Nuxeo SA. All rights reserved.