org.syncope.console.rest
Class UsersRestClient

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

public class UsersRestClient
extends Object

Console client for invoking rest users services.


Field Summary
protected  RestClient restClient
           
 
Constructor Summary
UsersRestClient()
           
 
Method Summary
 boolean createConfigurationAttributes(ConfigurationTO configurationTO)
          Create a new configuration.
 void createUser(UserTO userTO)
          Create a new user and start off the workflow.
 void deleteUser(String id)
           
 UserTOs getAllUsers()
           
 RestClient getRestClient()
           
 UserTO getUser(String id)
           
 ConfigurationTO readConfigurationDisplayAttributes()
          Load an existent configuration.
 UserTOs searchUsers(NodeCond nodeSearchCondition)
          Search an user by its schema values.
 void setRestClient(RestClient restClient)
           
 boolean updateConfigurationAttributes(ConfigurationTO configurationTO)
          Update an existent configuration.
 boolean updateUser(UserMod userModTO)
          Update existing user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restClient

protected RestClient restClient
Constructor Detail

UsersRestClient

public UsersRestClient()
Method Detail

getAllUsers

public UserTOs getAllUsers()

createUser

public void createUser(UserTO userTO)
Create a new user and start off the workflow.

Parameters:
userTO - instance

updateUser

public boolean updateUser(UserMod userModTO)
Update existing user.

Parameters:
userTO -
Returns:
true is the opertion ends succesfully, false otherwise

deleteUser

public void deleteUser(String id)

getUser

public UserTO getUser(String id)

createConfigurationAttributes

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

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

updateConfigurationAttributes

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

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

readConfigurationDisplayAttributes

public ConfigurationTO readConfigurationDisplayAttributes()
Load an existent configuration.

Returns:
ConfigurationTO object if the configuration exists, null otherwise

searchUsers

public UserTOs searchUsers(NodeCond nodeSearchCondition)
Search an user by its schema values.

Parameters:
userTO -
Returns:
UserTOs

getRestClient

public RestClient getRestClient()

setRestClient

public void setRestClient(RestClient restClient)


Copyright © 2010. All Rights Reserved.