public class AttachmentMediator
extends java.lang.Object
implements java.io.Serializable
Attachment
,
Serialized FormConstructor and Description |
---|
AttachmentMediator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAttachedAtDesignTime()
Returns whether the LocalObject
LocalObject was attached at
design time. |
java.lang.String |
getAttachedBy()
Returns the
username of user
User
who created the attachment. |
java.lang.String |
getAttachedDocumentSubType()
|
LocalObject |
getAttachedObject()
Returns the attached LocalObject
LocalObject . |
LocalObject |
getAttachedTo()
Returns the LocalObject
LocalObject that the attachment is
attached to. |
Attachment.NamedUrl |
getAttachedUrl()
Returns the NamedUrl Object
Attachment.NamedUrl representing
an attached external url. |
java.lang.String |
getComment()
Returns the comments added to the attachment.
|
java.sql.Timestamp |
getDateAttached()
Returns the date when the attachment was created.
|
java.lang.String |
getDisplayName()
Returns the display name for attachment.
|
java.lang.String |
getEncodedComment()
Returns a URLEncoded comments in accordance with UTF-8 encoding scheme.
|
java.lang.Long |
getId()
Returns the id of attachment.
|
static AttachmentMediator |
getMediatorFromAttachment(Attachment attachment_)
|
AttachmentPermissions |
getPermissions()
Returns the attachment permissions
AttachmentPermissions |
java.lang.Boolean |
getProcessAttachment()
Returns whether the attachment is a process attachment or not.
|
java.lang.String |
getType()
Returns the string display of the type
|
void |
setAttachedAtDesignTime(java.lang.Boolean attachedAtDesignTime_)
Sets whether the LocalObject
LocalObject was attached at
design time. |
void |
setAttachedBy(java.lang.String attachedBy_)
Sets the
username of user
User
creating the attachment. |
void |
setAttachedDocumentSubType(java.lang.String attachedDocumentSubType_)
|
void |
setAttachedObject(LocalObject atachedObject_)
Sets the LocalObject
LocalObject . |
void |
setAttachedTo(LocalObject attachedTo_)
Sets the LocalObject
LocalObject that the attachment is attached to. |
void |
setAttachedUrl(Attachment.NamedUrl attachedUrl_)
Sets the NamedUrl object
Attachment.NamedUrl representing an
external url. |
void |
setComment(java.lang.String comment_)
Sets the comments for the attachment been added.
|
void |
setDateAttached(java.sql.Timestamp dateAttached_)
Sets the date of creation for attachment
|
void |
setDisplayName(java.lang.String displayName_)
Sets the display name for attachment.
|
void |
setId(java.lang.Long id_)
Sets the id of attachment.
|
void |
setPermissions(AttachmentPermissions permissions_)
Sets the attachment permissions
AttachmentPermissions |
void |
setProcessAttachment(java.lang.Boolean isProcessAttachment_)
Sets whether the attachment is process attachment or not.
|
void |
setType(java.lang.String type_)
Sets the string display of the type.
|
public java.lang.String getType()
public void setType(java.lang.String type_)
type_
- the string display of the type.public LocalObject getAttachedObject()
LocalObject
.LocalObject
.public void setAttachedObject(LocalObject atachedObject_)
LocalObject
.atachedObject_
- LocalObject
to set.public java.lang.Boolean getAttachedAtDesignTime()
LocalObject
was attached at
design time.LocalObject
was attached at design time,
else false.public void setAttachedAtDesignTime(java.lang.Boolean attachedAtDesignTime_)
LocalObject
was attached at
design time.attachedAtDesignTime_
- true if attaching at design time, else false.public java.lang.String getAttachedBy()
username
of user
User
who created the attachment.username
.public void setAttachedBy(java.lang.String attachedBy_)
username
of user
User
creating the attachment.attachedBy_
- username
of user
.public java.lang.String getAttachedDocumentSubType()
document
extension
.public void setAttachedDocumentSubType(java.lang.String attachedDocumentSubType_)
attachedDocumentSubType_
- extension
of document.public LocalObject getAttachedTo()
LocalObject
that the attachment is
attached to.LocalObject
public void setAttachedTo(LocalObject attachedTo_)
LocalObject
that the attachment is attached to.attachedTo_
- LocalObject
public Attachment.NamedUrl getAttachedUrl()
Attachment.NamedUrl
representing
an attached external url.NamedUrl
representing external url.public void setAttachedUrl(Attachment.NamedUrl attachedUrl_)
Attachment.NamedUrl
representing an
external url.attachedUrl_
- NamedUrl
Object to set.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_
- Creation date.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName_)
displayName_
- display name to set.public java.lang.Long getId()
public void setId(java.lang.Long id_)
id_
- attachment id to set.public java.lang.Boolean getProcessAttachment()
public void setProcessAttachment(java.lang.Boolean isProcessAttachment_)
isProcessAttachment_
- true if attachment is process attachment, else
false.public AttachmentPermissions getPermissions()
AttachmentPermissions
public void setPermissions(AttachmentPermissions permissions_)
AttachmentPermissions
permissions_
- attachment permissionspublic static AttachmentMediator getMediatorFromAttachment(Attachment attachment_)
attachment_
- Attachment
to convert.AttachmentMediator
Objectpublic java.lang.String getEncodedComment()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.