public class ContainerRepository extends RestRepository<Container>
| Constructor and Description |
|---|
ContainerRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String name,
ObjectCallback<Container> callback)
Create a new container.
|
RestContract |
createContract()
Creates a
RestContract representing the user type's custom
routes. |
void |
get(java.lang.String containerName,
ObjectCallback<Container> callback)
Get a named container
|
void |
getAll(ListCallback<Container> callback)
List all containers.
|
getApplicationContext, getRestAdaptercreateObject, getAdapter, getClassName, invokeStaticMethod, invokeStaticMethod, setAdapterpublic RestContract createContract()
RestContract representing the user type's custom
routes. Used to extend an Adapter to support user. Calls
super ModelRepository createContract first.createContract in class RestRepository<Container>RestContract for this model type.public void create(java.lang.String name,
ObjectCallback<Container> callback)
name - The name of the container, must be unique.callback - The callback to be executed when finished.public void get(java.lang.String containerName,
ObjectCallback<Container> callback)
containerName - The container name.callback - The callback to be executed when finished.public void getAll(ListCallback<Container> callback)
callback - The callback to be executed when finished.