You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2004/01/07 11:18:46 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DublinCore.java DublinCoreImpl.java DublinCoreProxy.java

michi       2004/01/07 02:18:46

  Modified:    src/java/org/apache/lenya/cms/publication DublinCore.java
                        DublinCoreImpl.java DublinCoreProxy.java
  Log:
  DC Term isReferencedBy added
  
  Revision  Changes    Path
  1.20      +21 -5     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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DublinCore.java	28 Aug 2003 11:39:58 -0000	1.19
  +++ DublinCore.java	7 Jan 2004 10:18:46 -0000	1.20
  @@ -1,5 +1,4 @@
   /*
  -$Id$
   <License>
   
    ============================================================================
  @@ -57,9 +56,8 @@
   package org.apache.lenya.cms.publication;
   
   /**
  - * 
  - * @author egli
  - * 
  + * @author Christian Egli
  + * @version $Id$
    */
   public interface DublinCore {
       
  @@ -231,4 +229,22 @@
        * @throws DocumentException if an error occurs
        */
       void setRights(String rights) throws DocumentException;
  -}
  \ No newline at end of file
  +    
  +    /**
  +     * Get isReferencedBy
  +     * 
  +     * @return isReferencedBy
  +     * 
  +     * @throws DocumentException if an error occurs
  +     */
  +    String getIsReferencedBy() throws DocumentException;
  +    
  +    /**
  +     * Set isReferencedBy
  +     * 
  +     * @param isReferencedBy isReferencedBy
  +     * 
  +     * @throws DocumentException if an error occurs
  +     */
  +    void setIsReferencedBy(String isReferencedBy) throws DocumentException;
  +}
  
  
  
  1.3       +20 -2     cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreImpl.java
  
  Index: DublinCoreImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DublinCoreImpl.java	6 Jan 2004 17:55:49 -0000	1.2
  +++ DublinCoreImpl.java	7 Jan 2004 10:18:46 -0000	1.3
  @@ -473,7 +473,6 @@
           terms.put(TERM_CREATED, dateCreated);
       }
   
  -
       /**
        * Get the rights
        * 
  @@ -494,4 +493,23 @@
           elements.put(ELEMENT_RIGHTS, rights);
       }
   
  +    /**
  +     * Get isReferencedBy
  +     * 
  +     * @return isReferencedBy
  +     * 
  +     * @throws DocumentException if an error occurs
  +     */
  +    public String getIsReferencedBy() throws DocumentException {
  +        return (String) terms.get(TERM_ISREFERENCEDBY);
  +    }
  +
  +    /**
  +     * Set isReferencedBy
  +     * 
  +     * @param isReferencedBy isReferencedBy
  +     */
  +    public void setIsReferencedBy(String isReferencedBy) {
  +        terms.put(TERM_ISREFERENCEDBY, isReferencedBy);
  +    }
   }
  
  
  
  1.4       +18 -2     cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreProxy.java
  
  Index: DublinCoreProxy.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DublinCoreProxy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DublinCoreProxy.java	29 Oct 2003 15:31:12 -0000	1.3
  +++ DublinCoreProxy.java	7 Jan 2004 10:18:46 -0000	1.4
  @@ -1,5 +1,4 @@
   /*
  -$Id$
   <License>
   
    ============================================================================
  @@ -60,6 +59,7 @@
    * only read from file when it is actually requested.
    *
    * @author <a href="mailto:egli@apache.org">Christian Egli</a>
  + * @version $Id$
    */
   public class DublinCoreProxy implements DublinCore {
   
  @@ -146,6 +146,14 @@
   
       /**
        *  (non-Javadoc)
  +     * @see org.apache.lenya.cms.publication.DublinCore#getIsReferencedBy()
  +     */
  +    public String getIsReferencedBy() throws DocumentException {
  +        return instance().getIsReferencedBy();
  +    }
  +
  +    /**
  +     *  (non-Javadoc)
        * @see org.apache.lenya.cms.publication.DublinCore#getSubject()
        */
       public String getSubject() throws DocumentException {
  @@ -218,6 +226,14 @@
   
       /**
        *  (non-Javadoc)
  +     * @see org.apache.lenya.cms.publication.DublinCore#setIsReferencedBy(java.lang.String)
  +     */
  +    public void setIsReferencedBy(String isReferencedBy) throws DocumentException {
  +        instance().setIsReferencedBy(isReferencedBy);
  +    }
  +
  +    /**
  +     *  (non-Javadoc)
        * @see org.apache.lenya.cms.publication.DublinCore#setSubject(java.lang.String)
        */
       public void setSubject(String subject) throws DocumentException {
  @@ -240,4 +256,4 @@
           instance().save();
       }
   
  -}
  \ No newline at end of file
  +}
  
  
  

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