View Javadoc
1   /*
2    * Copyright (C) 2003-2013 eXo Platform SAS.
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU Affero General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU Affero General Public License for more details.
13   *
14   * You should have received a copy of the GNU Affero General Public License
15   * along with this program. If not, see <http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.wiki.mow.core.api.wiki;
18  
19  import java.util.Date;
20  
21  import org.chromattic.api.RelationshipType;
22  import org.chromattic.api.annotations.MixinType;
23  import org.chromattic.api.annotations.OneToOne;
24  import org.chromattic.api.annotations.Property;
25  
26  /**
27   * Created by The eXo Platform SAS
28   * Author : eXoPlatform
29   *          exo@exoplatform.com
30   * Oct 30, 2013  
31   */
32  @MixinType(name = WikiNodeType.WIKI_PAGE_DESCRIPTION)
33  public abstract class PageDescriptionMixin {
34  
35    @OneToOne(type = RelationshipType.EMBEDDED)
36    public abstract AttachmentImpl getEntity();
37  
38    public abstract void setEntity(AttachmentImpl page);
39  
40    @Property(name = WikiNodeType.Definition.AUTHOR)
41    public abstract String getAuthor();
42    public abstract void setAuthor(String author);
43    
44    @Property(name = WikiNodeType.Definition.UPDATED_DATE)
45    public abstract Date getUpdatedDate();
46    public abstract void setUpdatedDate(Date date);
47    
48    @Property(name = WikiNodeType.Definition.COMMENT)
49    public abstract String getComment();
50    public abstract void setComment(String comments);
51    
52  
53  }