| Resource.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.webdav;
16
17 import com.liferay.portal.model.Lock;
18
19 import java.io.InputStream;
20
21 /**
22 * <a href="Resource.java.html"><b><i>View Source</i></b></a>
23 *
24 * @author Brian Wing Shun Chan
25 * @author Alexander Chow
26 */
27 public interface Resource {
28
29 public String getHREF();
30
31 public String getDisplayName();
32
33 public Lock getLock();
34
35 public boolean isCollection();
36
37 public boolean isLocked();
38
39 public String getCreateDate();
40
41 public String getModifiedDate();
42
43 public int getSize();
44
45 public Object getModel();
46
47 public void setModel(Object model);
48
49 public String getClassName();
50
51 public void setClassName(String className);
52
53 public long getPrimaryKey();
54
55 public void setPrimaryKey(long primaryKey);
56
57 public String getContentType();
58
59 public InputStream getContentAsStream() throws WebDAVException ;
60
61 }