|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WikittyService
| Field Summary | |
|---|---|
static int |
ALL_ELEMENTS
Deprecated. |
| Method Summary | |
|---|---|
void |
addLabel(String wikittyId,
String label)
add new lable to the wikitty object |
String |
asyncExportAllByCriteria(Criteria criteria)
|
String |
asyncImportFromUri(String uri)
|
void |
cancelJob(String jobId)
|
void |
clear()
Use with caution : It will delete ALL indexes from search engine ! |
void |
delete(Collection<String> ids)
delete all object if id exists |
void |
delete(String id)
delete object if id exists |
Set<String> |
findAllAppliedLabels(String wikittyId)
retrieve all labels applied on a wikitty object |
PagedResult<Wikitty> |
findAllByCriteria(Criteria criteria)
|
PagedResult<Wikitty> |
findAllByLabel(String label,
int firstIndex,
int endIndex)
|
Wikitty |
findByCriteria(Criteria criteria)
Fist lonely (or first one) wikitty object that match criteria, if no wikitty found return null |
Wikitty |
findByLabel(String label)
|
void |
freeJobResource(String jobId)
delete job info and all resources associated to that job (files or other ...) |
List<String> |
getAllExtensionIds()
Return all extension id (ex: "extName[version])") |
List<String> |
getAllExtensionsRequires(String extensionName)
Return all extension id (ex: "extName[version])") where extensionName is required. |
JobState |
infoJob(String jobId)
|
List<Wikitty> |
restore(List<String> id)
|
Wikitty |
restore(String id)
|
Map<TreeNode,Integer> |
restoreChildren(String wikittyId,
Criteria filter)
Retrieve all wikitties children with count (no recursively) of an other one Wikitty reference by wikittyId MUST include the 'Node' extension |
WikittyExtension |
restoreExtension(String id)
|
WikittyExtension |
restoreExtensionLastVersion(String name)
Search extension with name in last version |
Map.Entry<TreeNode,Integer> |
restoreNode(String wikittyId,
Criteria filter)
Retrieve wikitty node with count. |
Tree |
restoreTree(String wikittyId)
Retrieve all wikitties children (recursively) of an other one Wikitty reference by wikittyId MUST include the 'Node' extension |
Wikitty |
restoreVersion(String wikittyId,
String version)
|
UpdateResponse |
store(Collection<Wikitty> wikitties)
Manage Update and creation. |
UpdateResponse |
store(Collection<Wikitty> wikitties,
boolean disableAutoVersionIncrement)
Manage Update and creation. |
UpdateResponse |
store(Wikitty wikitty)
Manage Update and creation. |
UpdateResponse |
storeExtension(Collection<WikittyExtension> exts)
Manage Update and creation. |
UpdateResponse |
storeExtension(WikittyExtension ext)
Manage Update and creation. |
UpdateResponse |
syncEngin()
Synchronise search engine with wikitty strorage engine, i.e. clear and reindex all wikitties. |
String |
syncExportAllByCriteria(Criteria criteria)
|
void |
syncImportFromUri(String uri)
|
void |
syncImportFromXml(String xml)
synchonous or not ? |
| Field Detail |
|---|
@Deprecated static final int ALL_ELEMENTS
Criteria.ALL_ELEMENTS
| Method Detail |
|---|
void clear()
UpdateResponse store(Wikitty wikitty)
wikitty - contains an id all the time.UpdateResponse store(Collection<Wikitty> wikitties)
wikitties - list of wikitty to be persisted
UpdateResponse store(Collection<Wikitty> wikitties,
boolean disableAutoVersionIncrement)
wikitties - list of wikitty to be persisteddisableAutoVersionIncrement - boolean to disable version increment
on saved wikittyList<String> getAllExtensionIds()
List<String> getAllExtensionsRequires(String extensionName)
UpdateResponse storeExtension(WikittyExtension ext)
wikitty - extension to be persistedUpdateResponse storeExtension(Collection<WikittyExtension> exts)
exts - list of wikitty extension to be persistedWikittyExtension restoreExtension(String id)
id -
WikittyExtension restoreExtensionLastVersion(String name)
name -
Wikitty restore(String id)
id - object id to restore
List<Wikitty> restore(List<String> id)
id - list of wikitty ids to restore
void delete(String id)
id - object's id to removevoid delete(Collection<String> ids)
ids - object's ids to removePagedResult<Wikitty> findAllByCriteria(Criteria criteria)
criteria -
Wikitty findByCriteria(Criteria criteria)
criteria -
void addLabel(String wikittyId,
String label)
wikittyId - id of wikitty object to add labellabel - label to add
PagedResult<Wikitty> findAllByLabel(String label,
int firstIndex,
int endIndex)
label -
Wikitty findByLabel(String label)
addLabel -
Set<String> findAllAppliedLabels(String wikittyId)
wikittyId -
Tree restoreTree(String wikittyId)
wikittyId -
Map.Entry<TreeNode,Integer> restoreNode(String wikittyId,
Criteria filter)
wikittyId -
Map<TreeNode,Integer> restoreChildren(String wikittyId,
Criteria filter)
wikittyId -
Wikitty restoreVersion(String wikittyId,
String version)
UpdateResponse syncEngin()
void syncImportFromXml(String xml)
xmlData - data to importvoid syncImportFromUri(String uri)
uri - String asyncImportFromUri(String uri)
uri -
String asyncExportAllByCriteria(Criteria criteria)
criteria -
String syncExportAllByCriteria(Criteria criteria)
criteria -
JobState infoJob(String jobId)
jobId -
void cancelJob(String jobId)
jobId - void freeJobResource(String jobId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||