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 Details

    • AttachedFile

      public AttachedFile()
  • Method Details

    • getName

      public String getName()
      Returns:
      the file name
    • setName

      public void setName(String name)
    • getData

      public byte[] getData()
      Returns:
      a array containing the file data
    • setData

      public void setData(byte[] data)
    • getLibraryId

      public 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(String libraryId)