public class FortnoxClientManager extends Object
| Constructor and Description |
|---|
FortnoxClientManager() |
FortnoxClientManager(String fortnoxClientsFile)
Instantiates this client manager by reading clients from given file.
|
| Modifier and Type | Method and Description |
|---|---|
org.notima.api.fortnox.clients.FortnoxClientInfo |
addClient(org.notima.api.fortnox.clients.FortnoxClientInfo ci)
Adds a new client info to the list.
|
org.notima.api.fortnox.clients.FortnoxClientInfo |
getClientInfoByOrgNo(String orgNo)
Gets client info by using the org no as key.
|
org.notima.api.fortnox.clients.FortnoxClientList |
getClientList()
Returns the client list data
|
String |
getClientsFile()
Path to the clients xml-file.
|
List<org.notima.api.fortnox.clients.FortnoxClientInfo> |
getFortnoxClients()
A list of FortnoxClientInfo
|
FortnoxClientManager |
getThis() |
Boolean |
readClientsFromFile(String fortnoxClientsFile)
Reads clients from xml-file.
|
void |
setClientList(org.notima.api.fortnox.clients.FortnoxClientList clientList) |
void |
setClientsFile(String clientsFile) |
org.notima.api.fortnox.clients.FortnoxClientInfo |
updateAndSaveClientInfo(org.notima.api.fortnox.clients.FortnoxClientInfo ci)
Takes the FortnoxClientInfo parameter and updates / adds it to the
client list and saves the list to the file specified by clientsFile.
|
public FortnoxClientManager()
public FortnoxClientManager(String fortnoxClientsFile)
fortnoxClientsFile - An XML-file containing client datapublic FortnoxClientManager getThis()
public org.notima.api.fortnox.clients.FortnoxClientInfo updateAndSaveClientInfo(org.notima.api.fortnox.clients.FortnoxClientInfo ci)
throws Exception
ci - The client infoException - If something goes wrong.public Boolean readClientsFromFile(String fortnoxClientsFile)
fortnoxClientsFile - Path to XML file. Can be in classpath.public String getClientsFile()
public void setClientsFile(String clientsFile)
public List<org.notima.api.fortnox.clients.FortnoxClientInfo> getFortnoxClients()
public org.notima.api.fortnox.clients.FortnoxClientInfo addClient(org.notima.api.fortnox.clients.FortnoxClientInfo ci)
ci - public org.notima.api.fortnox.clients.FortnoxClientList getClientList()
public void setClientList(org.notima.api.fortnox.clients.FortnoxClientList clientList)
public org.notima.api.fortnox.clients.FortnoxClientInfo getClientInfoByOrgNo(@Header(value="orgNo")
String orgNo)
orgNo - Copyright © 2017–2020 Notima System Integration AB. All rights reserved.