org.syncope.console.rest
Class ConfigurationRestClient

java.lang.Object
  extended by org.syncope.console.rest.AbstractBaseRestClient
      extended by org.syncope.console.rest.ConfigurationRestClient

@Component
public class ConfigurationRestClient
extends AbstractBaseRestClient

Console client for invoking Rest Connectors services.


Field Summary
 
Fields inherited from class org.syncope.console.rest.AbstractBaseRestClient
baseURL, LOG, restTemplate
 
Constructor Summary
ConfigurationRestClient()
           
 
Method Summary
 boolean createConfiguration(ConfigurationTO configurationTO)
          Create a new configuration.
 void deleteConfiguration(String confKey)
          Deelete a configuration by confKey
 List<ConfigurationTO> getAllConfigurations()
          Get all stored configurations.
 List<LoggerTO> getLoggers()
          Get all loggers.
 ConfigurationTO readConfiguration(String confKey)
          Load an existent configuration.
 boolean setLoggerLevel(String name, String level)
           
 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

ConfigurationRestClient

public ConfigurationRestClient()
Method Detail

getAllConfigurations

public List<ConfigurationTO> getAllConfigurations()
                                           throws SyncopeClientCompositeErrorException
Get all stored configurations.

Returns:
ConfigurationTOs
Throws:
SyncopeClientCompositeErrorException

readConfiguration

public ConfigurationTO readConfiguration(String confKey)
                                  throws SyncopeClientCompositeErrorException
Load an existent configuration.

Returns:
ConfigurationTO object if the configuration exists, null otherwise
Throws:
SyncopeClientCompositeErrorException

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(String confKey)
                         throws UnsupportedEncodingException,
                                org.springframework.web.client.HttpStatusCodeException
Deelete a configuration by confKey

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

getLoggers

public List<LoggerTO> getLoggers()
                          throws SyncopeClientCompositeErrorException
Get all loggers.

Returns:
LoggerTOs
Throws:
SyncopeClientCompositeErrorException

setLoggerLevel

public boolean setLoggerLevel(String name,
                              String level)


Copyright © 2011. All Rights Reserved.