public class Attachment extends java.lang.Object implements XMLable, AppianTypeHolder
AttachmentMediator
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Attachment.NamedUrl |
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_ATTACHMENT |
static int |
NO_PERMISSION |
static java.lang.Integer |
SORT_BY_ATTACHED_BY
Constant representing sorting by Attachment AttachedBy field
|
static java.lang.Integer |
SORT_BY_COMMENT
Constant representing sorting by Attachment comment field
|
static java.lang.Integer |
SORT_BY_DATE_ATTACHED
Constant representing sorting by Attachment DateAttached field
|
static int |
VALID |
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
void |
fillInAppianTypes(AppianTypeCache cache_)
If the implementing class references any Appian-typed objects (such as
User, Group, Folder), this method should be implemented to put the
primary keys of these objects in the given cache.
|
java.lang.String |
getAttachedBy()
Returns the username of user creating the attachment.
|
java.lang.String |
getAttachedDocumentSubType()
Returns the extension of attached document in case of document
attachment.
|
LocalObject |
getAttachedObject()
Returns the LocalObject used as attachment.
|
LocalObject |
getAttachedTo()
Returns the LocalObject that the attachment is attached to.
|
java.lang.Long |
getAttachedToGuiId() |
Attachment.NamedUrl |
getAttachedUrl()
Returns the NamedUrl representing an external url attachment.
|
java.lang.String |
getComment()
Returns the comments for the attachment.
|
java.sql.Timestamp |
getDateAttached()
Returns the timestamp for attachment creation.
|
java.lang.String |
getEncodedComment()
Returns a URLEncoded comments in accordance with UTF-8 encoding scheme.
|
java.lang.Long |
getId()
Returns the Id of attachment
|
AttachmentPermissions |
getPermissions()
Returns the permissions for attachment
|
void |
setAttachedBy(java.lang.String attachedBy_)
Sets the username of user creating the attachment.
|
void |
setAttachedDocumentSubType(java.lang.String attachedDocumentSubType_)
Sets the extension of document in case of document attachment.
|
void |
setAttachedObject(LocalObject attachedObject_)
Sets the LocalObject used as attachment.
|
void |
setAttachedTo(LocalObject attachedTo_)
Sets the LocalObject that the attachment is attached.
|
void |
setAttachedToGuiId(java.lang.Long attachedToGuiId_) |
void |
setAttachedUrl(Attachment.NamedUrl attachedUrl_)
Sets the NamedUrl Object representing an external url attachment.
|
void |
setComment(java.lang.String comment_)
Sets the comments for attachment
|
void |
setDateAttached(java.sql.Timestamp dateAttached_)
Sets the attachment creation Timestamp.
|
void |
setId(java.lang.Long id_)
Sets the attachment Id.
|
void |
setPermissions(AttachmentPermissions permissions_)
Sets the attachment permissions
|
java.lang.String |
toXML()
converts the process model to xml as a string
|
void |
toXML(java.lang.StringBuilder buffer_)
Appends an XML representation of this model to the given buffer.
|
public static final java.lang.Integer SORT_BY_DATE_ATTACHED
public static final java.lang.Integer SORT_BY_ATTACHED_BY
public static final java.lang.Integer SORT_BY_COMMENT
public static final int NO_PERMISSION
public static final int INVALID_ATTACHMENT
public static final int VALID
public java.lang.String getAttachedBy()
public void toXML(java.lang.StringBuilder buffer_)
public void fillInAppianTypes(AppianTypeCache cache_)
AppianTypeHolder
fillInAppianTypes
in interface AppianTypeHolder
cache_
- cache of Appian-typed objects.public java.lang.String toXML()
public void setAttachedBy(java.lang.String attachedBy_)
attachedBy_
- username to set.public LocalObject getAttachedObject()
public void setAttachedObject(LocalObject attachedObject_)
attachedObject_
- LocalObject.public LocalObject getAttachedTo()
public void setAttachedTo(LocalObject attachedTo_)
attachedTo_
- attachedTo LocalObjectpublic java.lang.Long getAttachedToGuiId()
public void setAttachedToGuiId(java.lang.Long attachedToGuiId_)
attachedToGuiId_
- The attachedToGuiId to set.public Attachment.NamedUrl getAttachedUrl()
public void setAttachedUrl(Attachment.NamedUrl attachedUrl_)
attachedUrl_
- NamedUrl Object representing an external url.public java.lang.String getComment()
public void setComment(java.lang.String comment_)
comment_
- Comments to set.public java.sql.Timestamp getDateAttached()
public void setDateAttached(java.sql.Timestamp dateAttached_)
dateAttached_
- Timestamp to set.public java.lang.Long getId()
public void setId(java.lang.Long id_)
id_
- attachment id to set.public AttachmentPermissions getPermissions()
public void setPermissions(AttachmentPermissions permissions_)
permissions_
- attachment permissions to set.public java.lang.String getAttachedDocumentSubType()
public void setAttachedDocumentSubType(java.lang.String attachedDocumentSubType_)
attachedDocumentSubType_
- extension of document.public java.lang.String getEncodedComment()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.