public class MambuAPIFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_USER_AGENT_HEADER_VALUE |
Modifier and Type | Method and Description |
---|---|
static AccountingService |
getAccountingService()
Get an instance of the AccountingService class
|
static ActivitiesService |
getActivitiesService()
Get an instance of the ActivitiesService class
|
static java.lang.String |
getApplicationKey()
Getter for an Application Key
|
static ClientsService |
getClientService()
Get an instance of the ClientService class
|
static CommentsService |
getCommentsService()
Get an instance of the CommentsService class
|
static CustomFieldValueService |
getCustomFieldValueService()
Get an instance of the CustomFieldValueService class
|
static CustomViewsService |
getCustomViewsService()
Get an instance of the CustomViewsService class
|
static DatabaseService |
getDatabaseService()
Get an instance of the DatabaseService class
|
static DocumentsService |
getDocumentsService()
Get an instance of the
DocumentsService class |
static DocumentTemplatesService |
getDocumentTemplatesService()
Get an instance of the DocumentTemplatesService class
|
static IntelligenceService |
getIntelligenceService()
Get an instance of the IntelligenceService class
|
static LinesOfCreditService |
getLineOfCreditService()
Get an instance of the LinesOfCreditService class
|
static LoansService |
getLoanService()
Get an instance of the LoanService class
|
static NotificationsService |
getNotificationsService()
Get an instance of the NotificationsService class
|
static OrganizationService |
getOrganizationService()
Get an instance of the OrganizationService class
|
static RepaymentsService |
getRepaymentsService()
Get an instance of the RepaymentsService class
|
static SavingsService |
getSavingsService()
Get an instance of the SavingsService class
|
static SearchService |
getSearchService()
Get an instance of the SearchService class
|
static TasksService |
getTasksService()
Get an instance of the
TasksService class |
static UsersService |
getUsersService()
Get an instance of the UsersService class
|
static void |
setApplicationKey(java.lang.String appKey)
Setter for an Application Key
|
static void |
setUp(Protocol protocol,
java.lang.String domain,
java.lang.String username,
java.lang.String password)
Set up the Guice Module with data required for accessing the remote server
|
static void |
setUp(Protocol protocol,
java.lang.String domain,
java.lang.String username,
java.lang.String password,
java.lang.String userAgentHeaderValue)
Set up the Guice Module with data required for accessing the remote server
|
static void |
setUp(java.lang.String domain,
java.lang.String username,
java.lang.String password)
Convenience method for setting up the Guice Module with data required for accessing the remote server.
|
static void |
setUp(java.lang.String domain,
java.lang.String username,
java.lang.String password,
java.lang.String userAgentHeaderValue)
Convenience method for setting up the Guice Module with data required for accessing the remote server.
|
static void |
setUpWithApiKey(Protocol protocol,
java.lang.String domain,
java.lang.String apiKey)
Set up the Guice Module with data required for accessing the remote server
|
static void |
setUpWithApiKey(Protocol protocol,
java.lang.String domain,
java.lang.String apiKey,
java.lang.String userAgentHeaderValue)
Set up the Guice Module with data required for accessing the remote server
|
static void |
setUpWithApiKey(java.lang.String domain,
java.lang.String apiKey)
Convenience method for setting up the Guice Module with data required for accessing the remote server.
|
static void |
setUpWithApiKey(java.lang.String domain,
java.lang.String apiKey,
java.lang.String userAgentHeaderValue)
Convenience method for setting up the Guice Module with data required for accessing the remote server.
|
public static final java.lang.String DEFAULT_USER_AGENT_HEADER_VALUE
public static void setUp(java.lang.String domain, java.lang.String username, java.lang.String password)
domain
- the domain where the server is foundusername
- the name of the userpassword
- the password used by the userpublic static void setUp(java.lang.String domain, java.lang.String username, java.lang.String password, java.lang.String userAgentHeaderValue)
domain
- the domain where the server is foundusername
- the name of the userpassword
- the password used by the useruserAgentHeaderValue
- the user agent header value to be sent along with all request callspublic static void setUp(Protocol protocol, java.lang.String domain, java.lang.String username, java.lang.String password)
protocol
- the protocol used for communicationdomain
- the domain where the server is foundusername
- the name of the userpassword
- the password used by the userpublic static void setUp(Protocol protocol, java.lang.String domain, java.lang.String username, java.lang.String password, java.lang.String userAgentHeaderValue)
protocol
- the protocol used for communicationdomain
- the domain where the server is foundusername
- the name of the userpassword
- the password used by the useruserAgentHeaderValue
- the user agent header value to be sent along with all request callspublic static void setUpWithApiKey(java.lang.String domain, java.lang.String apiKey)
domain
- the domain where the server is foundapiKey
- the ApiKey header for an ApiConsumer. @see https://support.mambu.com/docs/api-consumerspublic static void setUpWithApiKey(java.lang.String domain, java.lang.String apiKey, java.lang.String userAgentHeaderValue)
domain
- the domain where the server is foundapiKey
- the ApiKey header for an ApiConsumer. @see https://support.mambu.com/docs/api-consumersuserAgentHeaderValue
- the user agent header value to be sent along with all request callspublic static void setUpWithApiKey(Protocol protocol, java.lang.String domain, java.lang.String apiKey)
protocol
- the protocol used for communicationdomain
- the domain where the server is foundapiKey
- the ApiKey header for an ApiConsumer. @see https://support.mambu.com/docs/api-consumerspublic static void setUpWithApiKey(Protocol protocol, java.lang.String domain, java.lang.String apiKey, java.lang.String userAgentHeaderValue)
protocol
- the protocol used for communicationdomain
- the domain where the server is foundapiKey
- the ApiKey header for an ApiConsumer. @see https://support.mambu.com/docs/api-consumersuserAgentHeaderValue
- the user agent header value to be sent along with all request callspublic static ClientsService getClientService() throws MambuApiException
MambuApiException
public static LoansService getLoanService() throws MambuApiException
MambuApiException
public static SavingsService getSavingsService() throws MambuApiException
MambuApiException
public static IntelligenceService getIntelligenceService() throws MambuApiException
MambuApiException
public static RepaymentsService getRepaymentsService() throws MambuApiException
MambuApiException
public static OrganizationService getOrganizationService() throws MambuApiException
MambuApiException
public static AccountingService getAccountingService() throws MambuApiException
MambuApiException
public static UsersService getUsersService() throws MambuApiException
MambuApiException
public static SearchService getSearchService() throws MambuApiException
MambuApiException
public static TasksService getTasksService() throws MambuApiException
TasksService
classMambuApiException
public static DocumentsService getDocumentsService() throws MambuApiException
DocumentsService
classMambuApiException
public static ActivitiesService getActivitiesService() throws MambuApiException
MambuApiException
public static CommentsService getCommentsService() throws MambuApiException
MambuApiException
public static LinesOfCreditService getLineOfCreditService() throws MambuApiException
MambuApiException
public static CustomFieldValueService getCustomFieldValueService() throws MambuApiException
MambuApiException
public static CustomViewsService getCustomViewsService() throws MambuApiException
MambuApiException
public static DocumentTemplatesService getDocumentTemplatesService() throws MambuApiException
MambuApiException
public static DatabaseService getDatabaseService() throws MambuApiException
MambuApiException
public static NotificationsService getNotificationsService() throws MambuApiException
MambuApiException
public static void setApplicationKey(java.lang.String appKey)
appKey
- public static java.lang.String getApplicationKey()