org.jboss.resteasy.keystone.server
Class UsersService

java.lang.Object
  extended by org.jboss.resteasy.keystone.server.UsersService

@Path(value="/users")
@RolesAllowed(value="admin")
public class UsersService
extends Object

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
UsersService(org.infinispan.Cache cache)
           
 
Method Summary
 String create(StoredUser user)
           
 Response create(UriInfo uriInfo, StoredUser user)
           
 Response delete(String id)
           
 User get(String id)
           
 StoredUser getStoredUser(String id)
           
 void update(String id, StoredUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersService

public UsersService(org.infinispan.Cache cache)
Method Detail

create

public String create(StoredUser user)
              throws Exception
Throws:
Exception

create

public Response create(@Context
                       UriInfo uriInfo,
                       StoredUser user)
                throws Exception
Throws:
Exception

update

@Path(value="{id}")
public void update(String id,
                             StoredUser user)
            throws Exception
Throws:
Exception

delete

@Path(value="{id}")
public Response delete(String id)

get

@Path(value="{id}")
public User get(String id)

getStoredUser

public StoredUser getStoredUser(String id)


Copyright © 2013. All Rights Reserved.