public final class ModuleSpaceMemberships.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMASpaceMembership> |
create(CMASpaceMembership membership,
CMACallback<CMASpaceMembership> callback)
Asynchronously create a new membership.
|
CMACallback<CMASpaceMembership> |
create(java.lang.String spaceId,
CMASpaceMembership membership,
CMACallback<CMASpaceMembership> callback)
Asynchronously create a new membership.
|
CMACallback<java.lang.Integer> |
delete(CMASpaceMembership membership,
CMACallback<java.lang.Integer> callback)
Delete the given membership instance asynchronously.
|
CMACallback<CMAArray<CMASpaceMembership>> |
fetchAll(CMACallback<CMAArray<CMASpaceMembership>> callback)
Fetch all memberships of this space, asynchronously.
|
CMACallback<CMAArray<CMASpaceMembership>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMASpaceMembership>> callback)
Fetch all memberships of the configured space, asynchronously.
|
CMACallback<CMAArray<CMASpaceMembership>> |
fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMASpaceMembership>> callback)
Fetch all memberships of this space, asynchronously.
|
CMACallback<CMAArray<CMASpaceMembership>> |
fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMASpaceMembership>> callback)
Fetch all memberships of this space, asynchronously.
|
CMACallback<CMASpaceMembership> |
fetchOne(java.lang.String membershipId,
CMACallback<CMASpaceMembership> callback)
Fetches one space membership by its id from Contentful asynchronously.
|
CMACallback<CMASpaceMembership> |
fetchOne(java.lang.String spaceId,
java.lang.String membershipId,
CMACallback<CMASpaceMembership> callback)
Fetches one space membership by its id from Contentful asynchronously.
|
CMACallback<CMASpaceMembership> |
update(CMASpaceMembership membership,
CMACallback<CMASpaceMembership> callback)
Update the given membership instance on Contentful, asynchronously.
|
public CMACallback<CMAArray<CMASpaceMembership>> fetchAll(CMACallback<CMAArray<CMASpaceMembership>> callback)
callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured spaceId is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
,
ModuleSpaceMemberships.fetchAll(String)
public CMACallback<CMAArray<CMASpaceMembership>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMASpaceMembership>> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the space identifier identifying the space.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.ModuleSpaceMemberships.fetchAll(String)
public CMACallback<CMAArray<CMASpaceMembership>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMASpaceMembership>> callback)
query
- define which space memberships to return.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured spaceId is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.ModuleSpaceMemberships.fetchAll(String)
public CMACallback<CMAArray<CMASpaceMembership>> fetchAll(java.lang.String spaceId, java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMASpaceMembership>> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the space identifier identifying the space.query
- define which space memberships to return.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.ModuleSpaceMemberships.fetchAll(String)
public CMACallback<CMASpaceMembership> fetchOne(java.lang.String membershipId, CMACallback<CMASpaceMembership> callback)
membershipId
- the id of the membership to be found.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured space id is null.java.lang.IllegalArgumentException
- if membership id is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
,
ModuleSpaceMemberships.fetchOne(String, String)
public CMACallback<CMASpaceMembership> fetchOne(java.lang.String spaceId, java.lang.String membershipId, CMACallback<CMASpaceMembership> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the space this membership is hosted by.membershipId
- the id of the membership to be found.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if membership id is null.ModuleSpaceMemberships.fetchOne(String, String)
public CMACallback<CMASpaceMembership> create(java.lang.String spaceId, CMASpaceMembership membership, CMACallback<CMASpaceMembership> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the space id to host the membership.membership
- the new membership to be created.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured space id is null.java.lang.IllegalArgumentException
- if membership is null.ModuleSpaceMemberships.create(String, CMASpaceMembership)
public CMACallback<CMASpaceMembership> create(CMASpaceMembership membership, CMACallback<CMASpaceMembership> callback)
membership
- the new membership to be created.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured space id is null.java.lang.IllegalArgumentException
- if membership is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.ModuleSpaceMemberships.create(String, CMASpaceMembership)
public CMACallback<CMASpaceMembership> update(CMASpaceMembership membership, CMACallback<CMASpaceMembership> callback)
Please make sure that the instance provided is fetched from Contentful. Otherwise you will get an exception thrown.
membership
- the membership fetched from Contentful, updated by caller, to be updated.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if membership is null.java.lang.IllegalArgumentException
- if membership id is null.java.lang.IllegalArgumentException
- if membership does not have a version attached.ModuleSpaceMemberships.update(CMASpaceMembership)
public CMACallback<java.lang.Integer> delete(CMASpaceMembership membership, CMACallback<java.lang.Integer> callback)
Please make sure that the instance provided is fetched from Contentful. Otherwise you will get an exception thrown.
membership
- the membership fetched from Contentful, updated by caller, to be deleted.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if membership id is null.ModuleSpaceMemberships.delete(CMASpaceMembership)
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.