Class RelationshipsRestResourcesV1
- java.lang.Object
-
- org.exoplatform.social.rest.impl.relationship.RelationshipsRestResourcesV1
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,RelationshipsRestResources,SocialRest
public class RelationshipsRestResourcesV1 extends Object implements RelationshipsRestResources
-
-
Constructor Summary
Constructors Constructor Description RelationshipsRestResourcesV1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateRelationship(javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model)javax.ws.rs.core.ResponsedeleteRelationshipById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand)Process to delete a relationship by idjavax.ws.rs.core.ResponsegetRelationshipById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand)Get a relationship by idjavax.ws.rs.core.ResponsegetRelationships(javax.ws.rs.core.UriInfo uriInfo, String status, String identityId, int offset, int limit, boolean returnSize)javax.ws.rs.core.ResponseupdateRelationshipById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model)Process to update a relationship by id
-
-
-
Method Detail
-
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 Exception- Specified by:
getRelationshipsin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-
createRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response createRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) throws Exception- Specified by:
createRelationshipin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-
getRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response getRelationshipById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws ExceptionDescription copied from interface:RelationshipsRestResourcesGet a relationship by id- Specified by:
getRelationshipByIdin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-
updateRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response updateRelationshipById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model) throws ExceptionDescription copied from interface:RelationshipsRestResourcesProcess to update a relationship by id- Specified by:
updateRelationshipByIdin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-
deleteRelationshipById
@RolesAllowed("users") public javax.ws.rs.core.Response deleteRelationshipById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws ExceptionDescription copied from interface:RelationshipsRestResourcesProcess to delete a relationship by id- Specified by:
deleteRelationshipByIdin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-
-