org.syncope.console.rest
Class ConfigurationsRestClient

java.lang.Object
  extended by org.syncope.console.rest.ConfigurationsRestClient

public class ConfigurationsRestClient
extends java.lang.Object

Console client for invoking Rest Connectors services.


Constructor Summary
ConfigurationsRestClient()
           
 
Method Summary
 boolean createConfiguration(ConfigurationTO configurationTO)
          Create a new configuration.
 void deleteConfiguration(java.lang.String confKey)
          Deelete a configuration by confKey
 java.util.List<ConfigurationTO> getAllConfigurations()
          Get all stored configurations.
 RestClient getRestClient()
          Getter for restClient attribute.
 ConfigurationTO readConfiguration(java.lang.String confKey)
          Load an existent configuration.
 void setRestClient(RestClient restClient)
          Setter for restClient attribute.
 boolean updateConfiguration(ConfigurationTO configurationTO)
          Update an existent configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationsRestClient

public ConfigurationsRestClient()
Method Detail

getAllConfigurations

public java.util.List<ConfigurationTO> getAllConfigurations()
                                                     throws org.springframework.web.client.RestClientException
Get all stored configurations.

Returns:
ConfigurationTOs
Throws:
org.springframework.web.client.RestClientException

readConfiguration

public ConfigurationTO readConfiguration(java.lang.String confKey)
                                  throws SyncopeClientCompositeErrorException,
                                         org.springframework.web.client.RestClientException
Load an existent configuration.

Returns:
ConfigurationTO object if the configuration exists, null otherwise
Throws:
SyncopeClientCompositeErrorException
org.springframework.web.client.RestClientException

createConfiguration

public boolean createConfiguration(ConfigurationTO configurationTO)
Create a new configuration.

Parameters:
configurationTO -
Returns:
true if the operation ends succesfully, false otherwise

updateConfiguration

public boolean updateConfiguration(ConfigurationTO configurationTO)
Update an existent configuration.

Parameters:
configurationTO -
Returns:
true if the operation ends succesfully, false otherwise

deleteConfiguration

public void deleteConfiguration(java.lang.String confKey)
                         throws java.io.UnsupportedEncodingException,
                                org.springframework.web.client.HttpStatusCodeException
Deelete a configuration by confKey

Throws:
java.io.UnsupportedEncodingException
org.springframework.web.client.HttpStatusCodeException

getRestClient

public RestClient getRestClient()
Getter for restClient attribute.

Returns:
RestClient instance

setRestClient

public void setRestClient(RestClient restClient)
Setter for restClient attribute.

Parameters:
restClient - instance


Copyright © 2010. All Rights Reserved.