Package org.openxava.web.editors
Class AttachedFile
- java.lang.Object
-
- org.openxava.model.Identifiable
-
- org.openxava.web.editors.AttachedFile
-
@Entity public class AttachedFile extends Identifiable
Class that allows to implement stereotypes FILE and FILES.It's a JPA entity.
- Author:
- Jeromy Altuna
-
-
Constructor Summary
Constructors Constructor Description AttachedFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
java.lang.String
getLibraryId()
Files can be organized to form a set of related files (fileset, directory, folder, etc), here called library.java.lang.String
getName()
void
setData(byte[] data)
void
setLibraryId(java.lang.String libraryId)
void
setName(java.lang.String name)
-
Methods inherited from class org.openxava.model.Identifiable
getId, setId
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the file name
-
setName
public void setName(java.lang.String name)
-
getData
public byte[] getData()
- Returns:
- a array containing the file data
-
setData
public void setData(byte[] data)
-
getLibraryId
public java.lang.String getLibraryId()
Files can be organized to form a set of related files (fileset, directory, folder, etc), here called library.The value returned by this method can be null in the case of files that do not belong to any fileset.
- Returns:
- Unique identifier of the fileset
-
setLibraryId
public void setLibraryId(java.lang.String libraryId)
-
-