public abstract class ProtocolAttachmentBase extends ProtocolAssociateBase implements TypedAttachment
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtocolAttachmentBase.PropertyName
Contains all the property names in this class.
|
UPDATE_USER_LENGTH| Constructor and Description |
|---|
ProtocolAttachmentBase()
empty ctor to satisfy JavaBean convention.
|
ProtocolAttachmentBase(ProtocolBase protocol)
Convenience ctor to set the protocol, protocol id and the protocolNumber from the passed in protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ProtocolAttachmentBase> |
addAttachmentToCollection(T attachment,
Collection<T> toCollection)
Adds an attachment to a Collection.
|
boolean |
equals(Object obj) |
static <T extends ProtocolAttachmentBase> |
filterExistingAttachments(Collection<T> attachments)
Returns a new collection containing only exiting attachments.
|
static <T extends ProtocolAttachmentBase> |
filterNewAttachments(Collection<T> attachments)
Returns a new collection containing only new attachments.
|
abstract String |
getAttachmentDescription()
A human readable description of the attachment type.
|
Integer |
getDocumentId()
Gets the Document Id.
|
AttachmentFile |
getFile()
Gets the ProtocolBase Attachment Base File.
|
Long |
getFileId()
Gets the file Id.
|
Long |
getId()
Gets the id.
|
org.apache.struts.upload.FormFile |
getNewFile()
Gets the ProtocolBase Attachment Base New File.
|
String |
getUpdateUserFullName()
Gets the updateUserFullName attribute.
|
int |
hashCode() |
boolean |
isNew()
Checks if an attachment is new (not persisted yet).
|
static <T extends ProtocolAttachmentBase> |
removeAttachmentFromCollection(T attachment,
Collection<T> fromCollection)
Adds an attachment to a Collection.
|
void |
resetPersistenceState()
This method resets the persistence state used to establish
whether this is a new entity or an already-persisted entity.
|
void |
setDocumentId(Integer documentId)
Sets the Document Id.
|
void |
setFile(AttachmentFile file)
Sets the ProtocolBase Attachment Base File.
|
void |
setFileId(Long fileId)
Sets the file Id.
|
void |
setId(Long id)
Sets the id.
|
void |
setNewFile(org.apache.struts.upload.FormFile newFile)
Sets the ProtocolBase Attachment Base New File.
|
void |
setUpdateUserFullName(String updateUserFullName)
Sets the updateUserFullName attribute value.
|
abstract boolean |
supportsVersioning()
Method to check whether an attachment supports versioning.
|
getProtocol, getProtocolId, getProtocolNumber, getSequenceNumber, getSequenceOwner, init, postInitHook, setProtocol, setProtocolId, setProtocolNumber, setSequenceNumber, setSequenceOwnergetAuthorPersonName, getKcPersonService, getUpdateTimestamp, getUpdateUser, isUpdateUserSet, postPersist, prePersist, preUpdate, setUpdateTimestamp, setUpdateUser, setUpdateUserSetafterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postRemove, postUpdate, preRemove, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getGroupCode, getType, getTypeCode, setDescription, setType, setTypeCodepublic ProtocolAttachmentBase()
public ProtocolAttachmentBase(ProtocolBase protocol)
This ctor does not validate any of the properties.
protocol - the protocol.public AttachmentFile getFile()
public void setFile(AttachmentFile file)
file - the ProtocolBase Attachment Base Filepublic org.apache.struts.upload.FormFile getNewFile()
public void setNewFile(org.apache.struts.upload.FormFile newFile)
newFile - the ProtocolBase Attachment Base New Filepublic Long getFileId()
public void setFileId(Long fileId)
fileId - the file Id.public abstract String getAttachmentDescription()
public void resetPersistenceState()
resetPersistenceState in interface Sequenceablepublic Long getId()
public void setId(Long id)
id - the idpublic static <T extends ProtocolAttachmentBase> void addAttachmentToCollection(T attachment, Collection<T> toCollection)
T - the type of attachmentattachment - the attachment.toCollection - the Collection.IllegalArgumentException - if the attachment or the list is null.public static <T extends ProtocolAttachmentBase> void removeAttachmentFromCollection(T attachment, Collection<T> fromCollection)
T - the type of attachmentattachment - the attachment.fromCollection - the Collection.IllegalArgumentException - if the attachment or the list is null.public boolean isNew()
public static <T extends ProtocolAttachmentBase> Collection<T> filterNewAttachments(Collection<T> attachments)
T - the type of attachments in the collection.attachments - the current collectionpublic static <T extends ProtocolAttachmentBase> Collection<T> filterExistingAttachments(Collection<T> attachments)
T - the type of attachments in the collection.attachments - the current collectionpublic abstract boolean supportsVersioning()
public int hashCode()
hashCode in class ProtocolAssociateBasepublic boolean equals(Object obj)
equals in class ProtocolAssociateBasepublic Integer getDocumentId()
TypedAttachmentgetDocumentId in interface TypedAttachmentpublic void setDocumentId(Integer documentId)
TypedAttachmentsetDocumentId in interface TypedAttachmentdocumentId - the Document IdTypedAttachment.getDocumentId()public String getUpdateUserFullName()
public void setUpdateUserFullName(String updateUserFullName)
updateUserFullName - The updateUserFullName to set.Copyright © 2013 The Kuali Foundation. All Rights Reserved.