Class SimpleAttachment
- java.lang.Object
-
- org.silverpeas.core.contribution.attachment.model.SimpleAttachment
-
- All Implemented Interfaces:
Serializable
public class SimpleAttachment extends Object implements Serializable
An attachment of a user contribution. It represents both the file in the Silverpeas filesystem and the node in the JCR about a given document attached to a user contribution.- Author:
- ehugonnet, mmoquillon
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleAttachment.Builder
-
Constructor Summary
Constructors Constructor Description SimpleAttachment(SimpleAttachment attachment)
-
Method Summary
-
-
-
Constructor Detail
-
SimpleAttachment
public SimpleAttachment(SimpleAttachment attachment)
-
-
Method Detail
-
builder
public static SimpleAttachment.Builder builder(String language)
Constructs a newSimpleAttachment.Builder
ofSimpleAttachment
instances for the specified language.- Parameters:
language
- the ISO 639-1 code of the language.- Returns:
- a
SimpleAttachment.Builder
ofSimpleAttachment
instances.
-
builder
public static SimpleAttachment.Builder builder()
Creates a newSimpleAttachment.Builder
ofSimpleAttachment
instances for the default language as defined inI18n
.- Returns:
- a
SimpleAttachment.Builder
ofSimpleAttachment
instances.
-
getNodeName
public String getNodeName()
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getCreationDate
public Date getCreationDate()
-
setCreationDate
public final void setCreationDate(Date creationDate)
-
getUpdatedBy
public String getUpdatedBy()
-
setUpdatedBy
public void setUpdatedBy(String updatedBy)
-
getLastUpdateDate
public Date getLastUpdateDate()
-
setLastUpdateDate
public final void setLastUpdateDate(Date updateDate)
-
getXmlFormId
public String getXmlFormId()
-
setXmlFormId
public void setXmlFormId(String xmlFormId)
-
-