public class SugarWsClientImpl extends Object implements SugarWsClient
| Constructor and Description |
|---|
SugarWsClientImpl()
Default Constructor
|
SugarWsClientImpl(String username,
String password)
Used for unit/integration tests
|
| Modifier and Type | Method and Description |
|---|---|
GetAvailableModulesResponse |
getAvailableModules(GetAvailableModules request)
Shows all the available module names in SugarCRM
|
String |
getDefaultUri() |
GetEntriesResponse |
getEntries(GetEntries request)
Gets the entries for a request
|
GetEntryResponse |
getEntry(GetEntry request)
Gets a specific entry
|
GetEntryListResponse |
getEntryList(GetEntryList request)
Performs a query on the records contained in sugarCRM
|
GetModuleFieldsResponse |
getModuleFields(GetModuleFields request)
Get the fields for a specific module
|
GetNoteAttachmentResponse |
getNoteAttachment(GetNoteAttachment request)
Gets a note attachment from a record
|
String |
getPassword() |
GetRelationshipsResponse |
getRelationships(GetRelationships request)
Gets the Relationships for a specific module
|
String |
getSessionID()
Get the current session id
|
GetUserIdResponse |
getUserId(GetUserId request)
This method gives the user name of the user who "owns" the specific
session
|
String |
getUsername() |
org.springframework.ws.client.core.WebServiceTemplate |
getWebServiceTemplate() |
IsUserAdminResponse |
isUserAdmin(IsUserAdmin request)
This method returns an object indicating that the current user has admin
privileges or not.
|
String |
login(Login login)
Public method for performing Login operations (see Junit test for usage
example)
|
LoginResponse |
login2(Login login)
Public method for performing Login operations (see JUnit test for usage
example)
|
LogoutResponse |
logout(Logout request)
Public method for performing Logout operations (see Junit test for usage
example)
|
void |
setDefaultUri(String defaultUri) |
SetEntryResponse |
setEntry(SetEntry request)
Creates/Updates an entry in SugarCRM
|
SetNoteAttachmentResponse |
setNoteAttachment(SetNoteAttachment request)
Sets a note attachment to a record
|
void |
setPassword(String password) |
void |
setSessionID(String sessionID)
Set session id
|
void |
setUsername(String username) |
void |
setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate) |
public String login(Login login) throws JIXBLoginFailureException
login in interface SugarWsClientlogin - the Login objectJIXBLoginFailureException - when login credentials are incorrectGenericSugarCrmExceptionpublic LoginResponse login2(Login login) throws JIXBLoginFailureException
login2 in interface SugarWsClientlogin - JIXBLoginFailureException - when login credentials are incorrectGenericSugarCrmExceptionpublic LogoutResponse logout(Logout request) throws JIXBLogoutFailureException
logout in interface SugarWsClienta - logout request objectJIXBLogoutFailureException - when logout failsGenericSugarCrmExceptionpublic IsUserAdminResponse isUserAdmin(IsUserAdmin request) throws Exception
isUserAdmin in interface SugarWsClientrequest - GenericSugarCrmExceptionExceptionpublic GetUserIdResponse getUserId(GetUserId request) throws Exception
getUserId in interface SugarWsClientrequest - GenericSugarCrmExceptionExceptionpublic GetAvailableModulesResponse getAvailableModules(GetAvailableModules request) throws JIXBQueryResultException
getAvailableModules in interface SugarWsClientrequest - JIXBQueryResultExceptionGenericSugarCrmExceptionpublic GetModuleFieldsResponse getModuleFields(GetModuleFields request) throws JIXBQueryResultException
getModuleFields in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic GetEntryListResponse getEntryList(GetEntryList request) throws JIXBQueryResultException
getEntryList in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic GetEntryResponse getEntry(GetEntry request) throws JIXBQueryResultException
getEntry in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic SetEntryResponse setEntry(SetEntry request) throws JIXBQueryResultException
setEntry in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic GetEntriesResponse getEntries(GetEntries request) throws JIXBQueryResultException
getEntries in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic SetNoteAttachmentResponse setNoteAttachment(SetNoteAttachment request) throws JIXBFileAttachmentException
setNoteAttachment in interface SugarWsClientrequest - JIXBFileAttachmentExceptionpublic GetNoteAttachmentResponse getNoteAttachment(GetNoteAttachment request) throws JIXBFileAttachmentException
getNoteAttachment in interface SugarWsClientrequest - JIXBFileAttachmentExceptionpublic GetRelationshipsResponse getRelationships(GetRelationships request) throws JIXBQueryResultException
getRelationships in interface SugarWsClientrequest - JIXBQueryResultExceptionpublic String getSessionID()
SugarWsClientgetSessionID in interface SugarWsClientpublic String getUsername()
getUsername in interface SugarWsClientpublic void setUsername(String username)
setUsername in interface SugarWsClientpublic String getPassword()
getPassword in interface SugarWsClientpublic void setPassword(String password)
setPassword in interface SugarWsClientpublic org.springframework.ws.client.core.WebServiceTemplate getWebServiceTemplate()
public void setWebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate webServiceTemplate)
webServiceTemplate - public void setDefaultUri(String defaultUri)
defaultUri - public String getDefaultUri()
public void setSessionID(String sessionID)
SugarWsClientsetSessionID in interface SugarWsClientCopyright © 2017 Europeana Foundation. All rights reserved.