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 protected
RemoteContentDescriptor(SimpleDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleDocument
getDocument()
Gets the document the remote content descriptor is linked to.String
getId()
Gets the identifier of remote content.String
getLanguage()
Gets the language of the remote content.OffsetDateTime
getLastModificationDate()
Gets the last modification date of the remote content.long
getSize()
Gets the size of the remote content.protected void
setId(String id)
protected void
setLanguage(String language)
protected void
setLastModificationDate(OffsetDateTime lastModificationDate)
protected void
setSize(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
SimpleDocument
instance.
-
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
OffsetDateTime
representing a date.
-
setLastModificationDate
protected void setLastModificationDate(OffsetDateTime lastModificationDate)
-
-