org.syncope.console.rest
Class UserRestClient

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

@Component
public class UserRestClient
extends AbstractBaseRestClient

Console client for invoking rest users services.


Field Summary
 
Fields inherited from class org.syncope.console.rest.AbstractBaseRestClient
baseURL, LOG, restTemplate
 
Constructor Summary
UserRestClient()
           
 
Method Summary
 Integer count()
           
 void create(UserTO userTO)
          Create a new user and start off the workflow.
 void delete(Long id)
           
 List<UserTO> list(int page, int size)
          Get all stored users.
 UserTO read(String id)
           
 List<UserTO> search(NodeCond searchCond)
          Search an user by its schema values.
 List<UserTO> search(NodeCond searchCond, int page, int size)
           
 Integer searchCount(NodeCond searchCond)
           
 void update(UserMod userModTO)
          Update existing user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRestClient

public UserRestClient()
Method Detail

count

public Integer count()

list

public List<UserTO> list(int page,
                         int size)
Get all stored users.

Parameters:
page - pagination element to fetch
size - maximum number to fetch
Returns:
list of TaskTO objects

create

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

Parameters:
userTO - instance
Throws:
SyncopeClientCompositeErrorException

update

public void update(UserMod userModTO)
            throws SyncopeClientCompositeErrorException
Update existing user.

Parameters:
userTO -
Throws:
SyncopeClientCompositeErrorException

delete

public void delete(Long id)

read

public UserTO read(String id)

searchCount

public Integer searchCount(NodeCond searchCond)

search

public List<UserTO> search(NodeCond searchCond)
                    throws SyncopeClientCompositeErrorException
Search an user by its schema values.

Parameters:
userTO -
Returns:
UserTOs
Throws:
SyncopeClientCompositeErrorException

search

public List<UserTO> search(NodeCond searchCond,
                           int page,
                           int size)
                    throws SyncopeClientCompositeErrorException
Throws:
SyncopeClientCompositeErrorException


Copyright © 2011. All Rights Reserved.