Class IdentityRestResourcesV1

    • Constructor Detail

      • IdentityRestResourcesV1

        public IdentityRestResourcesV1​(org.exoplatform.social.core.manager.IdentityManager identityManager)
    • Method Detail

      • getIdentities

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getIdentities​(@Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       String type,
                                                       int offset,
                                                       int limit,
                                                       boolean returnSize,
                                                       String expand)
                                                throws Exception
        Process to return a list of identities in json format
        Specified by:
        getIdentities in interface IdentityRestResources
        Returns:
        Throws:
        Exception
      • getIdentityAvatarById

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getIdentityAvatarById​(@Context
                                                               javax.ws.rs.core.UriInfo uriInfo,
                                                               @Context
                                                               javax.ws.rs.core.Request request,
                                                               String id)
                                                        throws IOException
        Parameters:
        uriInfo -
        id -
        Returns:
        Throws:
        IOException
      • getIdentityBannerById

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getIdentityBannerById​(@Context
                                                               javax.ws.rs.core.UriInfo uriInfo,
                                                               @Context
                                                               javax.ws.rs.core.Request request,
                                                               String id)
                                                        throws IOException
        Parameters:
        uriInfo -
        id -
        Returns:
        Throws:
        IOException
      • getRelationshipsOfIdentity

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getRelationshipsOfIdentity​(@Context
                                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                                    String id,
                                                                    String with,
                                                                    boolean returnSize,
                                                                    int offset,
                                                                    int limit,
                                                                    String expand)
                                                             throws Exception
        Process to return all relationships of an identity in json format
        Specified by:
        getRelationshipsOfIdentity in interface IdentityRestResources
        Returns:
        Throws:
        Exception
      • getCommonConnectionsWithIdentity

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getCommonConnectionsWithIdentity​(@Context
                                                                          javax.ws.rs.core.UriInfo uriInfo,
                                                                          String id,
                                                                          int offset,
                                                                          int limit,
                                                                          boolean returnSize,
                                                                          String expand)
                                                                   throws Exception
        Throws:
        Exception