public final class AccessPointClient extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
configureParticipantEmail(List<EmailDTO> emailDTOs)
Configure participant email.
|
static boolean |
configureParticipantEmail(List<EmailDTO> emailDTOs,
String userName,
String password)
Configure participant email.
|
static boolean |
createUser(UserDTO userCreationDTO)
Creates the user.
|
static boolean |
createUser(UserDTO userCreationDTO,
String userName,
String password)
Creates the user.
|
static AccesspointDetails |
getAccesspointDetails(String participantId)
Get the access point details
|
static AccesspointDetails |
getAccesspointDetails(String participantId,
String userName,
String password)
Get the access point details
|
static List<ReceiptDTO> |
getAllNewReceipts() |
static List<ReceiptDTO> |
getAllNewReceipts(String userName,
String password)
Get the recetly received receipt from the message reference
|
static AccesspointDetails |
getEHFV3CreditNoteEndPoint(String participantId)
Get the access point details if EHFV3 CreditNote is enabled
|
static AccesspointDetails |
getEHFV3CreditNoteEndPoint(String participantId,
String userName,
String password)
Get the access point details if EHFV3 CreditNote is enabled
|
static AccesspointDetails |
getEHFV3InvoiceEndPoint(String participantId)
Get the access point details if EHFV3 Invoice is enabled
|
static AccesspointDetails |
getEHFV3InvoiceEndPoint(String participantId,
String userName,
String password)
Get the access point details if EHFV3 Invoice is enabled
|
static AccesspointDetails |
getEHFV3OrderEndPoint(String participantId,
String userName,
String password)
Get the access point details if EHFV3 Order is enabled
|
static AccesspointDetails |
getEHFV3OrderResponseEndPoint(String participantId,
String userName,
String password)
Get the access point details if EHFV3 order response is enabled
|
static ReceiptDTO |
getLastReceipt(String messageReference) |
static ReceiptDTO |
getLastReceipt(String messageReference,
String userName,
String password)
Get the recetly received receipt from the message reference
|
static MessageDTO |
getMessage(String messageId)
Get Message
|
static MessageDTO |
getMessage(String messageId,
String userName,
String password)
Get Message
|
static MessageIdListDTO |
getMessageId(Date syncDate)
Get Message Id
|
static MessageIdListDTO |
getMessageId(Date syncDate,
String userName,
String password)
Get Message Id
|
static MessageIdListDTO |
getMessageId(String participant)
Get Message Id
|
static MessageIdListDTO |
getMessageId(String participant,
String userName,
String password)
Get Message Id
|
static String[] |
getParticipantEmail(String participantId)
Get participant email.
|
static String[] |
getParticipantEmail(String participantId,
String userName,
String password)
Configure participant email.
|
static List<ReceiptDTO> |
getReceipt(String messageReference) |
static List<ReceiptDTO> |
getReceipt(String messageReference,
String userName,
String password)
Get receipts
|
static MessageIdListDTO |
getUnReadMessageIdForWeb()
Get un Read Message Id for Web
|
static MessageIdListDTO |
getUnReadMessageIdForWeb(String userName,
String password)
Get un Read Message Id for Web
|
static MessageIdListDTO |
getUnReadMessageIdOfOrder(String participentId)
Get un Read Message Id for Web
|
static MessageIdListDTO |
getUnReadMessageIdOfOrder(String userName,
String password,
String participentId)
Get un Read Message Id for Web
|
static MessageIdListDTO |
getUnReadMessageIdOfOrderResponse(String participentId)
Get un Read Message Id for Web
|
static MessageIdListDTO |
getUnReadMessageIdOfOrderResponse(String userName,
String password,
String participentId)
Get un Read Message Id for Web
|
static boolean |
isParticipantEHFV3Enabled(String participantId)
Return true if EHFV3 Invoice is enabled
|
static boolean |
isParticipantEHFV3Enabled(String participantId,
String userName,
String password)
Return true if EHFV3 Invoice is enabled
|
static boolean |
isValidParticipant(String participant)
Deprecated.
|
static boolean |
isValidParticipant(String participant,
EHFCustomizationID customizationID)
Checks if is valid participant against the customizationID.
|
static boolean |
isValidParticipant(String participant,
String userName,
String password)
Deprecated.
|
static boolean |
isValidParticipant(String participant,
String userName,
String password,
EHFCustomizationID customizationID)
Validates the participant for given profile ID
|
static boolean |
markAsRead(List<String> messageIds)
Mark as read.
|
static boolean |
markAsRead(List<String> messageIds,
String userName,
String password)
Mark message as read.
|
static boolean |
markAsReadFromWeb(List<String> messageIds)
Mark as read from web.
|
static boolean |
markAsReadFromWeb(List<String> messageIds,
String userName,
String password)
Mark message as read from web.
|
static boolean |
markReceiptAsRead(List<String> receiptIds)
Mark receipt as read.
|
static boolean |
markReceiptAsRead(List<String> receiptIds,
String userName,
String password)
Mark receipt as read.
|
static MessageListDTO |
receiveInvoice(Date syncDate)
Deprecated.
|
static MessageListDTO |
receiveInvoice(Date syncDate,
String userName,
String password)
Deprecated.
|
static MessageListDTO |
receiveInvoice(String participant)
Deprecated.
|
static MessageListDTO |
receiveInvoice(String participant,
String userName,
String password)
Deprecated.
|
static boolean |
removeMessage(MessageRemoverDTO msgRemoverDTO)
Removes the message.
|
static boolean |
removeMessage(MessageRemoverDTO msgRemoverDTO,
String userName,
String password)
Removes the message of a participant.
|
static String |
sendEHFV3Order(DocumentDTO documentDTO)
Send order.
|
static String |
sendEHFV3Order(DocumentDTO documentDTO,
String userName,
String password)
Send order.
|
static String |
sendEHFV3OrderResponse(DocumentDTO documentDTO) |
static String |
sendEHFV3OrderResponse(DocumentDTO documentDTO,
String userName,
String password) |
static String |
sendInvoice(DocumentDTO documentDTO)
Deprecated.
it is recommended to use enhanced peppol function to transmit documents.
|
static String |
sendInvoice(DocumentDTO documentDTO,
String userName,
String password)
Deprecated.
it is recommended to use enhanced peppol function to transmit documents.
|
static String |
sendOrder(DocumentDTO documentDTO)
Send order.
|
static String |
sendOrder(DocumentDTO documentDTO,
String userName,
String password)
Send order.
|
static String |
sendOrderResponse(DocumentDTO documentDTO) |
static String |
sendOrderResponse(DocumentDTO documentDTO,
String userName,
String password) |
static String |
sendReceipts(DocumentDTO documentDTO) |
static String |
sendReceipts(DocumentDTO documentDTO,
String userName,
String password)
For sending Enhanced PEPPOL receipt documents.
|
static void |
setClientUrl(String url) |
public static void setClientUrl(String url)
@Deprecated public static String sendInvoice(DocumentDTO documentDTO, String userName, String password) throws Exception
documentDTO
- the document dtouserName
- the user namepassword
- the passwordException
- the exception@Deprecated public static String sendInvoice(DocumentDTO documentDTO) throws Exception
documentDTO
- the document dtoException
- the exception@Deprecated public static MessageListDTO receiveInvoice(Date syncDate, String userName, String password) throws Exception
syncDate
- the sync dateuserName
- the user namepassword
- the passwordException
- the exception@Deprecated public static MessageListDTO receiveInvoice(Date syncDate) throws Exception
syncDate
- the sync dateException
- the exception@Deprecated public static MessageListDTO receiveInvoice(String participant, String userName, String password) throws Exception
participant
- the participantuserName
- the user namepassword
- the passwordException
- the exception@Deprecated public static MessageListDTO receiveInvoice(String participant) throws Exception
participant
- the participantException
- the exceptionpublic static MessageDTO getMessage(String messageId, String userName, String password) throws Exception
messageId
- userName
- password
- Exception
public static MessageDTO getMessage(String messageId) throws Exception
messageId
- Exception
public static MessageIdListDTO getMessageId(String participant, String userName, String password) throws Exception
participant
- userName
- password
- Exception
public static MessageIdListDTO getMessageId(String participant) throws Exception
participant
- Exception
public static MessageIdListDTO getMessageId(Date syncDate, String userName, String password) throws Exception
syncDate
- userName
- password
- Exception
public static MessageIdListDTO getUnReadMessageIdForWeb(String userName, String password) throws Exception
syncDate
- userName
- password
- Exception
public static MessageIdListDTO getUnReadMessageIdForWeb() throws Exception
Exception
public static MessageIdListDTO getMessageId(Date syncDate) throws Exception
syncDate
- Exception
public static boolean removeMessage(MessageRemoverDTO msgRemoverDTO, String userName, String password) throws Exception
msgRemoverDTO
- the msg remover dtouserName
- the user namepassword
- the passwordException
- the exceptionpublic static boolean removeMessage(MessageRemoverDTO msgRemoverDTO) throws Exception
msgRemoverDTO
- the msg remover dtoException
- the exceptionpublic static boolean isValidParticipant(String participant, String userName, String password, EHFCustomizationID customizationID) throws Exception
participant
- the participantuserName
- the user namepassword
- the passwordException
- the exception@Deprecated public static boolean isValidParticipant(String participant, String userName, String password) throws Exception
participant
- the participantuserName
- the user namepassword
- the passwordException
- the exception@Deprecated public static boolean isValidParticipant(String participant) throws Exception
participant
- the participantException
- the exceptionpublic static boolean isValidParticipant(String participant, EHFCustomizationID customizationID) throws Exception
participant
- the participantException
- the exceptionpublic static boolean markAsRead(List<String> messageIds, String userName, String password) throws Exception
messageIds
- the message idsuserName
- the user namepassword
- the passwordException
- the exceptionpublic static boolean markAsRead(List<String> messageIds) throws Exception
messageIds
- the message idsException
- the exceptionpublic static boolean markAsReadFromWeb(List<String> messageIds, String userName, String password) throws Exception
messageIds
- the message idsuserName
- the user namepassword
- the passwordException
- the exceptionpublic static boolean markAsReadFromWeb(List<String> messageIds) throws Exception
messageIds
- the message idsException
- the exceptionpublic static boolean configureParticipantEmail(List<EmailDTO> emailDTOs, String userName, String password) throws Exception
emailDTOs
- the email dtosuserName
- the user namepassword
- the passwordException
- the exceptionpublic static boolean configureParticipantEmail(List<EmailDTO> emailDTOs) throws Exception
emailDTOs
- the email dt osException
- the exceptionpublic static String[] getParticipantEmail(String participantId, String userName, String password) throws Exception
participantId
- the participant IduserName
- the user namepassword
- the passwordException
- the exceptionpublic static AccesspointDetails getAccesspointDetails(String participantId) throws Exception
participantId
- Exception
public static AccesspointDetails getAccesspointDetails(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static boolean isParticipantEHFV3Enabled(String participantId) throws Exception
participantId
- Exception
public static boolean isParticipantEHFV3Enabled(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static AccesspointDetails getEHFV3InvoiceEndPoint(String participantId) throws Exception
participantId
- Exception
public static AccesspointDetails getEHFV3InvoiceEndPoint(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static AccesspointDetails getEHFV3CreditNoteEndPoint(String participantId) throws Exception
participantId
- Exception
public static AccesspointDetails getEHFV3CreditNoteEndPoint(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static String[] getParticipantEmail(String participantId) throws Exception
participantId
- the participant IdException
- the exceptionpublic static boolean createUser(UserDTO userCreationDTO) throws Exception
userCreationDTO
- the user creation dtoException
- the exceptionpublic static boolean createUser(UserDTO userCreationDTO, String userName, String password) throws Exception
userCreationDTO
- the user creation dtouserName
- the user namepassword
- the passwordException
- the exceptionpublic static String sendOrder(DocumentDTO documentDTO) throws Exception
documentDTO
- the document dtoException
- the exceptionpublic static String sendOrder(DocumentDTO documentDTO, String userName, String password) throws Exception
documentDTO
- the document dtouserName
- the user namepassword
- the passwordException
- the exceptionpublic static String sendOrderResponse(DocumentDTO documentDTO) throws Exception
Exception
public static String sendOrderResponse(DocumentDTO documentDTO, String userName, String password) throws Exception
Exception
public static String sendReceipts(DocumentDTO documentDTO, String userName, String password) throws Exception
documentDTO
- the document dtouserName
- the user namepassword
- the passwordException
- the exceptionpublic static String sendReceipts(DocumentDTO documentDTO) throws Exception
Exception
public static List<ReceiptDTO> getReceipt(String messageReference, String userName, String password) throws Exception
messageId
- userName
- password
- Exception
public static List<ReceiptDTO> getReceipt(String messageReference) throws Exception
Exception
public static ReceiptDTO getLastReceipt(String messageReference, String userName, String password) throws Exception
messageId
- userName
- password
- Exception
public static ReceiptDTO getLastReceipt(String messageReference) throws Exception
Exception
public static List<ReceiptDTO> getAllNewReceipts(String userName, String password) throws Exception
messageId
- userName
- password
- Exception
public static List<ReceiptDTO> getAllNewReceipts() throws Exception
Exception
public static boolean markReceiptAsRead(List<String> receiptIds, String userName, String password) throws Exception
receiptIds
- the receipt idsuserName
- the user namepassword
- the passwordException
- the exceptionpublic static boolean markReceiptAsRead(List<String> receiptIds) throws Exception
receiptIds
- the receipt idsException
- the exceptionpublic static MessageIdListDTO getUnReadMessageIdOfOrder(String userName, String password, String participentId) throws Exception
syncDate
- userName
- password
- Exception
public static MessageIdListDTO getUnReadMessageIdOfOrder(String participentId) throws Exception
participentId
- receiver participent id if null returns messages of all receiverException
public static MessageIdListDTO getUnReadMessageIdOfOrderResponse(String userName, String password, String participentId) throws Exception
syncDate
- userName
- password
- Exception
public static MessageIdListDTO getUnReadMessageIdOfOrderResponse(String participentId) throws Exception
participentId
- receiver participent id if null returns messages of all receiverException
public static AccesspointDetails getEHFV3OrderEndPoint(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static AccesspointDetails getEHFV3OrderResponseEndPoint(String participantId, String userName, String password) throws Exception
participantId
- userName
- password
- Exception
public static String sendEHFV3Order(DocumentDTO documentDTO) throws Exception
documentDTO
- the document dtoException
- the exceptionpublic static String sendEHFV3Order(DocumentDTO documentDTO, String userName, String password) throws Exception
documentDTO
- the document dtouserName
- the user namepassword
- the passwordException
- the exceptionpublic static String sendEHFV3OrderResponse(DocumentDTO documentDTO) throws Exception
Exception
Copyright © 2021 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.