org.syncope.console.rest
Class RolesRestClient

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

public class RolesRestClient
extends java.lang.Object

Console client for invoking Rest Role's services.


Constructor Summary
RolesRestClient()
           
 
Method Summary
 void createRole(RoleTO roleTO)
          Create new role.
 void deleteRole(java.lang.Long id)
          Delete an already existent role by its name.
 java.util.List<RoleTO> getAllRoles()
          Get all Roles.
 RestClient getRestClient()
           
 RoleTO readRole(java.lang.Long id)
          Load an already existent role by its name.
 void setRestClient(RestClient restClient)
           
 boolean updateRole(RoleMod roleMod)
          Update an already existent role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesRestClient

public RolesRestClient()
Method Detail

getAllRoles

public java.util.List<RoleTO> getAllRoles()
                                   throws SyncopeClientCompositeErrorException,
                                          org.springframework.web.client.RestClientException
Get all Roles.

Returns:
SchemaTOs
Throws:
SyncopeClientCompositeErrorException
org.springframework.web.client.RestClientException

createRole

public void createRole(RoleTO roleTO)
Create new role.

Parameters:
roleTO -

readRole

public RoleTO readRole(java.lang.Long id)
Load an already existent role by its name.

Parameters:
name - (e.g.:surname)
Returns:
schemaTO

updateRole

public boolean updateRole(RoleMod roleMod)
Update an already existent role.

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

deleteRole

public void deleteRole(java.lang.Long id)
Delete an already existent role by its name.

Parameters:
name - (e.g.:surname)

getRestClient

public RestClient getRestClient()

setRestClient

public void setRestClient(RestClient restClient)


Copyright © 2010. All Rights Reserved.