Class: ServiceAction

ServiceAction

This is an base class that represents an action on a fabric service.

new ServiceAction()

Construct a ServiceAction base object.
Returns:
The ServiceAction instance.
Type
ServiceAction

Methods


<abstract> build()

build an action that will require a signature and then be sent to the service.

getSignedEnvelope()

return a signed envelope from the signature and the payload as bytes This method is not intended for use by an application. It will be used by the send method of the super class.
Returns:
An object with the signature and the payload bytes
Type
object

getSignedProposal()

return a signed proposal from the signature and the payload as bytes This method is not intended for use by an application. It will be used by the send method of the super class.
Returns:
An object with the signature and the payload bytes
Type
object

<abstract> send()


sign(param)

Use this method with an IdentityContext that contains a User that has a Signing Identity. OR Use this method with a byte[] to set the signature when the application has done the signed externally. Use the results of the build as the bytes that will be signed.
Parameters:
Name Type Description
param IdentityContext | Array.<byte> When 'param' is a IdentityContext the signing identity of the user will sign the current build bytes. When the 'param' is a byte[], the bytes will be used as the final commit signature.

<abstract> toString()