org.exoplatform.services.organization.rest.html
Class RESTOrganizationServiceHTMLImpl

java.lang.Object
  extended by org.exoplatform.services.organization.rest.html.RESTOrganizationServiceHTMLImpl
All Implemented Interfaces:
ResourceContainer

public class RESTOrganizationServiceHTMLImpl
extends java.lang.Object
implements ResourceContainer

Created by The eXo Platform SAS . Note: we use

Version:
$Id:$
Author:
Gennady Azarenkov

Field Summary
protected static java.lang.String GROUP_EDIT_SCHEMA
           
protected static java.lang.String GROUP_INFO_SCHEMA
           
protected static java.lang.String GROUPS_LIST_FRAGMENT_SCHEMA
           
protected static java.lang.String GROUPS_LIST_SCHEMA
           
protected static java.lang.String MEMBERSHIP_LIST_SCHEMA
           
protected static java.lang.String MEMBERSHIPTYPE_LIST_SCHEMA
           
protected static java.lang.String USER_INFO_SCHEMA
           
protected static java.lang.String USERS_LIST_SCHEMA
           
protected static java.lang.String USERS_LIST_SEARCH_SCHEMA
           
 
Constructor Summary
RESTOrganizationServiceHTMLImpl(org.exoplatform.services.organization.OrganizationService organizationService)
           
 
Method Summary
 Response findMembership(java.lang.String membershipId)
           
 Response findMemberships(Membership membreshipsJAXB)
           
 Response findUsers(User userJAXB)
           
 Response findUsersRange(java.lang.Integer offset, java.lang.Integer amount, User userJAXB)
           
 Response getFilteredGroup(java.lang.String filter)
           
 Response getGroup(java.lang.String groupId)
           
 Response getGroups()
           
 Response getGroupsCount()
           
 Response getGroupsOfUser(java.lang.String username)
           
 Response getGroupsRange(java.lang.Integer offset, java.lang.Integer amount, java.lang.String parentId)
           
 Response getUser(java.lang.String username)
           
 Response getUsers()
           
 Response getUsersCount()
           
 Response getUsersRange(java.lang.Integer offset, java.lang.Integer amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_INFO_SCHEMA

protected static final java.lang.String GROUP_INFO_SCHEMA
See Also:
Constant Field Values

GROUP_EDIT_SCHEMA

protected static final java.lang.String GROUP_EDIT_SCHEMA
See Also:
Constant Field Values

GROUPS_LIST_SCHEMA

protected static final java.lang.String GROUPS_LIST_SCHEMA
See Also:
Constant Field Values

GROUPS_LIST_FRAGMENT_SCHEMA

protected static final java.lang.String GROUPS_LIST_FRAGMENT_SCHEMA
See Also:
Constant Field Values

USER_INFO_SCHEMA

protected static final java.lang.String USER_INFO_SCHEMA
See Also:
Constant Field Values

USERS_LIST_SCHEMA

protected static final java.lang.String USERS_LIST_SCHEMA
See Also:
Constant Field Values

USERS_LIST_SEARCH_SCHEMA

protected static final java.lang.String USERS_LIST_SEARCH_SCHEMA
See Also:
Constant Field Values

MEMBERSHIP_LIST_SCHEMA

protected static final java.lang.String MEMBERSHIP_LIST_SCHEMA
See Also:
Constant Field Values

MEMBERSHIPTYPE_LIST_SCHEMA

protected static final java.lang.String MEMBERSHIPTYPE_LIST_SCHEMA
See Also:
Constant Field Values
Constructor Detail

RESTOrganizationServiceHTMLImpl

public RESTOrganizationServiceHTMLImpl(org.exoplatform.services.organization.OrganizationService organizationService)
Parameters:
organizationService - implementation of OrganizationService.
Method Detail

findMembership

public Response findMembership(java.lang.String membershipId)
Parameters:
membershipId - the membership ID
Returns:
Response object with HTTP status.

findMemberships

public Response findMemberships(Membership membreshipsJAXB)
Parameters:
membreshipsJAXB - the object generated.Membership with field for search
Returns:
Response object with HTTP status.

findUsers

public Response findUsers(User userJAXB)
Parameters:
userJAXB - the object generated.User with field for search
Returns:
Response object with HTTP status.

findUsersRange

public Response findUsersRange(java.lang.Integer offset,
                               java.lang.Integer amount,
                               User userJAXB)
Parameters:
offset - the down limit
amount - the top limit
userJAXB - the object generated.User with field for search
Returns:
Response object with HTTP status.

getFilteredGroup

public Response getFilteredGroup(java.lang.String filter)
Parameters:
filter - the filter for search
Returns:
Response object with HTTP status.

getGroup

public Response getGroup(java.lang.String groupId)
Parameters:
groupId - the group id
Returns:
Response object with HTTP status.

getGroups

public Response getGroups()
Returns:
Response object with HTTP status.

getGroupsCount

public Response getGroupsCount()
Returns:
Response object with HTTP status.

getGroupsOfUser

public Response getGroupsOfUser(java.lang.String username)
Parameters:
username - the user name
Returns:
Response object with HTTP status.

getGroupsRange

public Response getGroupsRange(java.lang.Integer offset,
                               java.lang.Integer amount,
                               java.lang.String parentId)
Parameters:
offset - the down limit
amount - the top limit
parentId - the id of parent node
Returns:
Response object with HTTP status.

getUser

public Response getUser(java.lang.String username)
Parameters:
username - the user name
Returns:
Response object with HTTP status.

getUsers

public Response getUsers()
Returns:
Response object with HTTP status.

getUsersCount

public Response getUsersCount()
Returns:
Response object with HTTP status.

getUsersRange

public Response getUsersRange(java.lang.Integer offset,
                              java.lang.Integer amount)
Parameters:
offset - the down limit
amount - the top limit
Returns:
Response object with HTTP status.


Copyright © 2012 eXo Platform SAS. All Rights Reserved.