public class ApiServiceImpl extends Object implements MessageDeliveryApi, InboxApi, DocumentApi
| Constructor and Description |
|---|
ApiServiceImpl(DigipostClientConfig config,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder,
BrokerId brokerId,
Signer signer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.CloseableHttpResponse |
addData(AddDataLink addDataLink,
AdditionalData data)
Legger til ytterligere data til et dokument.
|
UserAccount |
createOrActivateUserAccount(SenderId senderId,
UserInformation user) |
void |
deleteInboxDocument(InboxDocument inboxDocument)
Delets the given document from the server
|
InputStream |
getDocumentContent(String path)
Retrieve the content of a document.
|
DocumentEvents |
getDocumentEvents(String organisation,
String partId,
ZonedDateTime from,
ZonedDateTime to,
int offset,
int maxResults)
Henter hendelser knyttet til tidligere sendte brev.
|
DocumentStatus |
getDocumentStatus(Link linkToDocumentStatus)
Henter status på dokumeter som tidligere blitt sendt i Digipost, både via digital og print-kanal.
|
DocumentStatus |
getDocumentStatus(SenderId senderId,
UUID uuid)
Henter status på dokumeter som tidligere blitt sendt i Digipost, både via digital og print-kanal.
|
org.apache.http.client.methods.CloseableHttpResponse |
getEncryptionKey(URI location) |
org.apache.http.client.methods.CloseableHttpResponse |
getEncryptionKeyForPrint()
Henter public krypteringsnøkkel for forsendelser som skal sendes til print.
|
EntryPoint |
getEntryPoint() |
Inbox |
getInbox(SenderId senderId,
int offset,
int limit)
Get documents from the inbox for the organisation represented by senderId.
|
InputStream |
getInboxDocumentContentStream(InboxDocument inboxDocument)
Get the content of a document as a stream.
|
SenderInformation |
getSenderInformation(MayHaveSender mayHaveSender)
Henter informasjon om en faktisk avsender av en melding, altså
det mottaker ser som avsender.
|
SenderInformation |
getSenderInformation(SenderId senderId)
Henter informasjon om en avsender.
|
SenderInformation |
getSenderInformation(String orgnr,
String avsenderenhet)
Henter informasjon om en avsender.
|
org.apache.http.client.methods.CloseableHttpResponse |
identifyAndGetEncryptionKey(Identification identification)
Sjekker hvis spesifisert mottaker er Digipost-bruker.
|
org.apache.http.client.methods.CloseableHttpResponse |
identifyRecipient(Identification identification) |
Recipients |
search(String searchString) |
Autocomplete |
searchSuggest(String searchString) |
org.apache.http.client.methods.CloseableHttpResponse |
sendMultipartMessage(org.apache.http.HttpEntity multipart)
Oppretter og sender en multipartforsendelse
|
public ApiServiceImpl(DigipostClientConfig config, org.apache.http.impl.client.HttpClientBuilder httpClientBuilder, BrokerId brokerId, Signer signer)
public EntryPoint getEntryPoint()
public org.apache.http.client.methods.CloseableHttpResponse sendMultipartMessage(org.apache.http.HttpEntity multipart)
MessageDeliveryApisendMultipartMessage in interface MessageDeliveryApipublic org.apache.http.client.methods.CloseableHttpResponse identifyAndGetEncryptionKey(Identification identification)
MessageDeliveryApiidentifyAndGetEncryptionKey in interface MessageDeliveryApipublic org.apache.http.client.methods.CloseableHttpResponse getEncryptionKey(URI location)
getEncryptionKey in interface MessageDeliveryApipublic org.apache.http.client.methods.CloseableHttpResponse getEncryptionKeyForPrint()
MessageDeliveryApigetEncryptionKeyForPrint in interface MessageDeliveryApipublic org.apache.http.client.methods.CloseableHttpResponse addData(AddDataLink addDataLink, AdditionalData data)
MessageDeliveryApiaddData in interface MessageDeliveryApipublic DocumentEvents getDocumentEvents(String organisation, String partId, ZonedDateTime from, ZonedDateTime to, int offset, int maxResults)
DocumentApigetDocumentEvents in interface DocumentApiorganisation - OrganisasjonsnummerpartId - Frivillig organisasjons-enhet, kan være nullpublic DocumentStatus getDocumentStatus(Link linkToDocumentStatus)
DocumentApigetDocumentStatus in interface DocumentApipublic DocumentStatus getDocumentStatus(SenderId senderId, UUID uuid)
DocumentApigetDocumentStatus in interface DocumentApipublic InputStream getDocumentContent(String path)
DocumentApigetDocumentContent in interface DocumentApipath - the path to the document resourcepublic Recipients search(String searchString)
search in interface MessageDeliveryApipublic Autocomplete searchSuggest(String searchString)
searchSuggest in interface MessageDeliveryApipublic org.apache.http.client.methods.CloseableHttpResponse identifyRecipient(Identification identification)
identifyRecipient in interface MessageDeliveryApipublic SenderInformation getSenderInformation(SenderId senderId)
MessageDeliveryApigetSenderInformation in interface MessageDeliveryApisenderId - id-en til avsenderen.public SenderInformation getSenderInformation(String orgnr, String avsenderenhet)
MessageDeliveryApigetSenderInformation in interface MessageDeliveryApiorgnr - organisasjonsnummeret til avsenderen.avsenderenhet - underenhet for et organisasjonsnummer.public SenderInformation getSenderInformation(MayHaveSender mayHaveSender)
MessageDeliveryApigetSenderInformation in interface MessageDeliveryApimayHaveSender - melding som skal sendes.public Inbox getInbox(SenderId senderId, int offset, int limit)
InboxApigetInbox in interface InboxApisenderId - Either an organisation that you operate on behalf of or your brokerIdoffset - Number of documents to skip. For paginationlimit - Maximum number of documents to retrieve (max 1000)public InputStream getInboxDocumentContentStream(InboxDocument inboxDocument)
InboxApigetInboxDocumentContentStream in interface InboxApiinboxDocument - The document to get content forpublic void deleteInboxDocument(InboxDocument inboxDocument)
InboxApideleteInboxDocument in interface InboxApiinboxDocument - The document to deletepublic UserAccount createOrActivateUserAccount(SenderId senderId, UserInformation user)
createOrActivateUserAccount in interface MessageDeliveryApiCopyright © 2019 Digipost. All rights reserved.