Class UsersRelationshipsRestResourcesV1

    • Constructor Detail

      • UsersRelationshipsRestResourcesV1

        public UsersRelationshipsRestResourcesV1​(org.exoplatform.social.core.manager.RelationshipManager relationshipManager)
    • 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 Exception
        Description copied from interface: UsersRelationshipsRestResources
        Get relationships of an user
        Specified by:
        getUsersRelationships in interface UsersRelationshipsRestResources
        status - Specific status of relationships: pending, confirmed or all
        user - User name to get relationships
        others - Usernames of the others users to get relationships with the given user
        offset - Offset
        limit - Limit
        returnSize - Returning the number of relationships or not
        expand - Asking for a full representation of a specific subresource, ex: sender or receiver
        Returns:
        The relationships of the given user
        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)
      • deleteUsersRelationship

        @RolesAllowed("users")
        public javax.ws.rs.core.Response deleteUsersRelationship​(@Context
                                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                                 String sender,
                                                                 String receiver,
                                                                 String expand)