Class RelationshipsRestResources
java.lang.Object
org.exoplatform.social.rest.impl.relationship.RelationshipsRestResources
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class RelationshipsRestResources
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
ConstructorsConstructorDescriptionRelationshipsRestResources(org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateRelationship(javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetRelationshipById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand) javax.ws.rs.core.ResponsegetRelationships(javax.ws.rs.core.UriInfo uriInfo, String status, String identityId, int offset, int limit, boolean returnSize) javax.ws.rs.core.ResponseupdateRelationship(javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) javax.ws.rs.core.ResponseupdateRelationshipById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model)
-
Constructor Details
-
RelationshipsRestResources
public RelationshipsRestResources(org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Details
-
getRelationships
@RolesAllowed("users") public javax.ws.rs.core.Response getRelationships(@Context javax.ws.rs.core.UriInfo uriInfo, String status, String identityId, int offset, int limit, boolean returnSize) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
createRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response createRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
getRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response getRelationshipById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
updateRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response updateRelationshipById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
updateRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response updateRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
deleteRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response deleteRelationshipById(String id) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-
deleteRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response deleteRelationship(RelationshipEntity model) throws javax.ws.rs.WebApplicationException - Throws:
javax.ws.rs.WebApplicationException
-