public final class ModuleEnvironments.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAEnvironment> |
branch(CMAEnvironment sourceEnvironment,
CMAEnvironment newEnvironment,
CMACallback<CMAEnvironment> callback)
Deprecated.
This method has been renamed to
ModuleEnvironments.clone(CMAEnvironment, CMAEnvironment) .
It will be removed in the next major release. |
CMACallback<CMAEnvironment> |
clone(CMAEnvironment sourceEnvironment,
CMAEnvironment newEnvironment,
CMACallback<CMAEnvironment> callback)
Create an environment using a source environment.
|
CMACallback<CMAEnvironment> |
create(CMAEnvironment environment,
CMACallback<CMAEnvironment> callback)
Create an environment in the configured space.
|
CMACallback<CMAEnvironment> |
create(java.lang.String spaceId,
CMAEnvironment environment,
CMACallback<CMAEnvironment> callback)
Create an environment using the given space id.
|
CMACallback<java.lang.Integer> |
delete(CMAEnvironment environment,
CMACallback<java.lang.Integer> callback)
Delete an environment.
|
CMACallback<CMAArray<CMAEnvironment>> |
fetchAll(CMACallback<CMAArray<CMAEnvironment>> callback)
Fetch all environments of the configured space.
|
CMACallback<CMAArray<CMAEnvironment>> |
fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAEnvironment>> callback)
Fetch all environments of the given space.
|
CMACallback<CMAEnvironment> |
fetchOne(java.lang.String environmentId,
CMACallback<CMAEnvironment> callback)
Fetch an environment with a given environmentId and the configured space.
|
CMACallback<CMAEnvironment> |
fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
CMACallback<CMAEnvironment> callback)
Fetch an environment with a given
environmentId from the space given. |
CMACallback<CMAEnvironment> |
update(CMAEnvironment environment,
CMACallback<CMAEnvironment> callback)
Update an environment.
|
public CMACallback<CMAEnvironment> create(CMAEnvironment environment, CMACallback<CMAEnvironment> callback)
environment
- CMAEnvironmentcallback
- Callbackjava.lang.IllegalArgumentException
- if the configured space id is null.java.lang.IllegalArgumentException
- if environment is null.CMAClient.Builder.setSpaceId(String)
public CMACallback<CMAEnvironment> create(java.lang.String spaceId, CMAEnvironment environment, CMACallback<CMAEnvironment> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
.
spaceId
- Id of the space to host environment inenvironment
- CMAEnvironmentcallback
- Callbackjava.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if environment is null.public CMACallback<CMAEnvironment> clone(CMAEnvironment sourceEnvironment, CMAEnvironment newEnvironment, CMACallback<CMAEnvironment> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
.
sourceEnvironment
- base of the created environment.newEnvironment
- to be created environment.callback
- Callbackjava.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if environment is null.public CMACallback<CMAEnvironment> branch(CMAEnvironment sourceEnvironment, CMAEnvironment newEnvironment, CMACallback<CMAEnvironment> callback)
ModuleEnvironments.clone(CMAEnvironment, CMAEnvironment)
.
It will be removed in the next major release.
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
.
sourceEnvironment
- base of the created environment.newEnvironment
- to be created environment.callback
- Callbackjava.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if environment is null.public CMACallback<java.lang.Integer> delete(CMAEnvironment environment, CMACallback<java.lang.Integer> callback)
environment
- environment to be deletedcallback
- Callbackjava.lang.IllegalArgumentException
- if environment's space id is null.java.lang.IllegalArgumentException
- if environment's id is null.public CMACallback<CMAArray<CMAEnvironment>> fetchAll(CMACallback<CMAArray<CMAEnvironment>> callback)
This fetch uses the default parameter defined in DefaultQueryParameter.FETCH
.
callback
- Inform about results on the callback.CMACallback
instance.java.lang.IllegalArgumentException
- if configured space id is null.CMAClient.Builder.setSpaceId(String)
public CMACallback<CMAArray<CMAEnvironment>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAEnvironment>> callback)
This fetch uses the default parameter defined in DefaultQueryParameter.FETCH
.
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
.
spaceId
- Id of the space to host environment incallback
- Inform about results on the callback.CMACallback
instance.java.lang.IllegalArgumentException
- if space id is null.public CMACallback<CMAEnvironment> fetchOne(java.lang.String environmentId, CMACallback<CMAEnvironment> callback)
environmentId
- environment IDcallback
- Callbackjava.lang.IllegalArgumentException
- if environment's space id is null.java.lang.IllegalArgumentException
- if environment's id is null.CMAClient.Builder.setSpaceId(String)
,
CMAClient.Builder.setEnvironmentId(String)
public CMACallback<CMAEnvironment> fetchOne(java.lang.String spaceId, java.lang.String environmentId, CMACallback<CMAEnvironment> callback)
environmentId
from the space given.
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
.
spaceId
- Id of the space to host environment inenvironmentId
- environment IDcallback
- Callbackjava.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if environment id is null.public CMACallback<CMAEnvironment> update(CMAEnvironment environment, CMACallback<CMAEnvironment> callback)
environment
- environmentcallback
- Callbackjava.lang.IllegalArgumentException
- if environment is null.java.lang.IllegalArgumentException
- if environment's space id is null.java.lang.IllegalArgumentException
- if environment's name is null.java.lang.IllegalArgumentException
- if environment's environment id is null.java.lang.IllegalArgumentException
- if environment's version is null.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.