Package com.thed.model
Class Attachment
java.lang.Object
com.thed.model.Attachment
Represents a file attachment. Files will be stored in the repository, which inturn gets saved within the database.
When an Attachment is first uploaded and stored, its reporsitoryId and repositoryParentId is stored. This is a generic
attachment functionality available to wide variety of entities e.g
- Author:
- nirav
- See Also:
-
com.thed.model.Requirement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getName()
getRefId()
void
setContentType
(String contentType) void
setCreatedBy
(Long createdBy) void
setDescription
(String description) void
setFileSize
(String fileSize) void
setId
(long id) void
void
setItemType
(String itemType) void
void
void
setTempPath
(String tempPath) void
setTimeStamp
(Date timeStamp) toString()
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
getItemId
-
getId
-
setId
-
getRefId
-
setRefId
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getTimeStamp
- Returns:
- the timeStamp
-
setTimeStamp
- Parameters:
timeStamp
- the timeStamp to set
-
getItemType
- Returns:
- the itemType
-
setItemType
- Parameters:
itemType
- the itemType to set
-
getCreatedBy
- Returns:
- the createdBy
-
setCreatedBy
- Parameters:
createdBy
- the createdBy to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getContentType
- Returns:
- the contentType
-
setContentType
- Parameters:
contentType
- the contentType to set
-
getFileSize
- Returns:
- the fileSize
-
setFileSize
- Parameters:
fileSize
- the fileSize to set
-
getTempPath
- Returns:
- the tempPath
-
setTempPath
- Parameters:
tempPath
- the tempPath to set
-
setItemId
- Parameters:
itemId
- the itemId to set
-
toString
-