public class UsersRelationshipsRestResourcesV1 extends Object implements UsersRelationshipsRestResources
| Constructor and Description |
|---|
UsersRelationshipsRestResourcesV1(org.exoplatform.social.core.manager.RelationshipManager relationshipManager) |
| 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 |
deleteUsersRelationship(javax.ws.rs.core.UriInfo uriInfo,
String sender,
String receiver,
String expand) |
javax.ws.rs.core.Response |
deleteUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand)
Deprecated.
|
javax.ws.rs.core.Response |
getUsersRelationship(javax.ws.rs.core.UriInfo uriInfo,
String sender,
String receiver,
String expand) |
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)
Deprecated.
|
javax.ws.rs.core.Response |
updateUsersRelationship(javax.ws.rs.core.UriInfo uriInfo,
RelationshipEntity model,
String expand) |
javax.ws.rs.core.Response |
updateUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
RelationshipEntity model)
Deprecated.
|
public UsersRelationshipsRestResourcesV1(org.exoplatform.social.core.manager.RelationshipManager relationshipManager)
@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") @Deprecated 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") @Deprecated 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") @Deprecated 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 receiverException@RolesAllowed(value="users") public javax.ws.rs.core.Response getUsersRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String sender, String receiver, String expand)
@RolesAllowed(value="users") public javax.ws.rs.core.Response updateUsersRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, RelationshipEntity model, String expand)
@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteUsersRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String sender, String receiver, String expand)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.