it.eng.rdlab.soa3.um.rest.jaxrs
Class GroupManager

java.lang.Object
  extended by it.eng.rdlab.soa3.um.rest.jaxrs.GroupManager

public class GroupManager
extends Object

This class is a RESTful WS that manages operations on groups

Version:
1.0
Author:
Ermanno Travaglino

Constructor Summary
GroupManager()
           
 
Method Summary
 javax.ws.rs.core.Response createGroup(GroupJaxbBean groupBean, com.sun.jersey.api.core.HttpContext context)
          Creates group by groupName (and optionally by organizationName)
 javax.ws.rs.core.Response deleteAllGroups(com.sun.jersey.api.core.HttpContext context)
          Deletes groups
 javax.ws.rs.core.Response deleteAllGroups(String organizationName, com.sun.jersey.api.core.HttpContext context)
          Deletes groups by organizationName
 javax.ws.rs.core.Response deleteGroup(String groupName, String organizationName, com.sun.jersey.api.core.HttpContext context)
          Deletes group by groupName (and optionally by organizationName)
 javax.ws.rs.core.Response getGroup(String groupName, com.sun.jersey.api.core.HttpContext context)
          Gets group by groupName
 javax.ws.rs.core.Response getGroup(String groupName, String organizationName, com.sun.jersey.api.core.HttpContext context)
          Gets group by groupName and organizationName
 String listGroups(com.sun.jersey.api.core.HttpContext context)
          Lists groups
 String listGroups(String organizationName, com.sun.jersey.api.core.HttpContext context)
          Lists groups by organizationName
 javax.ws.rs.core.Response updateGroup(GroupJaxbBean groupBean, com.sun.jersey.api.core.HttpContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupManager

public GroupManager()
             throws Exception
Throws:
Exception
Method Detail

createGroup

public javax.ws.rs.core.Response createGroup(GroupJaxbBean groupBean,
                                             @Context
                                             com.sun.jersey.api.core.HttpContext context)
Creates group by groupName (and optionally by organizationName)

Parameters:
groupBean - GroupJaxbBean
Returns:
group creation process response
Throws:
javax.ws.rs.WebApplicationException

getGroup

public javax.ws.rs.core.Response getGroup(String groupName,
                                          String organizationName,
                                          @Context
                                          com.sun.jersey.api.core.HttpContext context)
Gets group by groupName and organizationName

Parameters:
groupName - String
organizationName - String (optional)
Returns:
the group json object
Throws:
WebApplicationException,JsonGenerationException,UMJSONParserException,IOException

getGroup

public javax.ws.rs.core.Response getGroup(String groupName,
                                          @Context
                                          com.sun.jersey.api.core.HttpContext context)
Gets group by groupName

Parameters:
groupName - String
Returns:
the group json object
Throws:
WebApplicationException,JsonGenerationException,UMJSONParserException,IOException

listGroups

public String listGroups(String organizationName,
                         @Context
                         com.sun.jersey.api.core.HttpContext context)
Lists groups by organizationName

Parameters:
organizationName - String (optional)
Returns:
the groups String object
Throws:
WebApplicationException,JsonGenerationException,UMJSONParserException,IOException

listGroups

public String listGroups(@Context
                         com.sun.jersey.api.core.HttpContext context)
Lists groups

Returns:
the groups String object
Throws:
WebApplicationException,JsonGenerationException,UMJSONParserException,IOException

deleteGroup

public javax.ws.rs.core.Response deleteGroup(String groupName,
                                             String organizationName,
                                             @Context
                                             com.sun.jersey.api.core.HttpContext context)
Deletes group by groupName (and optionally by organizationName)

Parameters:
groupName - String
organizationName - String (optional)
Returns:
group deletion process response

deleteAllGroups

public javax.ws.rs.core.Response deleteAllGroups(String organizationName,
                                                 @Context
                                                 com.sun.jersey.api.core.HttpContext context)
Deletes groups by organizationName

Parameters:
organizationName - String
Returns:
groups deletion process response

deleteAllGroups

public javax.ws.rs.core.Response deleteAllGroups(@Context
                                                 com.sun.jersey.api.core.HttpContext context)
Deletes groups

Returns:
groups deletion process response

updateGroup

public javax.ws.rs.core.Response updateGroup(GroupJaxbBean groupBean,
                                             @Context
                                             com.sun.jersey.api.core.HttpContext context)


Copyright © 2013. All Rights Reserved.