public class DigipostClient extends Object
Constructor and Description |
---|
DigipostClient(DigipostClientConfig config,
BrokerId brokerId,
Signer signer) |
DigipostClient(DigipostClientConfig config,
BrokerId brokerId,
Signer signer,
org.apache.http.impl.client.HttpClientBuilder clientBuilder) |
DigipostClient(DigipostClientConfig config,
MessageDeliveryApi apiService,
InboxApi inboxApiService,
DocumentApi documentApi) |
Modifier and Type | Method and Description |
---|---|
void |
addData(AddDataLink addDataLink,
AdditionalData data) |
OngoingDelivery.WithPrintFallback |
createMessage(Message message)
Oppretter en forsendelse for sending gjennom Digipost.
|
UserAccount |
createOrActivateUserAccount(SenderId senderId,
UserInformation user) |
OngoingDelivery.ForPrintOnly |
createPrintOnlyMessage(Message printMessage)
Opprette forsendelse som skal gå direkte til print og videre til utsending
gjennom vanlig postgang.
|
void |
deleteInboxDocument(InboxDocument inboxDocument)
Delets the given document from the server
|
Autocomplete |
getAutocompleteSuggestions(String searchString) |
InputStream |
getContent(String path) |
DocumentEvents |
getDocumentEvents(String organisation,
String partId,
ZonedDateTime from,
ZonedDateTime to,
int offset,
int maxResults) |
DocumentEvents |
getDocumentEvents(ZonedDateTime from,
ZonedDateTime to,
int offset,
int maxResults) |
DocumentStatus |
getDocumentStatus(Link linkToDocumentStatus) |
DocumentStatus |
getDocumentStatus(SenderId senderId,
UUID uuid) |
Inbox |
getInbox(SenderId senderId)
Get the first 100 documents in the inbox for the organisation represented by senderId.
|
Inbox |
getInbox(SenderId senderId,
int offset,
int limit)
Get documents from the inbox for the organisation represented by senderId.
|
InputStream |
getInboxDocumentContent(InboxDocument inboxDocument)
Get the content of a document as a stream.
|
SenderInformation |
getSenderInformation(SenderId senderId)
Hent informasjon om en gitt avsender.
|
SenderInformation |
getSenderInformation(String orgnr,
String avsenderenhet)
Hent informasjon om en gitt avsender.
|
IdentificationResult |
identifyRecipient(Identification identification) |
Recipients |
search(String searchString) |
public DigipostClient(DigipostClientConfig config, BrokerId brokerId, Signer signer)
public DigipostClient(DigipostClientConfig config, BrokerId brokerId, Signer signer, org.apache.http.impl.client.HttpClientBuilder clientBuilder)
public DigipostClient(DigipostClientConfig config, MessageDeliveryApi apiService, InboxApi inboxApiService, DocumentApi documentApi)
public OngoingDelivery.WithPrintFallback createMessage(Message message)
public OngoingDelivery.ForPrintOnly createPrintOnlyMessage(Message printMessage)
public IdentificationResult identifyRecipient(Identification identification)
public void addData(AddDataLink addDataLink, AdditionalData data)
public Recipients search(String searchString)
public Autocomplete getAutocompleteSuggestions(String searchString)
public DocumentEvents getDocumentEvents(ZonedDateTime from, ZonedDateTime to, int offset, int maxResults)
public DocumentEvents getDocumentEvents(String organisation, String partId, ZonedDateTime from, ZonedDateTime to, int offset, int maxResults)
public SenderInformation getSenderInformation(SenderId senderId)
senderId
- avsender-IDen til avsenderen du vil ha informasjon om.SenderInformation
public SenderInformation getSenderInformation(String orgnr, String avsenderenhet)
orgnr
- organisasjonsnummeret til avsenderen (påkrevet).avsenderenhet
- underenhet for gitt orgnr
, dersom
aktuelt, eller null
.SenderInformation
public DocumentStatus getDocumentStatus(Link linkToDocumentStatus)
public DocumentStatus getDocumentStatus(SenderId senderId, UUID uuid)
public InputStream getContent(String path)
public Inbox getInbox(SenderId senderId)
senderId
- Either an organisation that you operate on behalf of or your brokerIdpublic Inbox getInbox(SenderId senderId, int offset, int limit)
senderId
- 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 getInboxDocumentContent(InboxDocument inboxDocument)
inboxDocument
- The document to get content forpublic void deleteInboxDocument(InboxDocument inboxDocument)
inboxDocument
- The document to deletepublic UserAccount createOrActivateUserAccount(SenderId senderId, UserInformation user)
Copyright © 2019 Digipost. All rights reserved.