Package com.appiancorp.suiteapi.process
Class AttachmentMediator
java.lang.Object
com.appiancorp.suiteapi.process.AttachmentMediator
- All Implemented Interfaces:
Serializable
Bean used to represent the Process/Task attachment. It is used to
communicate between UI and Java layers.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns whether the LocalObjectLocalObject
was attached at design time.Returns theusername
of userUser
who created the attachment.Returns the attached LocalObjectLocalObject
.Returns the LocalObjectLocalObject
that the attachment is attached to.Returns the NamedUrl ObjectAttachment.NamedUrl
representing an attached external url.Returns the comments added to the attachment.Returns the date when the attachment was created.Returns the display name for attachment.Returns a URLEncoded comments in accordance with UTF-8 encoding scheme.getId()
Returns the id of attachment.static AttachmentMediator
getMediatorFromAttachment
(Attachment attachment_) Returns the attachment permissionsAttachmentPermissions
Returns whether the attachment is a process attachment or not.getType()
Returns the string display of the typevoid
setAttachedAtDesignTime
(Boolean attachedAtDesignTime_) Sets whether the LocalObjectLocalObject
was attached at design time.void
setAttachedBy
(String attachedBy_) Sets theusername
of userUser
creating the attachment.void
setAttachedDocumentSubType
(String attachedDocumentSubType_) void
setAttachedObject
(LocalObject atachedObject_) Sets the LocalObjectLocalObject
.void
setAttachedTo
(LocalObject attachedTo_) Sets the LocalObjectLocalObject
that the attachment is attached to.void
setAttachedUrl
(Attachment.NamedUrl attachedUrl_) Sets the NamedUrl objectAttachment.NamedUrl
representing an external url.void
setComment
(String comment_) Sets the comments for the attachment been added.void
setDateAttached
(Timestamp dateAttached_) Sets the date of creation for attachmentvoid
setDisplayName
(String displayName_) Sets the display name for attachment.void
Sets the id of attachment.void
setPermissions
(AttachmentPermissions permissions_) Sets the attachment permissionsAttachmentPermissions
void
setProcessAttachment
(Boolean isProcessAttachment_) Sets whether the attachment is process attachment or not.void
Sets the string display of the type.
-
Constructor Details
-
AttachmentMediator
public AttachmentMediator()
-
-
Method Details
-
getType
Returns the string display of the type- Returns:
- the string display of the type.
-
setType
Sets the string display of the type.- Parameters:
type_
- the string display of the type.
-
getAttachedObject
Returns the attached LocalObjectLocalObject
.- Returns:
- attached
LocalObject
.
-
setAttachedObject
Sets the LocalObjectLocalObject
.- Parameters:
atachedObject_
-LocalObject
to set.
-
getAttachedAtDesignTime
Returns whether the LocalObjectLocalObject
was attached at design time.- Returns:
- true if
LocalObject
was attached at design time, else false.
-
setAttachedAtDesignTime
Sets whether the LocalObjectLocalObject
was attached at design time.- Parameters:
attachedAtDesignTime_
- true if attaching at design time, else false.
-
getAttachedBy
Returns theusername
of userUser
who created the attachment.- Returns:
username
.
-
setAttachedBy
Sets theusername
of userUser
creating the attachment.- Parameters:
attachedBy_
-username
ofuser
.
-
getAttachedDocumentSubType
- Returns:
document
extension
.
-
setAttachedDocumentSubType
- Parameters:
attachedDocumentSubType_
-extension
of document.
-
getAttachedTo
Returns the LocalObjectLocalObject
that the attachment is attached to.- Returns:
- AttachedTo
LocalObject
-
setAttachedTo
Sets the LocalObjectLocalObject
that the attachment is attached to.- Parameters:
attachedTo_
-LocalObject
-
getAttachedUrl
Returns the NamedUrl ObjectAttachment.NamedUrl
representing an attached external url.- Returns:
NamedUrl
representing external url.
-
setAttachedUrl
Sets the NamedUrl objectAttachment.NamedUrl
representing an external url.- Parameters:
attachedUrl_
-NamedUrl
Object to set.
-
getComment
Returns the comments added to the attachment.- Returns:
- attachment comments.
-
setComment
Sets the comments for the attachment been added.- Parameters:
comment_
- comments to set.
-
getDateAttached
Returns the date when the attachment was created.- Returns:
- Returns attachment creation date.
-
setDateAttached
Sets the date of creation for attachment- Parameters:
dateAttached_
- Creation date.
-
getDisplayName
Returns the display name for attachment.- Returns:
- the display name.
-
setDisplayName
Sets the display name for attachment.- Parameters:
displayName_
- display name to set.
-
getId
Returns the id of attachment.- Returns:
- Returns the attachment id.
-
setId
Sets the id of attachment.- Parameters:
id_
- attachment id to set.
-
getProcessAttachment
Returns whether the attachment is a process attachment or not.- Returns:
- true if the attachment is added to process else false.
-
setProcessAttachment
Sets whether the attachment is process attachment or not.- Parameters:
isProcessAttachment_
- true if attachment is process attachment, else false.
-
getPermissions
Returns the attachment permissionsAttachmentPermissions
- Returns:
- permissions for attachment
-
setPermissions
Sets the attachment permissionsAttachmentPermissions
- Parameters:
permissions_
- attachment permissions
-
getMediatorFromAttachment
- Parameters:
attachment_
-Attachment
to convert.- Returns:
AttachmentMediator
Object
-
getEncodedComment
Returns a URLEncoded comments in accordance with UTF-8 encoding scheme.- Returns:
- URLEncoded attachment comments
-