public class AgreementProtocolState
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.net.URI> |
getAcceptedCancellationProposalUris() |
org.apache.jena.rdf.model.Model |
getAgreement(java.net.URI agreementURI) |
AgreementProtocolUris |
getAgreementProtocolUris() |
org.apache.jena.query.Dataset |
getAgreements() |
java.util.Set<java.net.URI> |
getAgreementUris() |
java.util.Set<java.net.URI> |
getAgreementUrisCancelledByPendingProposal(java.net.URI proposalUri) |
java.util.Set<java.net.URI> |
getCancellationPendingAgreementUris() |
org.apache.jena.rdf.model.Model |
getCancelledAgreement(java.net.URI cancelledAgreementURI) |
org.apache.jena.query.Dataset |
getCancelledAgreements() |
java.util.Set<java.net.URI> |
getCancelledAreementUris() |
java.util.Set<java.net.URI> |
getClauseUrisProposedByPendingProposal(java.net.URI proposalUri) |
org.apache.jena.query.Dataset |
getConversationDataset() |
java.util.Set<MessageEffect> |
getEffects(java.net.URI messageUri)
Returns the set of effects (
MessageEffects) of the head of the delivery
chain that the specified message belongs to, or an empty set if no message is
found for that URI. |
java.net.URI |
getLatestAcceptsMessage() |
java.net.URI |
getLatestAcceptsMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestAgreement() |
java.net.URI |
getLatestAgreement(java.util.Optional<java.net.URI> senderNeedUri) |
java.net.URI |
getLatestMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestPendingProposal() |
java.net.URI |
getLatestPendingProposal(java.util.Optional<ProposalType> type) |
java.net.URI |
getLatestPendingProposal(java.util.Optional<ProposalType> type,
java.util.Optional<java.net.URI> senderNeedUri) |
java.net.URI |
getLatestPendingProposesMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestProposesMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestProposesToCancelMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestRejectsMessageSentByNeed(java.net.URI needUri) |
java.net.URI |
getLatestRetractsMessageSentByNeed(java.net.URI needUri) |
java.util.List<java.net.URI> |
getNLatestMessageUris(java.util.function.Predicate<ConversationMessage> filterPredicate,
int n)
Returns the n latest message uris filtered by the specified predicate, sorted descending by order (latest first).
|
java.net.URI |
getNthLatestMessage(java.util.function.Predicate<ConversationMessage> filterPredicate,
int n)
Returns the n-th latest message filtered by the specified predicate.
|
java.net.URI |
getNthLatestMessageSentByNeed(java.net.URI needUri,
int n) |
java.util.Set<java.net.URI> |
getPendingCancellationProposalUris() |
org.apache.jena.rdf.model.Model |
getPendingCancellations() |
org.apache.jena.rdf.model.Model |
getPendingProposal(java.net.URI proposalURI) |
org.apache.jena.query.Dataset |
getPendingProposals() |
java.util.Set<java.net.URI> |
getPendingProposalUris() |
org.apache.jena.rdf.model.Model |
getRejectedProposal(java.net.URI rejectedProposalURI) |
org.apache.jena.query.Dataset |
getRejectedProposals() |
java.util.Set<java.net.URI> |
getRejectedUris() |
java.util.Set<java.net.URI> |
getRetractedUris() |
java.util.Optional<java.lang.String> |
getTextMessage(java.net.URI messageUri)
Returns all text messages found in the head of the delivery chain of the specified message, concatenated by ', '.
|
boolean |
isAgreement(java.net.URI agreementUri) |
boolean |
isCancelledAgreement(java.net.URI agreementUri) |
boolean |
isPendingCancellation(java.net.URI proposalUri) |
boolean |
isPendingProposal(java.net.URI proposalUri) |
boolean |
isRejectedProposal(java.net.URI rejectedProposalUri) |
static AgreementProtocolState |
of(org.apache.jena.query.Dataset conversation) |
static AgreementProtocolState |
of(java.net.URI connectionURI,
LinkedDataSource linkedDataSource) |
public static AgreementProtocolState of(java.net.URI connectionURI, LinkedDataSource linkedDataSource)
public static AgreementProtocolState of(org.apache.jena.query.Dataset conversation)
public AgreementProtocolUris getAgreementProtocolUris()
public org.apache.jena.query.Dataset getConversationDataset()
public java.util.Set<MessageEffect> getEffects(java.net.URI messageUri)
MessageEffects) of the head of the delivery
chain that the specified message belongs to, or an empty set if no message is
found for that URI.messageUri - public org.apache.jena.query.Dataset getAgreements()
public org.apache.jena.rdf.model.Model getAgreement(java.net.URI agreementURI)
public boolean isAgreement(java.net.URI agreementUri)
public org.apache.jena.query.Dataset getPendingProposals()
public org.apache.jena.rdf.model.Model getPendingProposal(java.net.URI proposalURI)
public boolean isPendingProposal(java.net.URI proposalUri)
public java.util.Set<java.net.URI> getPendingProposalUris()
public java.util.Set<java.net.URI> getClauseUrisProposedByPendingProposal(java.net.URI proposalUri)
public java.util.Set<java.net.URI> getAgreementUrisCancelledByPendingProposal(java.net.URI proposalUri)
public java.util.Set<java.net.URI> getPendingCancellationProposalUris()
public org.apache.jena.query.Dataset getCancelledAgreements()
public org.apache.jena.rdf.model.Model getCancelledAgreement(java.net.URI cancelledAgreementURI)
public boolean isCancelledAgreement(java.net.URI agreementUri)
public org.apache.jena.query.Dataset getRejectedProposals()
public org.apache.jena.rdf.model.Model getRejectedProposal(java.net.URI rejectedProposalURI)
public boolean isRejectedProposal(java.net.URI rejectedProposalUri)
public org.apache.jena.rdf.model.Model getPendingCancellations()
public boolean isPendingCancellation(java.net.URI proposalUri)
public java.util.Set<java.net.URI> getAgreementUris()
public java.util.Set<java.net.URI> getCancelledAreementUris()
public java.util.Set<java.net.URI> getRetractedUris()
public java.util.Set<java.net.URI> getAcceptedCancellationProposalUris()
public java.util.Set<java.net.URI> getCancellationPendingAgreementUris()
public java.util.Set<java.net.URI> getRejectedUris()
public java.util.List<java.net.URI> getNLatestMessageUris(java.util.function.Predicate<ConversationMessage> filterPredicate, int n)
filterPredicate - n - use 0 for the latest message.public java.net.URI getNthLatestMessage(java.util.function.Predicate<ConversationMessage> filterPredicate, int n)
filterPredicate - n - use 0 for the latest message.public java.net.URI getLatestMessageSentByNeed(java.net.URI needUri)
public java.net.URI getNthLatestMessageSentByNeed(java.net.URI needUri,
int n)
public java.net.URI getLatestProposesMessageSentByNeed(java.net.URI needUri)
public java.net.URI getLatestPendingProposesMessageSentByNeed(java.net.URI needUri)
public java.net.URI getLatestAcceptsMessageSentByNeed(java.net.URI needUri)
public java.net.URI getLatestAgreement()
public java.net.URI getLatestAgreement(java.util.Optional<java.net.URI> senderNeedUri)
public java.net.URI getLatestAcceptsMessage()
public java.net.URI getLatestProposesToCancelMessageSentByNeed(java.net.URI needUri)
public java.net.URI getLatestPendingProposal()
public java.net.URI getLatestPendingProposal(java.util.Optional<ProposalType> type)
public java.net.URI getLatestPendingProposal(java.util.Optional<ProposalType> type, java.util.Optional<java.net.URI> senderNeedUri)
public java.net.URI getLatestRejectsMessageSentByNeed(java.net.URI needUri)
public java.net.URI getLatestRetractsMessageSentByNeed(java.net.URI needUri)
public java.util.Optional<java.lang.String> getTextMessage(java.net.URI messageUri)
messageUri - Copyright © 2018. All Rights Reserved.