public class SpaceRestResourcesV1 extends Object implements SpaceRestResources
| Constructor and Description |
|---|
SpaceRestResourcesV1(org.exoplatform.social.core.manager.IdentityManager identityManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createSpace(javax.ws.rs.core.UriInfo uriInfo,
String expand,
SpaceEntity model)
Process to create a new space
|
javax.ws.rs.core.Response |
deleteSpaceById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to delete a space by id
|
javax.ws.rs.core.Response |
getSpaceActivitiesById(javax.ws.rs.core.UriInfo uriInfo,
String id,
int offset,
int limit,
String before,
String after,
boolean returnSize,
String expand)
Process to return a space by id
|
javax.ws.rs.core.Response |
getSpaceAvatarById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id) |
javax.ws.rs.core.Response |
getSpaceBannerById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id) |
javax.ws.rs.core.Response |
getSpaceById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Process to return a space by id
|
javax.ws.rs.core.Response |
getSpaceMembers(javax.ws.rs.core.UriInfo uriInfo,
String id,
String role,
int offset,
int limit,
boolean returnSize,
String expand)
Process to return a space by id
|
javax.ws.rs.core.Response |
getSpaces(javax.ws.rs.core.UriInfo uriInfo,
String q,
int offset,
int limit,
boolean returnSize,
String expand)
Process to return a list of space in json format
|
javax.ws.rs.core.Response |
postActivityOnSpace(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
ActivityRestIn model) |
javax.ws.rs.core.Response |
updateSpaceById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
SpaceEntity model)
Process to update a space by id
|
public SpaceRestResourcesV1(org.exoplatform.social.core.manager.IdentityManager identityManager)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaces(@Context javax.ws.rs.core.UriInfo uriInfo, String q, int offset, int limit, boolean returnSize, String expand) throws Exception
getSpaces in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response createSpace(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, SpaceEntity model) throws Exception
createSpace in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
getSpaceById in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceAvatarById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id) throws IOException
uriInfo - id - IOException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceBannerById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id) throws IOException
uriInfo - id - IOException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, SpaceEntity model) throws Exception
updateSpaceById in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteSpaceById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
deleteSpaceById in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceMembers(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String role, int offset, int limit, boolean returnSize, String expand) throws Exception
getSpaceMembers in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceActivitiesById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, String before, String after, boolean returnSize, String expand) throws Exception
getSpaceActivitiesById in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response postActivityOnSpace(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityRestIn model) throws Exception
postActivityOnSpace in interface SpaceRestResourcesExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.