|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.WikittyImportExportService
public class WikittyImportExportService
Import/export service.
| Nested Class Summary | |
|---|---|
static class |
WikittyImportExportService.FORMAT
|
| Field Summary | |
|---|---|
protected static String |
EXPORT_DIRECTORY
directory path where export asynchronous file are stored |
protected static String |
EXPORT_URL
url used by client to retrieve export file when job is ended |
protected ExecutorService |
importExportExecutor
Executor that do import export task |
protected Map<String,Future<String>> |
importExportTask
contains all import or export task, key is job id send to client |
protected static int |
MAX_IMPORT_EXPORT_THREAD
number of thread used to import/export task |
protected String |
securityToken
|
protected WikittyService |
ws
|
| Constructor Summary | |
|---|---|
WikittyImportExportService(String securityToken,
WikittyService ws)
|
|
| Method Summary | |
|---|---|
String |
asyncExportAllByCriteria(WikittyImportExportService.FORMAT format,
Criteria criteria)
Asynchronous export by criteria. |
String |
asyncExportAllByExample(WikittyImportExportService.FORMAT format,
BusinessEntityWikitty e)
Asynchronous export by example. |
String |
asyncImportFromUri(WikittyImportExportService.FORMAT format,
String uri)
|
void |
cancelJob(String jobId)
|
void |
freeJobResource(String jobId)
|
WikittyService |
getWikittyService()
|
JobState |
infoJob(String jobId)
Return job information. |
String |
syncExportAllByCriteria(WikittyImportExportService.FORMAT format,
Criteria criteria)
Synchronous export by criteria. |
String |
syncExportAllByExample(WikittyImportExportService.FORMAT format,
BusinessEntityWikitty e)
Synchronous export by example. |
void |
syncImport(WikittyImportExportService.FORMAT format,
String s)
|
void |
syncImportFromUri(WikittyImportExportService.FORMAT format,
String uri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int MAX_IMPORT_EXPORT_THREAD
protected static final String EXPORT_DIRECTORY
protected static final String EXPORT_URL
protected ExecutorService importExportExecutor
protected Map<String,Future<String>> importExportTask
protected WikittyService ws
protected String securityToken
| Constructor Detail |
|---|
public WikittyImportExportService(String securityToken,
WikittyService ws)
| Method Detail |
|---|
public WikittyService getWikittyService()
public void syncImport(WikittyImportExportService.FORMAT format,
String s)
public void syncImportFromUri(WikittyImportExportService.FORMAT format,
String uri)
public String asyncImportFromUri(WikittyImportExportService.FORMAT format,
String uri)
public String asyncExportAllByExample(WikittyImportExportService.FORMAT format,
BusinessEntityWikitty e)
format - export formate - sample
public String syncExportAllByExample(WikittyImportExportService.FORMAT format,
BusinessEntityWikitty e)
format - export formate - sample
public String asyncExportAllByCriteria(WikittyImportExportService.FORMAT format,
Criteria criteria)
format - export formatcriteria - criteria
public String syncExportAllByCriteria(WikittyImportExportService.FORMAT format,
Criteria criteria)
format - export formatcriteria - criteria
public JobState infoJob(String jobId)
jobId - job id
public void cancelJob(String jobId)
public void freeJobResource(String jobId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||