public class SpacesRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
SpacesRestService.SpaceList
List that contains space from space service.
Need this class for converter from rest service. |
| Constructor and Description |
|---|
SpacesRestService()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getLastVisitedSpace(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format,
String appId,
int offset,
int limit)
Provides a way to get the latest spaces ordered by last access and to be able to filter spaces, based on the application Id in the spaces.
|
javax.ws.rs.core.Response |
getSpaceInfo(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String spaceName)
Gets space display info
|
javax.ws.rs.core.Response |
showMySpaceList(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
UserRestResourcesV1.getSpacesOfUser(UriInfo, String, int, int, boolean, String) |
javax.ws.rs.core.Response |
showPendingSpaceList(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format)
Gets a user's pending spaces.
|
javax.ws.rs.core.Response |
suggestSpacenames(javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String conditionToSearch,
String typeOfRelation,
String userId,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
SpaceRestResourcesV1.getSpaces(UriInfo, String, int, int, boolean, String) |
public javax.ws.rs.core.Response showMySpaceList(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format)
throws Exception
UserRestResourcesV1.getSpacesOfUser(UriInfo, String, int, int, boolean, String)uriInfo - The requested URI information.portalName - The name of the current container.format - The format of the returned result.Exceptionpublic javax.ws.rs.core.Response getLastVisitedSpace(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format,
String appId,
int offset,
int limit)
throws Exception
uriInfo - The requested URI information.portalName - The portal container name.format - The format of the returned result, for example, JSON, or XML.offset - Specifies the staring point of the returned results. It must be greater than or equal to 0.limit - Specifies the ending point of the returned results. It must be less than or equal to 10.appId - The application Id which is contained in spaces to filter, such as, Wiki, Discussion, Documents, Agenda and more.Exceptionhttp://localhost:8080/rest/private/social/spaces/lastVisitedSpace/list.json?appId=Wiki&offset=0&limit=10public javax.ws.rs.core.Response getSpaceInfo(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String spaceName)
throws Exception
uriInfo - The requested URI information.Exceptionhttp://localhost:8080/rest/private/social/spaces/spaceInfo/?spaceName=space1public javax.ws.rs.core.Response showPendingSpaceList(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String format)
throws Exception
uriInfo - The requested URI information.portalName - The portal container name.format - The format of the returned result, for example, JSON, or XML.Exceptionpublic javax.ws.rs.core.Response suggestSpacenames(@Context
javax.ws.rs.core.UriInfo uriInfo,
String portalName,
String conditionToSearch,
String typeOfRelation,
String userId,
String format)
throws Exception
SpaceRestResourcesV1.getSpaces(UriInfo, String, int, int, boolean, String)uriInfo - The requested URI information.portalName - The name of portal.conditionToSearch - The input information to search.typeOfRelation - The type of relationship of the user and the space.userId - The Id of current user.format - The format of the returned result, for example, JSON, or XML.ExceptionCopyright © 2003–2017 eXo Platform SAS. All rights reserved.