Class IdentityRestResourcesV1
- java.lang.Object
-
- org.exoplatform.social.rest.impl.identity.IdentityRestResourcesV1
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,IdentityRestResources,SocialRest
public class IdentityRestResourcesV1 extends Object implements IdentityRestResources
-
-
Constructor Summary
Constructors Constructor Description IdentityRestResourcesV1(org.exoplatform.social.core.manager.IdentityManager identityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCommonConnectionsWithIdentity(javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, boolean returnSize, String expand)javax.ws.rs.core.ResponsegetIdentities(javax.ws.rs.core.UriInfo uriInfo, String type, int offset, int limit, boolean returnSize, String expand)Process to return a list of identities in json formatjavax.ws.rs.core.ResponsegetIdentityAvatarById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id)javax.ws.rs.core.ResponsegetIdentityBannerById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id)javax.ws.rs.core.ResponsegetIdentityById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id, String expand)Process to return an identity in json formatjavax.ws.rs.core.ResponsegetIdentityByProviderIdAndRemoteId(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String providerId, String remoteId, String expand)Return an identity identified by its providerId and remoteIdjavax.ws.rs.core.ResponsegetRelationshipsOfIdentity(javax.ws.rs.core.UriInfo uriInfo, String id, String with, boolean returnSize, int offset, int limit, String expand)Process to return all relationships of an identity in json format
-
-
-
Method Detail
-
getIdentities
@RolesAllowed("users") public javax.ws.rs.core.Response getIdentities(@Context javax.ws.rs.core.UriInfo uriInfo, String type, int offset, int limit, boolean returnSize, String expand) throws ExceptionProcess to return a list of identities in json format- Specified by:
getIdentitiesin interfaceIdentityRestResources- Returns:
- Throws:
Exception
-
getIdentityById
@RolesAllowed("users") public javax.ws.rs.core.Response getIdentityById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String expand) throws ExceptionProcess to return an identity in json format- Specified by:
getIdentityByIdin interfaceIdentityRestResources- Returns:
- Throws:
Exception
-
getIdentityByProviderIdAndRemoteId
@RolesAllowed("users") public javax.ws.rs.core.Response getIdentityByProviderIdAndRemoteId(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String providerId, String remoteId, String expand)Description copied from interface:IdentityRestResourcesReturn an identity identified by its providerId and remoteId- Specified by:
getIdentityByProviderIdAndRemoteIdin interfaceIdentityRestResources- Returns:
ResponsecontainingIdentityEntity
-
getIdentityAvatarById
@RolesAllowed("users") public javax.ws.rs.core.Response getIdentityAvatarById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id) throws IOException- Parameters:
uriInfo-id-- Returns:
- Throws:
IOException
-
getIdentityBannerById
@RolesAllowed("users") public javax.ws.rs.core.Response getIdentityBannerById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id) throws IOException- Parameters:
uriInfo-id-- Returns:
- Throws:
IOException
-
getRelationshipsOfIdentity
@RolesAllowed("users") public javax.ws.rs.core.Response getRelationshipsOfIdentity(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String with, boolean returnSize, int offset, int limit, String expand) throws ExceptionProcess to return all relationships of an identity in json format- Specified by:
getRelationshipsOfIdentityin interfaceIdentityRestResources- Returns:
- Throws:
Exception
-
-