Class BinaryData<T extends Comet3Entity>
java.lang.Object
com.priint.pubserver.tagging.TaggingObject
com.priint.pubserver.comet.bridge.Comet3Entity
com.priint.pubserver.comet3.entity.BinaryData<T>
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
Serializable
The type Binary data. For internal use only
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.priint.pubserver.tagging.TaggingObject
TaggingObject.LinkedSetWrapper<T> -
Field Summary
Fields inherited from class com.priint.pubserver.comet.bridge.Comet3Entity
id, timestampFields inherited from class com.priint.pubserver.tagging.TaggingObject
tagsSet -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Binary data.BinaryData(String session, T owner) Instantiates a new Binary data. -
Method Summary
Modifier and TypeMethodDescriptionabstract StringCalculate file id string.byte[]Get content byte [ ].Gets context session.Gets file id.intGets file size.intgetId()Gets id.Gets mime type.getOwner()Gets owner.Class<?>Gets owner class.voidsetContent(byte[] content) Sets content.voidsetContextSession(String contextSession) Sets context session.voidSets file id.voidsetFileSize(int fileSize) Sets file size.voidsetId(int id) Sets id.voidsetMimeType(String mimeType) Sets mime type.voidSets owner.Methods inherited from class com.priint.pubserver.comet.bridge.Comet3Entity
entityEquals, entityEquals, getLastModificationTimestamp, info, postprocess, setLastModificationTimestampMethods inherited from class com.priint.pubserver.tagging.TaggingObject
addToTags, getTags, getTagValue, inTags, isA, removeFromTags, searchListByTags, setTags, setTags
-
Constructor Details
-
BinaryData
public BinaryData()Instantiates a new Binary data. -
BinaryData
Instantiates a new Binary data.- Parameters:
session- the sessionowner- the owner
-
-
Method Details
-
calculateFileId
Calculate file id string.- Returns:
- the string
-
getFileId
Gets file id.- Returns:
- the file id
-
setFileId
Sets file id.- Parameters:
fileId- the file id
-
getMimeType
Gets mime type.- Returns:
- the mime type
-
setMimeType
Sets mime type.- Parameters:
mimeType- the mime type
-
getFileSize
public int getFileSize()Gets file size.- Returns:
- the file size
-
setFileSize
public void setFileSize(int fileSize) Sets file size.- Parameters:
fileSize- the file size
-
getContent
public byte[] getContent()Get content byte [ ].- Returns:
- the byte [ ]
-
setContent
public void setContent(byte[] content) Sets content.- Parameters:
content- the content
-
getOwner
Gets owner.- Returns:
- the owner
-
setOwner
Sets owner.- Parameters:
owner- the owner
-
getContextSession
Gets context session.- Returns:
- the context session
-
setContextSession
Sets context session.- Parameters:
contextSession- the context session
-
getId
public int getId()Description copied from class:Comet3EntityGets id.- Overrides:
getIdin classComet3Entity- Returns:
- the id
-
setId
public void setId(int id) Description copied from class:Comet3EntitySets id.- Overrides:
setIdin classComet3Entity- Parameters:
id- the id
-
getOwnerClass
Gets owner class.- Returns:
- the owner class
-