|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.publication.WikittyPublication
public class WikittyPublication
Main class of the sync part of wikitty publication, this class is the entry point for sync operation : import, checkout, commit, delete, relocate and update.
| Field Summary | |
|---|---|
protected static org.nuiton.util.ApplicationConfig |
applicationConfig
|
static String |
DEFAULT_PROPERTY_NAME_SEP
|
static String |
DIRECTORY_KEY
|
static String |
HESSIAN_PROTOCOL_KEY
|
static String |
META_CURRENT_LABEL
|
static String |
META_SUB_LABEL
|
static String |
META_SUFFIX_KEY_CHECKSUM
|
static String |
META_SUFFIX_KEY_ID
|
static String |
META_SUFFIX_KEY_VERSION
|
static String |
NO_RECURSION_KEY
|
static String |
PROPERTY_DIRECTORY
|
static String |
WIKITTY_FILE_META_PROPERTIES_FILE
|
static String |
WIKITTY_ID_PROPERTIES_FILE
|
static String |
WIKITTYPUBLICATION_PROPERTIES_FILE
|
static String |
WITTY_SERVICE_KEY
|
| Constructor Summary | |
|---|---|
WikittyPublication()
|
|
| Method Summary | |
|---|---|
static void |
checkoutFromWikitty(String label)
Method that checkout a label recursivly or not into a local directory from a wikitty service |
static void |
commitToWikitty()
commit the current wikittyworkspace into a wikitty service |
protected static HashMap<String,String> |
deleteFile(File toDelete)
|
static void |
deleteFromWikitty(File toDelete)
delete a file or directory from the workspace it remove the label from the wikitty |
static void |
importToWikitty()
Method that import the content of a directory into a wikitty service |
protected static List<File> |
listFile(File starts,
boolean recursivly)
Method that create the list of file needed to commit, delete, update import. |
static void |
main(String[] args)
|
static void |
printDirectory(File dir,
boolean recur)
|
static void |
relocateWikitty()
Relocate the default url of the wikitty service |
protected static File |
searchWikittyPublicationHomeDir(File start)
Use to search in the file system the directory that containt the .wp dir that containt the properties file for the wikitty service's adresse |
static void |
updateFromWikitty()
update the current workspace from a wikitty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.nuiton.util.ApplicationConfig applicationConfig
public static String WITTY_SERVICE_KEY
public static String NO_RECURSION_KEY
public static String DIRECTORY_KEY
public static String HESSIAN_PROTOCOL_KEY
public static String DEFAULT_PROPERTY_NAME_SEP
public static String PROPERTY_DIRECTORY
public static String WIKITTYPUBLICATION_PROPERTIES_FILE
public static String WIKITTY_ID_PROPERTIES_FILE
public static String WIKITTY_FILE_META_PROPERTIES_FILE
public static String META_SUFFIX_KEY_VERSION
public static String META_SUFFIX_KEY_CHECKSUM
public static String META_SUFFIX_KEY_ID
public static String META_CURRENT_LABEL
public static String META_SUB_LABEL
| Constructor Detail |
|---|
public WikittyPublication()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args -
org.nuiton.util.ArgumentsParserException
Exception
public static void importToWikitty()
throws Exception
Exception
public static void printDirectory(File dir,
boolean recur)
protected static List<File> listFile(File starts,
boolean recursivly)
starts - harvested directoryrecursivly - boolean id the directory have to be harvest
public static void checkoutFromWikitty(String label)
throws Exception
Exception
public static void relocateWikitty()
throws Exception
Exception
public static void commitToWikitty()
throws Exception
Exception
public static void deleteFromWikitty(File toDelete)
throws Exception
Exception
public static void updateFromWikitty()
throws Exception
Exception
protected static File searchWikittyPublicationHomeDir(File start)
throws Exception
start -
Exception
protected static HashMap<String,String> deleteFile(File toDelete)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||