class DarDistributionService extends AdminWorkflowService with DarDistribution with NamedLogging
- Alphabetic
- By Inheritance
- DarDistributionService
- NamedLogging
- DarDistribution
- AdminWorkflowService
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DarDistributionService(connection: LedgerSubmit, darValidation: (ByteString) => Either[String, Unit], adminParty: Party, darService: DarService, hashOps: HashOps, shareRequestStore: ShareRequestStore = new InMemoryShareRequestStore, shareOfferStore: ShareOfferStore = new InMemoryShareOfferStore, whitelistStore: WhitelistStore = new InMemoryWhitelistStore, isActive: => Boolean, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accept(shareId: ContractId[ShareDar])(implicit traceContext: TraceContext): Future[Either[AcceptRejectError, Unit]]
Accept a previously received share request
Accept a previously received share request
- Definition Classes
- DarDistributionService → DarDistribution
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- DarDistributionService → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listOffers(): Future[Seq[Contract[ShareDar]]]
List all pending offers to receive a DAR
List all pending offers to receive a DAR
- Definition Classes
- DarDistributionService → DarDistribution
- def listRequests(): Future[Seq[Contract[ShareDar]]]
List all pending requests to share a DAR with other participants
List all pending requests to share a DAR with other participants
- Definition Classes
- DarDistributionService → DarDistribution
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- DarDistributionService → NamedLogging
- implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def reject(shareId: ContractId[ShareDar], reason: String)(implicit traceContext: TraceContext): Future[Either[AcceptRejectError, Unit]]
Reject a previously received share request
Reject a previously received share request
- Definition Classes
- DarDistributionService → DarDistribution
- def share(hash: Hash, recipient: Party)(implicit traceContext: TraceContext): Future[Either[ShareError, Unit]]
Share a DAR identified by its hash to the given recipient party.
Share a DAR identified by its hash to the given recipient party.
- recipient
Recipient party to receive the share request. This only makes sense to the be a admin party of another participant but is not enforced.
- returns
Error or Unit
- Definition Classes
- DarDistributionService → DarDistribution
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def whitelistAdd(owner: Party): Future[Unit]
Whitelist a party so DARs are automatically installed without a manual approval of the offer
Whitelist a party so DARs are automatically installed without a manual approval of the offer
- Definition Classes
- DarDistributionService → DarDistribution
- def whitelistList(): Future[Seq[Party]]
List all currently whitelisted parties
List all currently whitelisted parties
- Definition Classes
- DarDistributionService → DarDistribution
- def whitelistRemove(owner: Party): Future[Unit]
Remove a party from the whitelist.
Remove a party from the whitelist. Will not error if the given party is not whitelisted.
- Definition Classes
- DarDistributionService → DarDistribution