Interface IContainers
@Path("/containers/_manage")
public interface IContainers
-
Method Summary
Modifier and TypeMethodDescriptionall(ContainerQuery query) allForUser(String domainUid, String userUid, ContainerQuery query) allLight(ContainerQuery query) create(String uid, ContainerDescriptor descriptor) Create a containervoidDelete a containerbooleanGet a containergetAccessControlLists(List<String> containerIds) getContainers(List<String> containerIds) Get containergetContainersLight(List<String> containerIds) Get containergetForUser(String domainUid, String userUid, String uid) Get a container as if it where requested by another user.getIfPresent(String uid) Get a containergetLightIfPresent(String uid) voidsetAccessControlList(String uid, List<AccessControlEntry> entries) voidupdate(String uid, ContainerModifiableDescriptor descriptor) Update a container
-
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- withErrorCode.NOT_FOUNDif 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 UIDuserUid- the user UIDquery- 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:
ContainerDescriptorlist- 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:
BaseContainerDescriptorlist- 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
-
exists
@GET @Path("_exists") boolean exists(String containerUid) throws net.bluemind.core.api.fault.ServerFault - Throws:
net.bluemind.core.api.fault.ServerFault
-