Author: echatellier Date: 2010-06-21 10:18:09 +0200 (Mon, 21 Jun 2010) New Revision: 134 Url: http://nuiton.org/repositories/revision/wikitty/134 Log: C'est chaud ?\195?\160 lire les :) Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/search/RestrictionHelper.java Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/search/RestrictionHelper.java =================================================================== --- trunk/wikitty-api/src/main/java/org/nuiton/wikitty/search/RestrictionHelper.java 2010-06-19 18:57:37 UTC (rev 133) +++ trunk/wikitty-api/src/main/java/org/nuiton/wikitty/search/RestrictionHelper.java 2010-06-21 08:18:09 UTC (rev 134) @@ -6,40 +6,34 @@ import java.util.Locale; import java.util.TimeZone; - - /** * @author "Nicolas Chapurlat" <nicolas.chapurlat@logica.com> * - * This class allow you to simply create restriction. <br> - * <br> - * Exmaples : <br> - * <br> - * RestrictionHelper.and(<br> - * RestrictionHelper.eq(<br> - * new - * ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID),<br> - * "myContentDefId"),<br> - * RestrictionHelper.between(<br> - * new ElementDto(ElementName.CONTENT, - * OperandName.CREATION_DATE, OperandType.DATE),<br> - * RestrictionHelper.DATE_FORMAT.format (new - * Date(2008,1,25)),<br> - * RestrictionHelper.DATE_FORMAT.format (new - * Date(2008,6,15))));<br> ); <br> - * <br> -- example 2 : I search all content witch content definition id is + * This class allow you to simply create restriction. + * <p/> + * Examples : + * <pre> + * RestrictionHelper.and( + * RestrictionHelper.eq( + * new ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID), "myContentDefId"), + * RestrictionHelper.between( + * new ElementDto(ElementName.CONTENT, OperandName.CREATION_DATE, OperandType.DATE), + * RestrictionHelper.DATE_FORMAT.format (new Date(2008,1,25)), + * RestrictionHelper.DATE_FORMAT.format (new Date(2008,6,15)))) + * ); + * </pre> + * <p/> + * example 2 : I search all content witch content definition id is * "myContentDefId" and attribute def 'ref' witch id is ATT_REF_ID is not equals - * to "REF1234567890" <br> - * <br> - * RestrictionHelper.and(<br> - * RestrictionHelper.eq(<br> - * new - * ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID),<br> - * "myContentDefId"),<br> - * RestrictionHelper.neq(<br> - * new ElementDto(ElementName.ATTRIBUTE, - * "ATT_REF_ID", OperandType.STRING),<br> - * "REF1234567890"));<br> ); <br> + * to "REF1234567890" + * <pre> + * RestrictionHelper.and( + * RestrictionHelper.eq( + * new ElementDto(ElementName.CONTENT_DEFINITION, OperandName.ID, OperandType.ID), "myContentDefId"), + * RestrictionHelper.neq( + * new ElementDto(ElementName.ATTRIBUTE, "ATT_REF_ID", OperandType.STRING), "REF1234567890")) + * ); + * </pre> */ public class RestrictionHelper {
participants (1)
-
echatellier@users.nuiton.org