public class SpaceRestResourcesV1 extends Object implements SpaceRestResources
| Constructor and Description |
|---|
SpaceRestResourcesV1(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.upload.UploadService uploadService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addSpaceApplication(org.exoplatform.application.registry.Application application) |
javax.ws.rs.core.Response |
addSpaceApplication(String spaceId,
String appId) |
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 |
declineExternalInvitations(javax.ws.rs.core.UriInfo uriInfo,
String invitationId) |
javax.ws.rs.core.Response |
deleteSpaceApplication(String applicationName) |
javax.ws.rs.core.Response |
deleteSpaceApplication(String spaceId,
String appId) |
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 |
getSpaceActivityFileByFileId(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String fileId) |
javax.ws.rs.core.Response |
getSpaceApplications(String spaceId) |
javax.ws.rs.core.Response |
getSpaceApplicationsChoices() |
javax.ws.rs.core.Response |
getSpaceAvatarById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String lastModified,
String id) |
javax.ws.rs.core.Response |
getSpaceBannerById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String lastModified,
String id) |
javax.ws.rs.core.Response |
getSpaceByDisplayName(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String displayName,
String expand)
Process to return a space by display name
|
javax.ws.rs.core.Response |
getSpaceById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String expand)
Process to return a space by id
|
javax.ws.rs.core.Response |
getSpaceByPrettyName(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String prettyName,
String expand)
Process to return a space by pretty name
|
javax.ws.rs.core.Response |
getSpaceExternalInvitations(javax.ws.rs.core.UriInfo uriInfo,
String id) |
javax.ws.rs.core.Response |
getSpaceMembers(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String q,
String role,
int offset,
int limit,
boolean returnSize,
String expand)
Process to return a space by id
|
javax.ws.rs.core.Response |
getSpaceNavigations(javax.servlet.http.HttpServletRequest request,
String spaceId) |
javax.ws.rs.core.Response |
getSpaces(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String q,
String filterType,
int offset,
int limit,
String sort,
String order,
boolean returnSize,
String expand)
Process to return a list of space in json format
|
javax.ws.rs.core.Response |
isSpaceMember(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String userId)
Checks if is the given userId is a space member.
|
javax.ws.rs.core.Response |
moveSpaceApplicationOrder(String spaceId,
String appId,
int transition) |
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.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.upload.UploadService uploadService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaces(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String q, String filterType, int offset, int limit, String sort, String order, 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, @Context javax.ws.rs.core.Request request, String id, String expand) throws Exception
getSpaceById in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceByPrettyName(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String prettyName, String expand) throws Exception
getSpaceByPrettyName in interface SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceByDisplayName(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String displayName, String expand) throws Exception
getSpaceByDisplayName 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 lastModified, String id) throws IOException
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 lastModified, String id) throws IOException
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, @Context javax.ws.rs.core.Request request, String id, String q, 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 isSpaceMember(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String userId)
uriInfo - the uri infoid - the space iduserId - the user id@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceNavigations(@Context javax.servlet.http.HttpServletRequest request, String spaceId)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceApplicationsChoices()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response addSpaceApplication(org.exoplatform.application.registry.Application application)
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response deleteSpaceApplication(String applicationName)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceApplications(String spaceId)
@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteSpaceApplication(String spaceId, String appId)
@RolesAllowed(value="users") public javax.ws.rs.core.Response addSpaceApplication(String spaceId, String appId)
@RolesAllowed(value="users") public javax.ws.rs.core.Response moveSpaceApplicationOrder(String spaceId, String appId, int transition)
@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 SpaceRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceActivityFileByFileId(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String fileId) throws IOException
uriInfo - request - id - fileId - IOException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpaceExternalInvitations(@Context javax.ws.rs.core.UriInfo uriInfo, String id)
@RolesAllowed(value="users") public javax.ws.rs.core.Response declineExternalInvitations(@Context javax.ws.rs.core.UriInfo uriInfo, String invitationId)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.