public class AttachmentSample extends PersistableBusinessObjectBase implements PersistableAttachment, PersistableAttachmentList<MultiAttachmentSample>
extension, newCollectionRecord, objectId, versionNumber
Constructor and Description |
---|
AttachmentSample() |
Modifier and Type | Method and Description |
---|---|
List |
buildListOfDeletionAwareLists()
If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly.
|
byte[] |
getAttachmentContent() |
org.apache.struts.upload.FormFile |
getAttachmentFile() |
List<MultiAttachmentSample> |
getAttachments() |
String |
getContentType() |
String |
getDescription() |
String |
getFileName() |
String |
getId() |
void |
setAttachmentContent(byte[] attachmentContent) |
void |
setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile) |
void |
setAttachments(List<MultiAttachmentSample> attachments) |
void |
setContentType(String contentType) |
void |
setDescription(String description) |
void |
setFileName(String fileName) |
void |
setId(String id) |
protected LinkedHashMap |
toStringMapper() |
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
public AttachmentSample()
public String getDescription()
public void setDescription(String description)
public String getFileName()
getFileName
in interface PersistableAttachment
public void setFileName(String fileName)
setFileName
in interface PersistableAttachment
public String getContentType()
getContentType
in interface PersistableAttachment
public void setContentType(String contentType)
setContentType
in interface PersistableAttachment
public byte[] getAttachmentContent()
getAttachmentContent
in interface PersistableAttachment
public void setAttachmentContent(byte[] attachmentContent)
setAttachmentContent
in interface PersistableAttachment
public org.apache.struts.upload.FormFile getAttachmentFile()
public void setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile)
public List<MultiAttachmentSample> getAttachments()
getAttachments
in interface PersistableAttachmentList<MultiAttachmentSample>
public void setAttachments(List<MultiAttachmentSample> attachments)
setAttachments
in interface PersistableAttachmentList<MultiAttachmentSample>
protected LinkedHashMap toStringMapper()
public List buildListOfDeletionAwareLists()
PersistableBusinessObject
buildListOfDeletionAwareLists
in interface PersistableBusinessObject
buildListOfDeletionAwareLists
in class PersistableBusinessObjectBase
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.