public class UsersRelationshipsRestResourcesV1 extends Object implements UsersRelationshipsRestResources
| Constructor and Description |
|---|
UsersRelationshipsRestResourcesV1() |
| 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
|
@RolesAllowed(value="users") public 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
UsersRelationshipsRestResourcesgetUsersRelationships in interface UsersRelationshipsRestResourcesstatus - 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 receiverException@RolesAllowed(value="users") public javax.ws.rs.core.Response createUsersRelationships(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) throws Exception
UsersRelationshipsRestResourcescreateUsersRelationships in interface UsersRelationshipsRestResourcesexpand - Asking for a full representation of a specific subresource, ex: sender or receivermodel - Relationship entity to createException@RolesAllowed(value="users") public javax.ws.rs.core.Response getUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
UsersRelationshipsRestResourcesgetUsersRelationshipsById in interface UsersRelationshipsRestResourcesid - Id of the relationshipexpand - Asking for a full representation of a specific subresource, ex: sender or receiverException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model) throws Exception
UsersRelationshipsRestResourcesupdateUsersRelationshipsById in interface UsersRelationshipsRestResourcesid - Id of the relationship to updateexpand - Asking for a full representation of a specific subresource, ex: sender or receivermodel - Relationship entity to createException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
UsersRelationshipsRestResourcesdeleteUsersRelationshipsById in interface UsersRelationshipsRestResourcesid - 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.