Class RelationshipsRestResourcesV1
java.lang.Object
org.exoplatform.social.rest.impl.relationship.RelationshipsRestResourcesV1
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,RelationshipsRestResources,SocialRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.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
-
Constructor Details
-
RelationshipsRestResourcesV1
public RelationshipsRestResourcesV1()
-
-
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 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 Exception Description 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 Exception Description 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 Exception Description copied from interface:RelationshipsRestResourcesProcess to delete a relationship by id- Specified by:
deleteRelationshipByIdin interfaceRelationshipsRestResources- Returns:
- Throws:
Exception
-