2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portal.kernel.webdav;
\r
17 import com.liferay.portal.model.Lock;
\r
19 import java.io.InputStream;
\r
22 * @author Brian Wing Shun Chan
\r
23 * @author Alexander Chow
\r
25 public interface Resource {
\r
27 public String getClassName();
\r
29 public InputStream getContentAsStream() throws WebDAVException ;
\r
31 public String getContentType();
\r
33 public String getCreateDate();
\r
35 public String getDisplayName();
\r
37 public String getHREF();
\r
39 public Object getModel();
\r
41 public String getModifiedDate();
\r
43 public long getPrimaryKey();
\r
45 public long getSize();
\r
47 public boolean isCollection();
\r
49 public boolean isLocked();
\r
51 public void setClassName(String className);
\r
53 public void setModel(Object model);
\r
55 public void setPrimaryKey(long primaryKey);
\r
57 public Lock getLock();
\r
59 public void setLock(Lock lock);
\r