Class GroupSpaceBindingRestResourcesV1

    • Constructor Detail

      • GroupSpaceBindingRestResourcesV1

        public GroupSpaceBindingRestResourcesV1​(org.exoplatform.social.core.space.spi.SpaceService spaceService,
                                                org.exoplatform.social.core.binding.spi.GroupSpaceBindingService groupSpaceBindingService,
                                                org.exoplatform.portal.config.UserACL userACL)
    • Method Detail

      • getBindingsBySpaceId

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response getBindingsBySpaceId​(@Context
                                                              javax.ws.rs.core.UriInfo uriInfo,
                                                              String spaceId,
                                                              int offset,
                                                              int limit,
                                                              boolean returnSize)
                                                       throws Exception
        Return a list of binding in json format
        Specified by:
        getBindingsBySpaceId in interface GroupSpaceBindingRestResources
        spaceId - Id of the space
        offset - Bindings list offset
        limit - Bindings list limit
        returnSize - Return Size of the list?
        Returns:
        List of binding object for this context (space + role)
        Throws:
        Exception
      • saveGroupSpaceBindings

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response saveGroupSpaceBindings​(@Context
                                                                javax.ws.rs.core.UriInfo uriInfo,
                                                                String spaceId,
                                                                List<String> groupNames)
        Return a list of binding in json format
        Specified by:
        saveGroupSpaceBindings in interface GroupSpaceBindingRestResources
        spaceId - Id of the space
        groupNames - List of group names to be bound to the space
        Returns:
        Status