Package org.kuali.rice.krad.bo
Class Attachment
java.lang.Object
org.kuali.rice.krad.bo.DataObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
org.kuali.rice.krad.bo.Attachment
- All Implemented Interfaces:
Serializable,GloballyUnique,Versioned
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
extension, newCollectionRecordFields inherited from class org.kuali.rice.krad.bo.DataObjectBase
objectId, versionNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the attachmentFileName attribute.Gets the attachmentFileSize attribute.Returns the size of the attachment with units (byte, kilobyte, ...)Gets the attachmentIdentifier attribute.Gets the attachmentMimeTypeCode attribute.Gets the attachmentTypeCode attribute.getNote()Gets the note attribute.Gets the noteIdentifier attribute.booleanvoidsetAttachmentFileName(String attachmentFileName) Sets the attachmentFileName attribute.voidsetAttachmentFileSize(Long attachmentFileSize) Sets the attachmentFileSize attribute.voidsetAttachmentIdentifier(String attachmentIdentifier) Sets the attachmentIdentifier attribute.voidsetAttachmentMimeTypeCode(String attachmentMimeTypeCode) Sets the attachmentMimeTypeCode attribute.voidsetAttachmentTypeCode(String attachmentTypeCode) Sets the attachmentTypeCode attribute.voidSets the note attribute value.voidsetNoteIdentifier(Long noteIdentifier) Sets the noteIdentifier attribute.Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecordMethods inherited from class org.kuali.rice.krad.bo.DataObjectBase
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toString
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
getNoteIdentifier
Gets the noteIdentifier attribute.- Returns:
- Returns the noteIdentifier
-
setNoteIdentifier
Sets the noteIdentifier attribute.- Parameters:
noteIdentifier- The noteIdentifier to set.
-
getAttachmentMimeTypeCode
Gets the attachmentMimeTypeCode attribute.- Returns:
- Returns the attachmentMimeTypeCode
-
setAttachmentMimeTypeCode
Sets the attachmentMimeTypeCode attribute.- Parameters:
attachmentMimeTypeCode- The attachmentMimeTypeCode to set.
-
getAttachmentFileName
Gets the attachmentFileName attribute.- Returns:
- Returns the attachmentFileName
-
setAttachmentFileName
Sets the attachmentFileName attribute.- Parameters:
attachmentFileName- The attachmentFileName to set.
-
getAttachmentIdentifier
Gets the attachmentIdentifier attribute.- Returns:
- Returns the attachmentIdentifier
-
setAttachmentIdentifier
Sets the attachmentIdentifier attribute.- Parameters:
attachmentIdentifier- The attachmentIdentifier to set.
-
getAttachmentFileSize
Gets the attachmentFileSize attribute.- Returns:
- Returns the attachmentFileSize
-
setAttachmentFileSize
Sets the attachmentFileSize attribute.- Parameters:
attachmentFileSize- The attachmentFileSize to set.
-
getAttachmentFileSizeWithUnits
Returns the size of the attachment with units (byte, kilobyte, ...)- Returns:
- String attachment file size
-
getAttachmentTypeCode
Gets the attachmentTypeCode attribute.- Returns:
- Returns the attachmentTypeCode
-
setAttachmentTypeCode
Sets the attachmentTypeCode attribute.- Parameters:
attachmentTypeCode- The attachmentTypeCode to set.
-
getNote
Gets the note attribute.- Returns:
- Returns the note.
-
setNote
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
- Throws:
IOException
-