Class Attachment

All Implemented Interfaces:
Serializable, GloballyUnique, Versioned

@Entity public class Attachment extends PersistableBusinessObjectBaseAdapter
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • getNoteIdentifier

      public Long getNoteIdentifier()
      Gets the noteIdentifier attribute.
      Returns:
      Returns the noteIdentifier
    • setNoteIdentifier

      public void setNoteIdentifier(Long noteIdentifier)
      Sets the noteIdentifier attribute.
      Parameters:
      noteIdentifier - The noteIdentifier to set.
    • getAttachmentMimeTypeCode

      public String getAttachmentMimeTypeCode()
      Gets the attachmentMimeTypeCode attribute.
      Returns:
      Returns the attachmentMimeTypeCode
    • setAttachmentMimeTypeCode

      public void setAttachmentMimeTypeCode(String attachmentMimeTypeCode)
      Sets the attachmentMimeTypeCode attribute.
      Parameters:
      attachmentMimeTypeCode - The attachmentMimeTypeCode to set.
    • getAttachmentFileName

      public String getAttachmentFileName()
      Gets the attachmentFileName attribute.
      Returns:
      Returns the attachmentFileName
    • setAttachmentFileName

      public void setAttachmentFileName(String attachmentFileName)
      Sets the attachmentFileName attribute.
      Parameters:
      attachmentFileName - The attachmentFileName to set.
    • getAttachmentIdentifier

      public String getAttachmentIdentifier()
      Gets the attachmentIdentifier attribute.
      Returns:
      Returns the attachmentIdentifier
    • setAttachmentIdentifier

      public void setAttachmentIdentifier(String attachmentIdentifier)
      Sets the attachmentIdentifier attribute.
      Parameters:
      attachmentIdentifier - The attachmentIdentifier to set.
    • getAttachmentFileSize

      public Long getAttachmentFileSize()
      Gets the attachmentFileSize attribute.
      Returns:
      Returns the attachmentFileSize
    • setAttachmentFileSize

      public void setAttachmentFileSize(Long attachmentFileSize)
      Sets the attachmentFileSize attribute.
      Parameters:
      attachmentFileSize - The attachmentFileSize to set.
    • getAttachmentFileSizeWithUnits

      public String getAttachmentFileSizeWithUnits()
      Returns the size of the attachment with units (byte, kilobyte, ...)
      Returns:
      String attachment file size
    • getAttachmentTypeCode

      public String getAttachmentTypeCode()
      Gets the attachmentTypeCode attribute.
      Returns:
      Returns the attachmentTypeCode
    • setAttachmentTypeCode

      public void setAttachmentTypeCode(String attachmentTypeCode)
      Sets the attachmentTypeCode attribute.
      Parameters:
      attachmentTypeCode - The attachmentTypeCode to set.
    • getNote

      public Note getNote()
      Gets the note attribute.
      Returns:
      Returns the note.
    • setNote

      public void setNote(Note note)
      Sets the note attribute value.
      Parameters:
      note - The note to set.
    • isComplete

      public boolean isComplete()
      Returns:
      false if any of the required fields (attachmentId, fileName, fileSize, and mimeType) are blank
    • getAttachmentContents

      public InputStream getAttachmentContents() throws IOException
      Throws:
      IOException