lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication DefaultDocument.java
Date Fri, 30 May 2003 14:53:53 GMT
andreas     2003/05/30 07:53:52

  Modified:    src/java/org/apache/lenya/cms/publication
                        DefaultDocument.java
  Log:
  document has publication + id instead of doctype
  
  Revision  Changes    Path
  1.4       +19 -8     cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultDocument.java
  
  Index: DefaultDocument.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/DefaultDocument.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultDocument.java	28 May 2003 14:30:19 -0000	1.3
  +++ DefaultDocument.java	30 May 2003 14:53:52 -0000	1.4
  @@ -51,18 +51,29 @@
   public class DefaultDocument implements Document {
   
       /** Creates a new instance of DefaultDocument */
  -    public DefaultDocument(DocumentType type) {
  -        assert type != null;
  -        this.type = type;
  +    public DefaultDocument(Publication publication, String id) {
  +        assert id != null;
  +        this.id = id;
  +        
  +        assert publication != null;
  +        this.publication = publication;
       }
  +    
  +    private String id;
  +    private Publication publication;
   
  -    private DocumentType type;
  +    /* (non-Javadoc)
  +     * @see org.apache.lenya.cms.publication.Document#getFile()
  +     */
  +    public String getId() {
  +        return id;
  +    }
   
  -    /** Returns the document type this document belongs to.
  -     *
  +    /* (non-Javadoc)
  +     * @see org.apache.lenya.cms.publication.Document#getPublication()
        */
  -    public DocumentType getType() {
  -        return type;
  +    public Publication getPublication() {
  +        return publication;
       }
   
   }
  
  
  

---------------------------------------------------------------------
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