Class ResourceImpl
java.lang.Object
com.logicaldoc.webdav.resource.model.ResourceImpl
- All Implemented Interfaces:
Resource
Implementation of a generic WebDAV resource
- Author:
- Sebastian Wenzky
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetETag()
getID()
getName()
long
boolean
boolean
boolean
boolean
boolean
isFolder()
boolean
isLocked()
boolean
boolean
boolean
boolean
void
setAddChildEnabled
(boolean addChildEnabled) void
void
setCheckedOut
(boolean isCheckedOut) void
setComment
(String comment) void
setContentLength
(Long contentLength) void
setCreationDate
(Date creation) void
setDeleteEnabled
(boolean deleteEnabled) void
void
setDownloadEnabled
(boolean downloadEnabled) void
void
setFolder
(boolean folder) void
setFolderID
(String folderId) void
void
void
setLastModified
(Date lastModified) void
setLocked
(boolean locked) void
setLockUser
(String lockUser) void
void
setRenameEnabled
(boolean renameEnabled) void
setRequestedPerson
(long id) void
setSession
(WebdavSession session) void
setVersionDate
(Date date) void
setVersionLabel
(String versionLabel) void
setWorkspace
(boolean workspace) void
setWriteEnabled
(boolean writeEnabled)
-
Constructor Details
-
ResourceImpl
public ResourceImpl()
-
-
Method Details
-
getContentLength
- Specified by:
getContentLength
in interfaceResource
-
getName
-
setContentLength
- Specified by:
setContentLength
in interfaceResource
-
setName
-
setFolder
public void setFolder(boolean folder) -
setWorkspace
public void setWorkspace(boolean workspace) - Specified by:
setWorkspace
in interfaceResource
-
isFolder
public boolean isFolder() -
isWorkspace
public boolean isWorkspace()- Specified by:
isWorkspace
in interfaceResource
-
setLocked
public void setLocked(boolean locked) -
isLocked
public boolean isLocked() -
getID
-
setID
-
getInputStream
- Specified by:
getInputStream
in interfaceResource
-
setInputStream
- Specified by:
setInputStream
in interfaceResource
-
getRequestedPerson
public long getRequestedPerson()- Specified by:
getRequestedPerson
in interfaceResource
-
setRequestedPerson
public void setRequestedPerson(long id) - Specified by:
setRequestedPerson
in interfaceResource
-
isCheckedOut
public boolean isCheckedOut()- Specified by:
isCheckedOut
in interfaceResource
-
setCheckedOut
public void setCheckedOut(boolean isCheckedOut) - Specified by:
setCheckedOut
in interfaceResource
-
getVersionLabel
- Specified by:
getVersionLabel
in interfaceResource
-
setVersionLabel
- Specified by:
setVersionLabel
in interfaceResource
-
getLastModified
- Specified by:
getLastModified
in interfaceResource
-
setLastModified
- Specified by:
setLastModified
in interfaceResource
-
getVersionDate
- Specified by:
getVersionDate
in interfaceResource
-
setVersionDate
- Specified by:
setVersionDate
in interfaceResource
-
setAuthor
-
getAuthor
-
setComment
- Specified by:
setComment
in interfaceResource
-
getComment
- Specified by:
getComment
in interfaceResource
-
setCreationDate
- Specified by:
setCreationDate
in interfaceResource
-
getCreationDate
- Specified by:
getCreationDate
in interfaceResource
-
isDeleteEnabled
public boolean isDeleteEnabled()- Specified by:
isDeleteEnabled
in interfaceResource
-
isMoveEnabled
public boolean isMoveEnabled()- Specified by:
isMoveEnabled
in interfaceResource
-
isRenameEnabled
public boolean isRenameEnabled()- Specified by:
isRenameEnabled
in interfaceResource
-
setDeleteEnabled
public void setDeleteEnabled(boolean deleteEnabled) - Specified by:
setDeleteEnabled
in interfaceResource
-
setRenameEnabled
public void setRenameEnabled(boolean renameEnabled) - Specified by:
setRenameEnabled
in interfaceResource
-
isWriteEnabled
public boolean isWriteEnabled()- Specified by:
isWriteEnabled
in interfaceResource
-
setWriteEnabled
public void setWriteEnabled(boolean writeEnabled) - Specified by:
setWriteEnabled
in interfaceResource
-
isAddChildEnabled
public boolean isAddChildEnabled()- Specified by:
isAddChildEnabled
in interfaceResource
-
setAddChildEnabled
public void setAddChildEnabled(boolean addChildEnabled) - Specified by:
setAddChildEnabled
in interfaceResource
-
getSession
- Specified by:
getSession
in interfaceResource
-
setSession
- Specified by:
setSession
in interfaceResource
-
isDownloadEnabled
public boolean isDownloadEnabled()- Specified by:
isDownloadEnabled
in interfaceResource
-
setDownloadEnabled
public void setDownloadEnabled(boolean downloadEnabled) - Specified by:
setDownloadEnabled
in interfaceResource
-
getDocRef
-
setDocRef
-
getFolderID
- Specified by:
getFolderID
in interfaceResource
-
setFolderID
- Specified by:
setFolderID
in interfaceResource
-
getLockUser
- Specified by:
getLockUser
in interfaceResource
-
setLockUser
- Specified by:
setLockUser
in interfaceResource
-
setETag
-
getETag
-