|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.publication.synchro.WikittyPublicationSynchronize
public class WikittyPublicationSynchronize
Main class of the sync part of wikitty publication, this class is the entry point for sync operation. Existing, delete and update.
| Field Summary | |
|---|---|
protected static org.nuiton.util.ApplicationConfig |
applicationConfig
|
static String |
CAJO_URI_PREFIX
the prefix use in cajo url |
static String |
FILE_URI_PREFIX
the prefix use in file url |
protected static boolean |
FLAG_COMMIT_UPDATE
|
static String |
HESSIAN_URI_PREFIX
the prefix use in hessian url |
static String |
IS_DELETE_OPTION
for delete option |
static String |
IS_EXISTING_OPTION
for existing option |
static String |
IS_RECURSION_OPTION
for recursion option |
static String |
LABEL_DELIM
the string that mark the beginnning of the label |
static String |
LABEL_KEY
Use to save the label by the wikitty publication file system |
static String |
LABEL_REGEX
regex to select the label part of the uri |
protected static boolean |
MAIN_ENABLE
|
static String |
WIKITTY_FILE_SERVICE
The file name of the wikitty service property |
static String |
WIKITTY_SERVICE_INTERLOCUTEUR
Key for the other uri, usefull in the case of commit/update with a file system wikitty service. |
| Method Summary | |
|---|---|
static void |
commit(String label,
String... uriFileSystem)
|
protected static void |
commitUpdateDelegate(String label,
boolean isCommit,
String... uriFileSystem)
|
protected static Criteria |
constructCriteriaLabelRecur(String label,
boolean isRecur)
Used to construct criteria on wikittypubdata and pubtext on the wikittylabel extension |
static void |
main(String[] args)
|
static File |
searchWikittyPublicationHomePropertie(File start)
Use to search and return the home property that containt informations about wikitty service use to synchronise a wikitty publication file system |
protected static org.nuiton.util.ApplicationConfig |
setUpApplicationConfigServerConnector(URI uri)
Use to setup correct url property in the application config and correct component for the wikittyservice |
static void |
synchronisation(String origin,
String target)
|
static void |
synchronisationServices(String origin,
String target,
boolean isRecur,
boolean isDelete,
boolean isExisting)
Synchronize the wikitty service designed by their Uri |
static void |
update(String label,
String... uriFileSystem)
|
static void |
usage()
|
protected static void |
writeProperty(String ur)
Called when syncrhonising with file system, used to store info about the "other" service used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String WIKITTY_SERVICE_INTERLOCUTEUR
protected static org.nuiton.util.ApplicationConfig applicationConfig
public static String IS_RECURSION_OPTION
public static String IS_DELETE_OPTION
public static String IS_EXISTING_OPTION
public static String LABEL_KEY
public static String LABEL_DELIM
public static String LABEL_REGEX
public static String FILE_URI_PREFIX
public static String CAJO_URI_PREFIX
public static String HESSIAN_URI_PREFIX
public static String WIKITTY_FILE_SERVICE
protected static boolean MAIN_ENABLE
protected static boolean FLAG_COMMIT_UPDATE
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args -
org.nuiton.util.ArgumentsParserException
Exception
public static void synchronisation(String origin,
String target)
throws URISyntaxException
URISyntaxException
public static void synchronisationServices(String origin,
String target,
boolean isRecur,
boolean isDelete,
boolean isExisting)
throws URISyntaxException
origin - Uri of the wikitty service fromtarget - Uri of the wikitty service toisRecur - If recursion for synchronize (only label or label and sub label)isDelete - if only delete wikitty that are on origin but not on targetisExisting - if only update wikitty and not send wikitty that are on origin and not on target
URISyntaxException
protected static Criteria constructCriteriaLabelRecur(String label,
boolean isRecur)
label - the label criteriaisRecur - is recusion
protected static org.nuiton.util.ApplicationConfig setUpApplicationConfigServerConnector(URI uri)
uri - of the targeted wikitty service
public static void update(String label,
String... uriFileSystem)
throws Exception
Exception
public static void commit(String label,
String... uriFileSystem)
throws Exception
Exception
protected static void commitUpdateDelegate(String label,
boolean isCommit,
String... uriFileSystem)
throws Exception
Exceptionpublic static void usage()
protected static void writeProperty(String ur)
label -
public static File searchWikittyPublicationHomePropertie(File start)
throws IOException
start - the directory where starts the search
IOException - if error while reading property file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||