View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.seasar.tuigwaa.cms.core;
17  
18  import java.util.Date;
19  import java.util.Properties;
20  
21  /***
22   * @author nishioka
23   */
24  public interface Resource {
25  
26  	public abstract String getContentType();
27  
28  	public abstract void setContentType(String contentType);
29  
30  	public abstract String getCreationDate();
31  
32  	public abstract void setCreationDate(String creationDate);
33  
34  	public abstract String getCreationUser();
35  
36  	public abstract void setCreationUser(String creationUser);
37  
38  	public abstract boolean isFolder();
39  
40  	public abstract void setFolder(boolean folder);
41  	
42  	public abstract boolean isFile();
43  
44  	public abstract String getModificationUser();
45  
46  	public abstract void setModificationUser(String modificationUser);
47  
48  	public abstract String getModificationDate();
49  	
50  	public abstract Date getModificationDateAsDate();
51  
52  	public abstract void setModificationDate(String modificationDate);
53  
54  	public abstract String getPath();
55  
56  	public abstract void setPath(String resourcePath);
57  
58  	public abstract String getSiteName();
59  
60  	public abstract void setSiteName(String siteName);
61  
62  	public abstract String getParentPath();
63  	
64  	public abstract String getPageName();
65  	
66  	public abstract boolean isPersistent();
67  	
68  	public abstract void setPersistent(boolean persistent);
69  	
70  	public abstract Resource getClone();
71  	
72  	public abstract String getVersion();
73  
74  	public abstract void setVersion(String version);
75  	
76  	public int getContentLength();
77  	
78  	public void setContentLength(int contentLength);
79  	
80  	public void setProperties(Properties properties);
81  	
82  	public Properties getProperties();
83  	
84  	public String getProperty(String key);
85  }