Class IdentityRest
java.lang.Object
org.exoplatform.social.rest.impl.identity.IdentityRest
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class IdentityRest
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
ConstructorsConstructorDescriptionIdentityRest(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.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) javax.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) javax.ws.rs.core.ResponsegetIdentityByProviderIdAndRemoteId(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String providerId, String remoteId, String expand) javax.ws.rs.core.ResponsegetIdentityByProviderIdAndRemoteIdInQuery(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String providerId, String remoteId, String expand) javax.ws.rs.core.ResponsegetRelationshipsOfIdentity(javax.ws.rs.core.UriInfo uriInfo, String id, String with, boolean returnSize, int offset, int limit, String expand)
-
Constructor Details
-
IdentityRest
public IdentityRest(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService)
-
-
Method Details
-
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 Exception - 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 Exception - Throws:
Exception
-
getIdentityByProviderIdAndRemoteIdInQuery
-
getIdentityByProviderIdAndRemoteId
-
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 Exception - Throws:
Exception
-
getCommonConnectionsWithIdentity
@RolesAllowed("users") public javax.ws.rs.core.Response getCommonConnectionsWithIdentity(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, boolean returnSize, String expand) throws Exception - Throws:
Exception
-