Class UsersRelationshipsRestResourcesV1
- java.lang.Object
-
- org.exoplatform.social.rest.impl.userrelationship.UsersRelationshipsRestResourcesV1
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,SocialRest,UsersRelationshipsRestResources
public class UsersRelationshipsRestResourcesV1 extends Object implements UsersRelationshipsRestResources
-
-
Constructor Summary
Constructors Constructor Description UsersRelationshipsRestResourcesV1(org.exoplatform.social.core.manager.RelationshipManager relationshipManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateUsersRelationships(javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model)Create a relationship between 2 usersjavax.ws.rs.core.ResponsedeleteUsersRelationship(javax.ws.rs.core.UriInfo uriInfo, String sender, String receiver, String expand)javax.ws.rs.core.ResponsedeleteUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand)Deprecated.javax.ws.rs.core.ResponsegetUsersRelationship(javax.ws.rs.core.UriInfo uriInfo, String sender, String receiver, String expand)javax.ws.rs.core.ResponsegetUsersRelationships(javax.ws.rs.core.UriInfo uriInfo, String status, String user, String others, int offset, int limit, boolean returnSize, String expand)Get relationships of an userjavax.ws.rs.core.ResponsegetUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand)Deprecated.javax.ws.rs.core.ResponseupdateUsersRelationship(javax.ws.rs.core.UriInfo uriInfo, RelationshipEntity model, String expand)javax.ws.rs.core.ResponseupdateUsersRelationshipsById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model)Deprecated.
-
-
-
Method Detail
-
getUsersRelationships
@RolesAllowed("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 ExceptionDescription copied from interface:UsersRelationshipsRestResourcesGet relationships of an user- Specified by:
getUsersRelationshipsin interfaceUsersRelationshipsRestResourcesstatus- 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 receiver- Returns:
- The relationships of the given user
- Throws:
Exception
-
createUsersRelationships
@RolesAllowed("users") public javax.ws.rs.core.Response createUsersRelationships(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, RelationshipEntity model) throws ExceptionDescription copied from interface:UsersRelationshipsRestResourcesCreate a relationship between 2 users- Specified by:
createUsersRelationshipsin interfaceUsersRelationshipsRestResourcesexpand- Asking for a full representation of a specific subresource, ex: sender or receivermodel- Relationship entity to create- Returns:
- Throws:
Exception
-
getUsersRelationshipsById
@RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response getUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws ExceptionDeprecated.Description copied from interface:UsersRelationshipsRestResourcesGet a relationship by id- Specified by:
getUsersRelationshipsByIdin interfaceUsersRelationshipsRestResourcesid- Id of the relationshipexpand- Asking for a full representation of a specific subresource, ex: sender or receiver- Returns:
- Throws:
Exception
-
updateUsersRelationshipsById
@RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response updateUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, RelationshipEntity model) throws ExceptionDeprecated.Description copied from interface:UsersRelationshipsRestResourcesUpdate a relationship by id- Specified by:
updateUsersRelationshipsByIdin interfaceUsersRelationshipsRestResourcesid- Id of the relationship to updateexpand- Asking for a full representation of a specific subresource, ex: sender or receivermodel- Relationship entity to create- Returns:
- Throws:
Exception
-
deleteUsersRelationshipsById
@RolesAllowed("users") @Deprecated public javax.ws.rs.core.Response deleteUsersRelationshipsById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws ExceptionDeprecated.Description copied from interface:UsersRelationshipsRestResourcesDelete a relationship by id- Specified by:
deleteUsersRelationshipsByIdin interfaceUsersRelationshipsRestResourcesid- Id of the relationship to deleteexpand- Asking for a full representation of a specific subresource, ex: sender or receiver- Returns:
- Throws:
Exception
-
getUsersRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response getUsersRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, String sender, String receiver, String expand)
-
updateUsersRelationship
@RolesAllowed("users") public javax.ws.rs.core.Response updateUsersRelationship(@Context javax.ws.rs.core.UriInfo uriInfo, RelationshipEntity model, String expand)
-
-