lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DublinCore.java
Date Thu, 14 Aug 2003 16:32:59 GMT
egli        2003/08/14 09:32:59

  Modified:    src/java/org/apache/lenya/cms/publication DublinCore.java
  Log:
  get and set datePublished is gone, since it is not in the
  dublin core standard. Instead we should use dateIssued instead.
  
  Also added dateCreated.
  
  Revision  Changes    Path
  1.15      +11 -11    cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCore.java
  
  Index: DublinCore.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCore.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DublinCore.java	14 Aug 2003 13:49:21 -0000	1.14
  +++ DublinCore.java	14 Aug 2003 16:32:59 -0000	1.15
  @@ -474,26 +474,26 @@
       }
   
       /**
  -     * Get the date of publication.
  +     * Get the date of creation
        * 
  -     * @return the date of publication
  +     * @return the date of creation
        * 
        * @throws DocumentException if an error occurs
  -     * @deprecated Use {@link #getDateIssued()} instead!
        */
  -    public String getDatePublished() throws DocumentException {
  -        return getDateIssued();
  +    public String getDateCreated() throws DocumentException {
  +        checkValidity();
  +        return (String) terms.get(TERM_CREATED);
       }
   
       /**
  -     * Set the publication date
  +     * Set the date of creation
        * 
  -     * @param datePublished the date of publication
  -     * @deprecated Use {@link #setDateIssued(String)} instead!
  +     * @param dateCreated the date of creation
        */
  -    public void setDatePublished(String datePublished) {
  -        setDateIssued(datePublished);
  +    public void setDateCreated(String dateCreated) {
  +        terms.put(TERM_CREATED, dateCreated);
       }
  +
   
       /**
        * Get the rights
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message