r1208 - in trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication: . externalize synchro
Author: mfortun Date: 2011-08-30 14:47:39 +0200 (Tue, 30 Aug 2011) New Revision: 1208 Url: http://nuiton.org/repositories/revision/wikitty/1208 Log: java doc + unused import Modified: trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/AbstractWikittyFileService.java trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/externalize/WikittyPublicationExternalize.java trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/synchro/WikittyPublicationSynchronize.java Modified: trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/AbstractWikittyFileService.java =================================================================== --- trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/AbstractWikittyFileService.java 2011-08-30 12:32:15 UTC (rev 1207) +++ trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/AbstractWikittyFileService.java 2011-08-30 12:47:39 UTC (rev 1208) @@ -15,8 +15,6 @@ import org.nuiton.wikitty.publication.entities.WikittyPubData; import org.nuiton.wikitty.publication.entities.WikittyPubDataImpl; import org.nuiton.wikitty.publication.entities.WikittyPubText; -import org.nuiton.wikitty.publication.entities.WikittyPubTextCompiled; -import org.nuiton.wikitty.publication.entities.WikittyPubTextCompiledImpl; import org.nuiton.wikitty.publication.entities.WikittyPubTextImpl; import org.nuiton.wikitty.search.Criteria; import org.nuiton.wikitty.search.PagedResult; Modified: trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/externalize/WikittyPublicationExternalize.java =================================================================== --- trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/externalize/WikittyPublicationExternalize.java 2011-08-30 12:32:15 UTC (rev 1207) +++ trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/externalize/WikittyPublicationExternalize.java 2011-08-30 12:47:39 UTC (rev 1208) @@ -6,11 +6,7 @@ import java.util.LinkedList; import java.util.List; import java.util.Set; -import java.util.jar.JarFile; - import org.apache.commons.io.FileUtils; -import org.apache.commons.lang.StringEscapeUtils; -import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.nuiton.util.ApplicationConfig; @@ -26,7 +22,6 @@ import org.nuiton.wikitty.publication.PropertiesExtended; import org.nuiton.wikitty.publication.CodeDecorator; import org.nuiton.wikitty.publication.WikittyFileUtil; -import org.nuiton.wikitty.publication.WikittyPublicationConstant; import org.nuiton.wikitty.publication.entities.WikittyPubData; import org.nuiton.wikitty.publication.entities.WikittyPubDataHelper; import org.nuiton.wikitty.publication.entities.WikittyPubText; @@ -36,10 +31,9 @@ import org.nuiton.wikitty.search.Criteria; import org.nuiton.wikitty.search.PagedResult; import org.nuiton.wikitty.search.Search; -import org.nuiton.wikitty.search.operators.Element; /** - * Entry point for the main externalize functionnality + * Entry point for the main externalize functionality * * @author mfortun * @@ -74,6 +68,16 @@ } + /** + * Externalize the current dir as if it was a wikitty service on + * file system. + * + * Create the Jar in the current directory + * + * @param args + * @throws ArgumentsParserException + * @throws IOException + */ static public void main(String[] args) throws ArgumentsParserException, IOException { @@ -101,6 +105,14 @@ } + /** + * Externalize all the wikitty found on the wikitty service designed + * by the application config + * + * @param conf application config initialized to create a wikitty service + * @throws ArgumentsParserException + * @throws IOException + */ static public void externalize(ApplicationConfig conf) throws ArgumentsParserException, IOException { // Found all wikity on the file System @@ -109,7 +121,14 @@ externalize(conf, findAllCrit); } - + /** + * Externalize all the wikitty found(with the criteria) on the wikitty service designed + * by the application config + * @param conf application config initialized to create a wikitty service + * @param crit the criteria for the wikitty to externalize + * @throws ArgumentsParserException + * @throws IOException + */ static public void externalize(ApplicationConfig conf, Criteria crit) throws ArgumentsParserException, IOException { @@ -119,7 +138,15 @@ externalize(conf, crit, currentFile); } - + /** + * Externalize all the wikitty found(with the criteria) on the wikitty service designed + * by the application config and put the result jar in the target dir + * @param conf application config initialized to create a wikitty service + * @param crit the criteria for the wikitty to externalize + * @param targetDir where the jar will be create + * @throws ArgumentsParserException + * @throws IOException + */ static public void externalize(ApplicationConfig conf, Criteria crit, File targetDir) throws ArgumentsParserException, IOException { @@ -128,7 +155,17 @@ externalize(conf, crit, targetDir, jarName); } - + /** + * Externalize all the wikitty found(with the criteria) on the wikitty service designed + * by the application config and put the result jar in the target dir with the specific name + * @param conf application config initialized to create a wikitty service + * @param crit the criteria for the wikitty to externalize + * @param targetDir where the jar will be create + * @param jarName the name for the jar + * @return the jar created + * @throws ArgumentsParserException + * @throws IOException + */ static public File externalize(ApplicationConfig conf, Criteria crit, File TargetDir, String jarName) throws ArgumentsParserException, IOException { Modified: trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/synchro/WikittyPublicationSynchronize.java =================================================================== --- trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/synchro/WikittyPublicationSynchronize.java 2011-08-30 12:32:15 UTC (rev 1207) +++ trunk/wikitty-publication/src/main/java/org/nuiton/wikitty/publication/synchro/WikittyPublicationSynchronize.java 2011-08-30 12:47:39 UTC (rev 1208) @@ -213,6 +213,15 @@ synchronisationServices(origin, target, isRecur, isDelete, isExisting); } + /** + * Synchronize the wikitty service designed by their Uri + * @param origin Uri of the wikitty service from + * @param target Uri of the wikitty service to + * @param isRecur If recursion for synchronize (only label or label and sub label) + * @param isDelete if only delete wikitty that are on origin but not on target + * @param isExisting if only update wikitty and not send wikitty that are on origin and not on target + * @throws URISyntaxException + */ static public void synchronisationServices(String origin, String target, boolean isRecur, boolean isDelete, boolean isExisting) throws URISyntaxException {
participants (1)
-
mfortun@users.nuiton.org