public final class ModuleSpaces.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMASpace> |
create(CMASpace space,
CMACallback<CMASpace> callback)
Create a Space.
|
CMACallback<CMASpace> |
create(CMASpace space,
java.lang.String organizationId,
CMACallback<CMASpace> callback)
Create a Space in an Organization.
|
CMACallback<CMASpace> |
create(java.lang.String spaceName,
CMACallback<CMASpace> callback)
Create a Space.
|
CMACallback<CMASpace> |
create(java.lang.String spaceName,
java.lang.String organizationId,
CMACallback<CMASpace> callback)
Create a Space in an Organization.
|
CMACallback<java.lang.Integer> |
delete(CMASpace space,
CMACallback<java.lang.Integer> callback)
Delete a Space.
|
CMACallback<java.lang.Integer> |
delete(java.lang.String spaceId,
CMACallback<java.lang.Integer> callback)
Delete a Space.
|
CMACallback<CMAArray<CMASpace>> |
fetchAll(CMACallback<CMAArray<CMASpace>> callback)
Fetch all Spaces.
|
CMACallback<CMAArray<CMASpace>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMASpace>> callback)
Fetch all Spaces using a non empty query.
|
CMACallback<CMASpace> |
fetchOne(java.lang.String spaceId,
CMACallback<CMASpace> callback)
Fetch a Space with a given
spaceId . |
CMACallback<CMASpace> |
update(CMASpace space,
CMACallback<CMASpace> callback)
Update a Space.
|
public CMACallback<CMASpace> create(java.lang.String spaceName, CMACallback<CMASpace> callback)
spaceName
- Space namecallback
- Callbackjava.lang.IllegalArgumentException
- if spaceName is null.public CMACallback<CMASpace> create(CMASpace space, CMACallback<CMASpace> callback)
space
- CMASpacecallback
- Callbackjava.lang.IllegalArgumentException
- if space is null.public CMACallback<CMASpace> create(java.lang.String spaceName, java.lang.String organizationId, CMACallback<CMASpace> callback)
spaceName
- Space nameorganizationId
- organization IDcallback
- Callbackjava.lang.IllegalArgumentException
- if spaceName is null.java.lang.IllegalArgumentException
- if organizationId is null.public CMACallback<CMASpace> create(CMASpace space, java.lang.String organizationId, CMACallback<CMASpace> callback)
space
- CMASpaceorganizationId
- organization IDcallback
- Callbackjava.lang.IllegalArgumentException
- if space is null.java.lang.IllegalArgumentException
- if space's name is null.java.lang.IllegalArgumentException
- if organizationId is null.public CMACallback<java.lang.Integer> delete(java.lang.String spaceId, CMACallback<java.lang.Integer> callback)
spaceId
- Space IDcallback
- Callbackjava.lang.IllegalArgumentException
- if space's id is null.public CMACallback<java.lang.Integer> delete(CMASpace space, CMACallback<java.lang.Integer> callback)
space
- Spacecallback
- Callbackjava.lang.IllegalArgumentException
- if space's id is null.public CMACallback<CMAArray<CMASpace>> fetchAll(CMACallback<CMAArray<CMASpace>> callback)
This fetch uses the default parameter defined in DefaultQueryParameter.FETCH
.
callback
- Inform about results on the callback.CMACallback
instance.public CMACallback<CMAArray<CMASpace>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMASpace>> callback)
query
- used to narrow down on the space requested.callback
- callback to be called, once the result is present.CMACallback
instancepublic CMACallback<CMASpace> fetchOne(java.lang.String spaceId, CMACallback<CMASpace> callback)
spaceId
.spaceId
- Space IDcallback
- Callbackjava.lang.IllegalArgumentException
- if space's id is null.public CMACallback<CMASpace> update(CMASpace space, CMACallback<CMASpace> callback)
space
- Spacecallback
- Callbackjava.lang.IllegalArgumentException
- if space is null.java.lang.IllegalArgumentException
- if space's name is null.java.lang.IllegalArgumentException
- if space's space id is null.java.lang.IllegalArgumentException
- if space's version is null.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.