Interface IContainers


@Path("/containers/_manage") public interface IContainers
  • Method Details

    • get

      @GET @Path("{uid}") ContainerDescriptor get(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Get a container
      Parameters:
      uid - the containers unique identifier
      Returns:
      non null description, throws if not found
      Throws:
      net.bluemind.core.api.fault.ServerFault - with ErrorCode.NOT_FOUND if the container does not exist
    • getLight

      @GET @Path("_light/{uid}") BaseContainerDescriptor getLight(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getLightIfPresent

      @GET @Path("_ifPresentLight/{uid}") BaseContainerDescriptor getLightIfPresent(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getForUser

      @GET @Path("_forUser") ContainerDescriptor getForUser(@QueryParam("domainUid") String domainUid, @QueryParam("userUid") String userUid, @QueryParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Get a container as if it where requested by another user.
      Parameters:
      domainUid -
      userUid -
      uid -
      Returns:
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getIfPresent

      @GET @Path("_ifPresent/{uid}") ContainerDescriptor getIfPresent(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Get a container
      Parameters:
      uid -
      Returns:
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • create

      @PUT @Path("{uid}") BaseContainerDescriptor create(@PathParam("uid") String uid, ContainerDescriptor descriptor) throws net.bluemind.core.api.fault.ServerFault
      Create a container
      Parameters:
      uid -
      descriptor -
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • delete

      @DELETE @Path("{uid}") void delete(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault
      Delete a container
      Parameters:
      uid -
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • update

      @POST @Path("{uid}") void update(@PathParam("uid") String uid, ContainerModifiableDescriptor descriptor) throws net.bluemind.core.api.fault.ServerFault
      Update a container
      Parameters:
      uid -
      descriptor -
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • all

      @POST @Path("_list") List<ContainerDescriptor> all(ContainerQuery query) throws net.bluemind.core.api.fault.ServerFault
      Parameters:
      query - the container query filter
      Returns:
      List of all "readeable" containers for current User
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • allLight

      @POST @Path("_listLight") List<BaseContainerDescriptor> allLight(ContainerQuery query) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • allForUser

      @POST @Path("_listforuser") List<ContainerDescriptor> allForUser(@QueryParam("domainUid") String domainUid, @QueryParam("userUid") String userUid, ContainerQuery query) throws net.bluemind.core.api.fault.ServerFault
      Parameters:
      domainUid - the domain UID
      userUid - the user UID
      query - the container query filter
      Returns:
      List of all "readeable" containers for current User
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getContainers

      @POST @Path("_mget") List<ContainerDescriptor> getContainers(List<String> containerIds) throws net.bluemind.core.api.fault.ServerFault
      Get container
      Parameters:
      containerIds -
      Returns:
      ContainerDescriptor list
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getContainersLight

      @POST @Path("_mgetLight") List<BaseContainerDescriptor> getContainersLight(List<String> containerIds) throws net.bluemind.core.api.fault.ServerFault
      Get container
      Parameters:
      containerIds -
      Returns:
      BaseContainerDescriptor list
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • setAccessControlList

      @POST @Path("{uid}/_acl") void setAccessControlList(@PathParam("uid") String uid, List<AccessControlEntry> entries) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • getAccessControlLists

      @POST @Path("_macl") Map<String, List<AccessControlEntry>> getAccessControlLists(List<String> containerIds) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault
    • exists

      @GET @Path("_exists") boolean exists(String containerUid) throws net.bluemind.core.api.fault.ServerFault
      Throws:
      net.bluemind.core.api.fault.ServerFault