View Javadoc
1   /*
2    * Copyright (C) 2003-2011 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (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 General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.services.cms.documents.model;
18  
19  import java.util.Calendar;
20  
21  /**
22   * Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Mar
23   * 22, 2011
24   */
25  public class Document {
26    private String   id;
27  
28    private String   name;
29  
30    private String   title;
31  
32    private String   path;
33  
34    private String   workspace;
35  
36    private String   state;
37  
38    private String   author;
39  
40    private String   lastEditor;
41  
42    private Calendar lastModified;
43  
44    private Calendar dateCreated;
45  
46    public Document(String id,
47                    String name,
48                    String title,
49                    String path,
50                    String workspace,
51                    String state,
52                    String author,
53                    String lastEditor,
54                    Calendar lastModified,
55                    Calendar dateCreated) {
56      this.id = id;
57      this.title = title;
58      this.path = path;
59      this.workspace = workspace;
60      this.state = state;
61      this.author = author;
62      this.lastEditor = lastEditor;
63      this.lastModified = lastModified;
64      this.dateCreated = dateCreated;
65      this.dateCreated = dateCreated;
66      this.name = name;
67  
68    }
69  
70    public String getId() {
71      return id;
72    }
73  
74    public void setId(String id) {
75      this.id = id;
76    }
77  
78    public String getTitle() {
79      return title;
80    }
81  
82    public void setTitle(String title) {
83      this.title = title;
84    }
85  
86    public String getPath() {
87      return path;
88    }
89  
90    public void setPath(String path) {
91      this.path = path;
92    }
93  
94    public String getWorkspace() {
95      return workspace;
96    }
97  
98    public void setWorkspace(String workspace) {
99      this.workspace = workspace;
100   }
101 
102   public String getState() {
103     return state;
104   }
105 
106   public void setState(String state) {
107     this.state = state;
108   }
109 
110   public String getAuthor() {
111     return author;
112   }
113 
114   public void setAuthor(String author) {
115     this.author = author;
116   }
117 
118   public String getLastEditor() {
119     return lastEditor;
120   }
121 
122   public void setLastEditor(String lastEditor) {
123     this.lastEditor = lastEditor;
124   }
125 
126   public Calendar getLastModified() {
127     return lastModified;
128   }
129 
130   public void setLastModified(Calendar lastModified) {
131     this.lastModified = lastModified;
132   }
133 
134   public Calendar getDateCreated() {
135     return dateCreated;
136   }
137 
138   public void setDateCreated(Calendar dateCreated) {
139     this.dateCreated = dateCreated;
140   }
141 
142   public String getName() {
143     return name;
144   }
145 
146   public void setName(String name) {
147     this.name = name;
148   }
149 
150 }