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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns whether the LocalObjectLocalObjectwas attached at design time.Returns theusernameof userUserwho created the attachment.Returns the attached LocalObjectLocalObject.Returns the LocalObjectLocalObjectthat the attachment is attached to.Returns the NamedUrl ObjectAttachment.NamedUrlrepresenting 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 AttachmentMediatorgetMediatorFromAttachment(Attachment attachment_) Returns the attachment permissionsAttachmentPermissionsReturns whether the attachment is a process attachment or not.getType()Returns the string display of the typevoidsetAttachedAtDesignTime(Boolean attachedAtDesignTime_) Sets whether the LocalObjectLocalObjectwas attached at design time.voidsetAttachedBy(String attachedBy_) Sets theusernameof userUsercreating the attachment.voidsetAttachedDocumentSubType(String attachedDocumentSubType_) voidsetAttachedObject(LocalObject atachedObject_) Sets the LocalObjectLocalObject.voidsetAttachedTo(LocalObject attachedTo_) Sets the LocalObjectLocalObjectthat the attachment is attached to.voidsetAttachedUrl(Attachment.NamedUrl attachedUrl_) Sets the NamedUrl objectAttachment.NamedUrlrepresenting an external url.voidsetComment(String comment_) Sets the comments for the attachment been added.voidsetDateAttached(Timestamp dateAttached_) Sets the date of creation for attachmentvoidsetDisplayName(String displayName_) Sets the display name for attachment.voidSets the id of attachment.voidsetPermissions(AttachmentPermissions permissions_) Sets the attachment permissionsAttachmentPermissionsvoidsetProcessAttachment(Boolean isProcessAttachment_) Sets whether the attachment is process attachment or not.voidSets 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_-LocalObjectto set.
-
getAttachedAtDesignTime
Returns whether the LocalObjectLocalObjectwas attached at design time.- Returns:
- true if
LocalObjectwas attached at design time, else false.
-
setAttachedAtDesignTime
Sets whether the LocalObjectLocalObjectwas attached at design time.- Parameters:
attachedAtDesignTime_- true if attaching at design time, else false.
-
getAttachedBy
Returns theusernameof userUserwho created the attachment.- Returns:
username.
-
setAttachedBy
Sets theusernameof userUsercreating the attachment.- Parameters:
attachedBy_-usernameofuser.
-
getAttachedDocumentSubType
- Returns:
documentextension.
-
setAttachedDocumentSubType
- Parameters:
attachedDocumentSubType_-extensionof document.
-
getAttachedTo
Returns the LocalObjectLocalObjectthat the attachment is attached to.- Returns:
- AttachedTo
LocalObject
-
setAttachedTo
Sets the LocalObjectLocalObjectthat the attachment is attached to.- Parameters:
attachedTo_-LocalObject
-
getAttachedUrl
Returns the NamedUrl ObjectAttachment.NamedUrlrepresenting an attached external url.- Returns:
NamedUrlrepresenting external url.
-
setAttachedUrl
Sets the NamedUrl objectAttachment.NamedUrlrepresenting an external url.- Parameters:
attachedUrl_-NamedUrlObject 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_-Attachmentto convert.- Returns:
AttachmentMediatorObject
-
getEncodedComment
Returns a URLEncoded comments in accordance with UTF-8 encoding scheme.- Returns:
- URLEncoded attachment comments
-