Package com.adobe.fd.fp.api.service
Interface PendingSignService
-
@ProviderType public interface PendingSignServiceInterface exposing the Pending Sign SPI's in Forms Portal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelPendingSign(java.lang.String pendingSignId)booleandeletePendingSign(java.lang.String pendingSignId)java.util.List<PendingSignModel>getAllPendingSign(Query query)Method returns the list of all pending sign models presentPendingSignModelgetPendingSign(java.lang.String pendingSignId)Method returns the pending sign model against the provided pendingSignIdPendingSignModelgetPendingSign(java.lang.String pendingSignId, Query query)Method returns the pending sign model against the provided pendingSignId and queryFileAttachmentWrappergetSignedDocument(java.lang.String pendingSignId)Returns the signed document from adobe sign serverjava.lang.StringsavePendingSign(PendingSignModel pendingSignModel)Saves thePendingSignModelinto the storagebooleanupdatePendingSign(java.lang.String pendingSignId, PendingSignModel pendingSignModel)Updates the pending sign against the provided pendingSignId.
-
-
-
Method Detail
-
getPendingSign
PendingSignModel getPendingSign(java.lang.String pendingSignId) throws FormsPortalException
Method returns the pending sign model against the provided pendingSignId- Parameters:
pendingSignId- pendingSignId against with pending sign model needs to be fetched- Returns:
PendingSignModelas per the provided pendingSignId- Throws:
FormsPortalException
-
getPendingSign
PendingSignModel getPendingSign(java.lang.String pendingSignId, Query query) throws FormsPortalException
Method returns the pending sign model against the provided pendingSignId and query- Parameters:
pendingSignId- pendingSignId against with pending sign model needs to be fetchedquery-Queryto define cut points, filtering etc- Returns:
PendingSignModelas per the provided pending sign model and query filter- Throws:
FormsPortalException
-
getAllPendingSign
java.util.List<PendingSignModel> getAllPendingSign(Query query) throws FormsPortalException
Method returns the list of all pending sign models present- Parameters:
query-Queryto define cut points, filtering etc- Returns:
- list of
PendingSignModel - Throws:
FormsPortalException
-
savePendingSign
java.lang.String savePendingSign(PendingSignModel pendingSignModel) throws FormsPortalException
Saves thePendingSignModelinto the storage- Parameters:
pendingSignModel-PendingSignModelto be persisted- Returns:
- uniqueID generated corresponding to the model. Can be re-used while fetching the same
- Throws:
FormsPortalException
-
updatePendingSign
boolean updatePendingSign(java.lang.String pendingSignId, PendingSignModel pendingSignModel) throws FormsPortalExceptionUpdates the pending sign against the provided pendingSignId. Whole pending sign model will be overridden by the one passed during method call- Parameters:
pendingSignId- pendingSignId whose model needs to be updatedpendingSignModel-PendingSignModelthe new pending sign model- Returns:
- True if update was successful, else false
- Throws:
FormsPortalException
-
deletePendingSign
boolean deletePendingSign(java.lang.String pendingSignId) throws FormsPortalException- Parameters:
pendingSignId- pendingSignId of the pending sign model that needs to be deleted- Returns:
- True if update was successful, else false
- Throws:
FormsPortalException
-
cancelPendingSign
boolean cancelPendingSign(java.lang.String pendingSignId) throws FormsPortalException- Parameters:
pendingSignId- pendingSignId of the pending sign model that needs to be cancelled- Returns:
- True if update was successful, else false
- Throws:
FormsPortalException
-
getSignedDocument
FileAttachmentWrapper getSignedDocument(java.lang.String pendingSignId) throws FormsPortalException
Returns the signed document from adobe sign server- Parameters:
pendingSignId- pendingSignId of the pending sign model whose document needs to be fetched- Returns:
- attachment
FileAttachmentWrapperthe signed document - Throws:
FormsPortalException
-
-