new TransactionRegistry(id, name, securityContext, modelManager, factory, serializer)
Create an transaction registry.
Note: Only to be called by framework code. Applications should
retrieve instances from BusinessNetworkConnection
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the transaction registry. |
name |
string | The display name for the transaction registry. |
securityContext |
SecurityContext | The security context to use for this asset registry. |
modelManager |
ModelManager | The ModelManager to use for this transaction registry. |
factory |
Factory | The factory to use for this transaction registry. |
serializer |
Serializer | The Serializer to use for this transaction registry. |
- Source:
- See:
-
See Registry
Extends
Methods
-
<static> addTransactionRegistry(securityContext, id, name, modelManager, factory, serializer)
-
Add a new transaction registry.
Parameters:
Name Type Description securityContext
SecurityContext The user's security context.
id
string The unique identifier of the transaction registry.
name
string The name of the transaction registry.
modelManager
ModelManager The ModelManager to use for this transaction registry.
factory
Factory The factory to use for this transaction registry.
serializer
Serializer The Serializer to use for this transaction registry.
Returns:
A promise that will be resolved with a TransactionRegistry
instance representing the new transaction registry.- Type
- Promise
-
<static> getAllTransactionRegistries(securityContext, modelManager, factory, serializer)
-
Get a list of all existing transaction registries.
Parameters:
Name Type Description securityContext
SecurityContext The user's security context.
modelManager
ModelManager The ModelManager to use for this transaction registry.
factory
Factory The factory to use for this transaction registry.
serializer
Serializer The Serializer to use for this transaction registry.
Returns:
A promise that will be resolved with a list of TransactionRegistry
instances representing the transaction registries.- Type
- Promise
-
<static> getTransactionRegistry(securityContext, id, modelManager, factory, serializer)
-
Get an existing transaction registry.
Parameters:
Name Type Description securityContext
SecurityContext The user's security context.
id
string The unique identifier of the transaction registry.
modelManager
ModelManager The ModelManager to use for this transaction registry.
factory
Factory The factory to use for this transaction registry.
serializer
Serializer The Serializer to use for this transaction registry.
Returns:
A promise that will be resolved with a TransactionRegistry
instance representing the transaction registry.- Type
- Promise
-
exists(id)
-
Determine whether the specified resource exists in this registry.
Parameters:
Name Type Description id
string The ID of the resource.
- Inherited From:
- Source:
Returns:
A promise that will be resolved with a boolean
indicating whether the asset exists.- Type
- Promise
-
get(id)
-
Get the specified resource in this registry.
Parameters:
Name Type Description id
string The ID of the resource.
- Inherited From:
- Source:
Returns:
A promise that will be resolved with a Resource
object when complete, or rejected with an error.- Type
- Promise
-
getAll()
-
Get all the resources in this registry.
- Inherited From:
- Source:
Returns:
A promise that will be resolved with an array of {@link
Resource} objects when complete, or rejected with an error.- Type
- Promise
-
toJSON()
-
Return an object suitable for serialization.
- Inherited From:
- Source:
Returns:
An object suitable for serialization.
- Type
- Object