public class AttachmentProcessor
extends com.labvantage.sapphire.BaseAccessor
Constructor and Description |
---|
AttachmentProcessor(java.io.File rakFile,
java.lang.String connectionid)
Constructor for a client application with an existing connection
|
AttachmentProcessor(javax.servlet.jsp.PageContext pageContext)
Constructor for a client web application with a page Context and existing connectionid
|
AttachmentProcessor(java.lang.String connectionid)
Constructor for creating an accessor from components
|
AttachmentProcessor(java.lang.String nameserverlist,
java.lang.String connectionid)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
sapphire.attachment.Attachment |
addSDIAttachment(sapphire.attachment.Attachment attachment)
Method for adding an attachment to an SDI from an Attachment object
|
sapphire.attachment.Attachment |
addSDIAttachment(sapphire.attachment.Attachment attachment,
boolean applyLock,
boolean index,
java.lang.String attachmentPolicyNode)
Method for adding an attachment to an SDI from an Attachment object
|
int |
addSDIAttachment(java.util.HashMap properties,
byte[] data)
Method for adding an attachment to an SDI from an byte Array.
|
int |
addSDIAttachment(java.util.HashMap properties,
java.io.InputStream data)
Method for adding an attachment to an SDI from an input stream
|
int |
deleteSDIAttachment(sapphire.attachment.Attachment attachment)
Method for deleting an sdi attachment record.
|
int |
deleteSDIAttachment(sapphire.attachment.Attachment attachment,
boolean applyLock,
java.lang.String attachmentPolicyNode)
Method for deleting an sdi attachment record.
|
sapphire.attachment.Attachment |
editSDIAttachment(sapphire.attachment.Attachment attachment)
Method for updating an attachment to an SDI from an Attachment object
|
sapphire.attachment.Attachment |
editSDIAttachment(sapphire.attachment.Attachment attachment,
boolean applyLock,
boolean index,
java.lang.String attachmentPolicyNode)
Method for updating an attachment to an SDI from an Attachment object
|
int |
editSDIAttachment(java.util.HashMap properties,
byte[] data)
Method for updating an attachment to an SDI from an byte Array
Please note it is recommended to avoid using byte arrays and instead use the inputstream or attachment object
methods which are more efficient on memory.
|
int |
editSDIAttachment(java.util.HashMap properties,
java.io.InputStream data)
Method for adding an attachment to an SDI from an input stream
|
sapphire.attachment.Attachment |
getSDIAttachment(sapphire.attachment.Attachment attachment,
sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
Get an attachment record in the form of an Attachment object
|
sapphire.attachment.Attachment |
getSDIAttachment(sapphire.attachment.Attachment attachment,
int auditLog,
sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
Get an attachment record in the form of an Attachment object from the sdiattachment audit table
|
sapphire.attachment.Attachment |
getTempAttachment(sapphire.attachment.Attachment attachment,
sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
Get an attachment record in the form of an Attachment object to represent the temporary attachment
|
createRemoteAccessKey, getAttachmentManager, getAutomationManager, getConfigurationManager, getConnectionid, getErrorCodeList, getErrorCodeStack, getErrorHandler, getErrorStack, getErrorStack, getErrorString, getInfoErrorString, getLastError, getLastErrorCode, getLastErrorMessage, getLastException, getLocalAccessManager, getNameserverlist, getQueryManager, getRemoteAccessManager, getRequestManager, getStatusManager, getWebAdminManager, hasErrors, hasInfoErrors, parseServiceExceptionMsg, resetConnectionid, resetErrorStack, setConnectionDetails, setConnectionid, setError, setError, setErrorString, setInfoErrorString, setJNDIPrefix, setLocal, setLocalJNDIPrefix, setRakFile
public AttachmentProcessor(java.lang.String connectionid)
connectionid
- The connection to use for component callspublic AttachmentProcessor(java.lang.String nameserverlist, java.lang.String connectionid)
nameserverlist
- list of the application sever namesconnectionid
- A valid connectionidpublic AttachmentProcessor(java.io.File rakFile, java.lang.String connectionid)
rakFile
- A remote access key fileconnectionid
- A valid connectionidpublic AttachmentProcessor(javax.servlet.jsp.PageContext pageContext)
pageContext
- The current page contextpublic sapphire.attachment.Attachment getSDIAttachment(sapphire.attachment.Attachment attachment, sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
attachment
- The preloaded attachment object with sdcid, keyid1,2,3 and attachmentnum/attachmentclass set.thumbnailGeneration
- The Thumbnail Generation enumeration settingpublic sapphire.attachment.Attachment getSDIAttachment(sapphire.attachment.Attachment attachment, int auditLog, sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
attachment
- The preloaded attachment object with sdcid, keyid1,2,3 and attachmentnum/attachmentclass set.auditLog
- The audit log id so that the attachment can be fetched from the audit tablethumbnailGeneration
- The Thumbnail Generation enumeration settingpublic sapphire.attachment.Attachment getTempAttachment(sapphire.attachment.Attachment attachment, sapphire.attachment.Attachment.ThumbnailGeneration thumbnailGeneration)
attachment
- The preloaded attachment object with sdcid, keyid1,2,3 and attachmentnum/attachmentclass set.thumbnailGeneration
- The Thumbnail Generation enumeration settingpublic int deleteSDIAttachment(sapphire.attachment.Attachment attachment)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1 and attachmentnumpublic int deleteSDIAttachment(sapphire.attachment.Attachment attachment, boolean applyLock, java.lang.String attachmentPolicyNode)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1 and attachmentnumapplyLock
- Set to true to apply locking to the primary while deleting the attachmentattachmentPolicyNode
- The attachment policy node where the rules and settings are foundpublic sapphire.attachment.Attachment addSDIAttachment(sapphire.attachment.Attachment attachment)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1, attachmentnum and the file or datapublic sapphire.attachment.Attachment addSDIAttachment(sapphire.attachment.Attachment attachment, boolean applyLock, boolean index, java.lang.String attachmentPolicyNode)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1, attachmentnum and the file or dataapplyLock
- Set to true to apply locking to the primary while deleting the attachmentattachmentPolicyNode
- The attachment policy node where the rules and settings are foundpublic int addSDIAttachment(java.util.HashMap properties, java.io.InputStream data)
properties
- Hashmap of attachment properties for the additiondata
- The input stream for the datapublic int addSDIAttachment(java.util.HashMap properties, byte[] data)
properties
- Hashmap of attachment properties for the additiondata
- The file data in a byte arraypublic sapphire.attachment.Attachment editSDIAttachment(sapphire.attachment.Attachment attachment)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1, attachmentnum and the file or datapublic sapphire.attachment.Attachment editSDIAttachment(sapphire.attachment.Attachment attachment, boolean applyLock, boolean index, java.lang.String attachmentPolicyNode)
attachment
- The attachment object representing the attachment row which at a minimum needs sdcid, keyid1, attachmentnum and the file or dataapplyLock
- Set to true to apply locking to the primary while deleting the attachmentattachmentPolicyNode
- The attachment policy node where the rules and settings are foundpublic int editSDIAttachment(java.util.HashMap properties, byte[] data)
properties
- Hashmap of attachment properties for the additiondata
- The file data in a byte arraypublic int editSDIAttachment(java.util.HashMap properties, java.io.InputStream data)
properties
- Hashmap of attachment properties for the additiondata
- The input stream for the data