public class Containers extends java.lang.Object implements IContainers
Constructor and Description |
---|
Containers(BmContext context) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ContainerDescriptor> |
all(ContainerQuery query) |
java.util.List<ContainerDescriptor> |
allForUser(java.lang.String domainUid,
java.lang.String userUid,
ContainerQuery query) |
java.util.List<BaseContainerDescriptor> |
allLight(ContainerQuery query) |
ContainerDescriptor |
asDescriptorForUser(Container c,
SecurityContext sc,
java.lang.String userUid) |
java.util.List<ContainerDescriptor> |
asDescriptors(java.util.List<Container> containers,
SecurityContext sc) |
void |
create(java.lang.String uid,
ContainerDescriptor descriptor)
Create a container
|
void |
delete(java.lang.String uid)
Delete a container
|
ContainerDescriptor |
get(java.lang.String uid)
Get a container
|
java.util.List<ContainerDescriptor> |
getContainers(java.util.List<java.lang.String> containerIds)
Get container
|
java.util.List<BaseContainerDescriptor> |
getContainersLight(java.util.List<java.lang.String> containerIds)
Get container
|
ContainerDescriptor |
getForUser(java.lang.String domainUid,
java.lang.String userUid,
java.lang.String uid)
Get a container as if it where requested by another user.
|
ContainerDescriptor |
getIfPresent(java.lang.String uid)
Get a container
|
void |
setAccessControlList(java.lang.String uid,
java.util.List<AccessControlEntry> entries) |
void |
update(java.lang.String uid,
ContainerModifiableDescriptor descriptor)
Update a container
|
public Containers(BmContext context)
public void create(java.lang.String uid, ContainerDescriptor descriptor) throws ServerFault
IContainers
create
in interface IContainers
ServerFault
public void delete(java.lang.String uid) throws ServerFault
IContainers
delete
in interface IContainers
ServerFault
public void update(java.lang.String uid, ContainerModifiableDescriptor descriptor) throws ServerFault
IContainers
update
in interface IContainers
ServerFault
public java.util.List<ContainerDescriptor> getContainers(java.util.List<java.lang.String> containerIds) throws ServerFault
IContainers
getContainers
in interface IContainers
ContainerDescriptor
listServerFault
public java.util.List<BaseContainerDescriptor> getContainersLight(java.util.List<java.lang.String> containerIds) throws ServerFault
IContainers
getContainersLight
in interface IContainers
BaseContainerDescriptor
listServerFault
public java.util.List<ContainerDescriptor> all(ContainerQuery query) throws ServerFault
all
in interface IContainers
ServerFault
public java.util.List<BaseContainerDescriptor> allLight(ContainerQuery query) throws ServerFault
allLight
in interface IContainers
ServerFault
public java.util.List<ContainerDescriptor> allForUser(java.lang.String domainUid, java.lang.String userUid, ContainerQuery query) throws ServerFault
allForUser
in interface IContainers
ServerFault
public ContainerDescriptor getForUser(java.lang.String domainUid, java.lang.String userUid, java.lang.String uid) throws ServerFault
IContainers
getForUser
in interface IContainers
ServerFault
public java.util.List<ContainerDescriptor> asDescriptors(java.util.List<Container> containers, SecurityContext sc) throws ServerFault
ServerFault
public ContainerDescriptor asDescriptorForUser(Container c, SecurityContext sc, java.lang.String userUid) throws ServerFault
ServerFault
public ContainerDescriptor get(java.lang.String uid) throws ServerFault
IContainers
get
in interface IContainers
uid
- the containers unique identifierServerFault
- with ErrorCode.NOT_FOUND
if the container does
not existpublic void setAccessControlList(java.lang.String uid, java.util.List<AccessControlEntry> entries) throws ServerFault
setAccessControlList
in interface IContainers
ServerFault
public ContainerDescriptor getIfPresent(java.lang.String uid) throws ServerFault
IContainers
getIfPresent
in interface IContainers
ServerFault
Copyright © 2021. All Rights Reserved.