Update of 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository
In directory 
james.mmbase.org:/tmp/cvs-serv4456/cmsc/contentrepository/src/java/com/finalist/cmsc/repository

Modified Files:
        ContentElementUtil.java 
Log Message:
CMSC-645 update javadoc


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository
See also: http://www.mmbase.org/jira/browse/CMSC-645


Index: ContentElementUtil.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/ContentElementUtil.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- ContentElementUtil.java     12 Apr 2008 14:26:08 -0000      1.8
+++ ContentElementUtil.java     22 Apr 2008 16:31:44 -0000      1.9
@@ -397,6 +397,14 @@
    }
 
 
+    /**
+     * judege if the content's archive date is in the archive time scope
+     * @param content the node to be match
+     * @param archive spcifiy how to calculate the archive time scrop.accept 
"all" "old" or other String as parameter,
+     * @return <li>true if archive is "all" or content is empty.
+     *         <li>true if archive is "old" and content's archive time is 
before current time
+     *         <li>true if archive is others and content's archive time is 
after or equels to current time
+     */
    public static boolean matchArchive(Node content, String archive) {
       if (StringUtil.isEmpty(archive) || "all".equalsIgnoreCase(archive)) {
          return true;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to