Class RemoteContentDescriptor
- java.lang.Object
-
- org.silverpeas.core.contribution.attachment.model.RemoteContentDescriptor
-
- Direct Known Subclasses:
WebdavContentDescriptor
public class RemoteContentDescriptor extends Object
This class represents the description of a remotely content.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteContentDescriptor(SimpleDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleDocumentgetDocument()Gets the document the remote content descriptor is linked to.StringgetId()Gets the identifier of remote content.StringgetLanguage()Gets the language of the remote content.OffsetDateTimegetLastModificationDate()Gets the last modification date of the remote content.longgetSize()Gets the size of the remote content.booleanisOfficeEditorLock()Indicates if an document office editor is locking the file.protected voidsetId(String id)protected voidsetLanguage(String language)protected voidsetLastModificationDate(OffsetDateTime lastModificationDate)protected voidsetOfficeEditorLock(boolean officeEditorLock)protected voidsetSize(long size)
-
-
-
Constructor Detail
-
RemoteContentDescriptor
protected RemoteContentDescriptor(SimpleDocument document)
-
-
Method Detail
-
getDocument
public SimpleDocument getDocument()
Gets the document the remote content descriptor is linked to.- Returns:
- a
SimpleDocumentinstance.
-
getId
public String getId()
Gets the identifier of remote content.- Returns:
- a string representing an unique identifier.
-
setId
protected void setId(String id)
-
getLanguage
public String getLanguage()
Gets the language of the remote content.- Returns:
- a string representing the language.
-
setLanguage
protected void setLanguage(String language)
-
getSize
public long getSize()
Gets the size of the remote content.- Returns:
- a long representing a size in bytes.
-
setSize
protected void setSize(long size)
-
getLastModificationDate
public OffsetDateTime getLastModificationDate()
Gets the last modification date of the remote content.- Returns:
- an
OffsetDateTimerepresenting a date.
-
setLastModificationDate
protected void setLastModificationDate(OffsetDateTime lastModificationDate)
-
isOfficeEditorLock
public boolean isOfficeEditorLock()
Indicates if an document office editor is locking the file.- Returns:
- true if locking file, false otherwise.
-
setOfficeEditorLock
protected void setOfficeEditorLock(boolean officeEditorLock)
-
-