public interface UsersRelationshipsRestResources extends SocialRest
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createUsersRelationships(javax.ws.rs.core.UriInfo uriInfo,
String expand,
RelationshipEntity model)
Create a relationship between 2 users
|
javax.ws.rs.core.Response |
deleteUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Delete a relationship by id
|
javax.ws.rs.core.Response |
getUsersRelationships(javax.ws.rs.core.UriInfo uriInfo,
String status,
String user,
String others,
int offset,
int limit,
boolean returnSize,
String expand)
Get relationships of an user
|
javax.ws.rs.core.Response |
getUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Get a relationship by id
|
javax.ws.rs.core.Response |
updateUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
RelationshipEntity model)
Update a relationship by id
|
javax.ws.rs.core.Response getUsersRelationships(@Context
javax.ws.rs.core.UriInfo uriInfo,
String status,
String user,
String others,
int offset,
int limit,
boolean returnSize,
String expand)
throws Exception
uriInfo - status - Specific status of relationships: pending, confirmed or alluser - User name to get relationshipsothers - Usernames of the others users to get relationships with the given useroffset - Offsetlimit - LimitreturnSize - Returning the number of relationships or notexpand - Asking for a full representation of a specific subresource, ex: sender or receiverExceptionjavax.ws.rs.core.Response createUsersRelationships(@Context
javax.ws.rs.core.UriInfo uriInfo,
String expand,
RelationshipEntity model)
throws Exception
uriInfo - expand - Asking for a full representation of a specific subresource, ex: sender or receivermodel - Relationship entity to createExceptionjavax.ws.rs.core.Response getUsersRelationshipsById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
throws Exception
uriInfo - id - Id of the relationshipexpand - Asking for a full representation of a specific subresource, ex: sender or receiverExceptionjavax.ws.rs.core.Response updateUsersRelationshipsById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
RelationshipEntity model)
throws Exception
uriInfo - id - Id of the relationship to updateexpand - Asking for a full representation of a specific subresource, ex: sender or receivermodel - Relationship entity to createExceptionjavax.ws.rs.core.Response deleteUsersRelationshipsById(@Context
javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
throws Exception
uriInfo - id - Id of the relationship to deleteexpand - Asking for a full representation of a specific subresource, ex: sender or receiverExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.