Package com.adobe.fd.fp.service
Interface PendingSignDataService
-
public interface PendingSignDataService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteAttachment(java.lang.String attachmentID)
To delete an attachmentboolean
deleteData(java.lang.String userDataID)
Deletes user data stored against the userDataIDbyte[]
getAttachment(java.lang.String attachmentID)
To get attachment bytesbyte[]
getData(java.lang.String userDataID)
Gets the user data stored against the ID passed as argumentjava.lang.String
saveAttachment(byte[] attachmentBytes)
Submits the attachment bytes passed as argumentjava.lang.String
saveData(byte[] data)
Save the user data provided as byte array.java.lang.String
updateData(java.lang.String userDataID, byte[] data)
Update the data blob for the provided user data ID if it is permissible
-
-
-
Method Detail
-
saveData
java.lang.String saveData(byte[] data) throws FormsPortalException
Save the user data provided as byte array. If id is null, it is treated as creation else it is treated as an update case- Parameters:
data
-- Returns:
- id corresponding to saved data
- Throws:
FormsPortalException
-
updateData
java.lang.String updateData(java.lang.String userDataID, byte[] data) throws FormsPortalException
Update the data blob for the provided user data ID if it is permissible- Parameters:
userDataID
-data
-- Returns:
- Throws:
FormsPortalException
-
getData
byte[] getData(java.lang.String userDataID) throws FormsPortalException
Gets the user data stored against the ID passed as argument- Parameters:
userDataID
- : unique id associated with this user data for this pending sign instance- Returns:
- user data associated with this pending sign instance
- Throws:
FormsPortalException
-
deleteData
boolean deleteData(java.lang.String userDataID) throws FormsPortalException
Deletes user data stored against the userDataID- Parameters:
userDataID
- : unique id associated with this user data for this pending sign instance- Returns:
- status of the delete operation on this pending sign instance
- Throws:
FormsPortalException
-
saveAttachment
java.lang.String saveAttachment(byte[] attachmentBytes) throws FormsPortalException
Submits the attachment bytes passed as argument- Parameters:
attachmentsBytes
- : would expect byte array of the attachment for this pending sign instance- Returns:
- attachmentID for the attachment just saved (so that it could be retrieved later)
- Throws:
FormsPortalException
-
deleteAttachment
boolean deleteAttachment(java.lang.String attachmentID) throws FormsPortalException
To delete an attachment- Parameters:
attachmentID
- : Unique id for this attachment- Returns:
- status of delete operation performed on attachment corresponding to this attachment ID
- Throws:
FormsPortalException
-
getAttachment
byte[] getAttachment(java.lang.String attachmentID) throws FormsPortalException
To get attachment bytes- Parameters:
attachmentID
- : unique id for this attachment- Returns:
- data corresponding to this attachmentID
- Throws:
FormsPortalException
-
-