Package com.adobe.aio.cloudmanager
Interface ContentSetApi
-
public interface ContentSetApiContent Set API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ContentFlowcancelFlow(@NotNull String programId, @NotNull String id)Cancel the content flow.@NotNull ContentSetcreate(@NotNull String programId, @NotNull String name, String description, @NotNull Collection<ContentSet.PathDefinition> definitions)Create a new ContentSet in the specified program.voiddelete(@NotNull String programId, @NotNull String id)Delete the content set.@NotNull ContentSetget(@NotNull String programId, @NotNull String id)Get the content set.@NotNull ContentFlowgetFlow(@NotNull String programId, @NotNull String id)Retrieve the content flow.@NotNull Collection<ContentSet>list(@NotNull String programId)List content sets within the specified program.@NotNull Collection<ContentSet>list(@NotNull String programId, int limit)List content sets within the specified program, using the specified limit and starting at 0.@NotNull Collection<ContentSet>list(@NotNull String programId, int start, int limit)List content sets within the specified program, using the specified limit and starting at the specified position.@NotNull Collection<ContentFlow>listFlows(@NotNull String programId)List the content flows which exist in the specified program.@NotNull Collection<ContentFlow>listFlows(@NotNull String programId, int limit)List the content flows which exist in the specified program, using the specified limit and starting at 0.@NotNull Collection<ContentFlow>listFlows(@NotNull String programId, int start, int limit)List the content flows which exist in the specified program, using the specified limit and starting at the specified position.@NotNull ContentFlowstartFlow(@NotNull String programId, @NotNull String id, @NotNull String srcEnvironmentId, @NotNull String destEnvironmentId, boolean includeAcl)Start a content flow between the specified environments, using the specified content set.@NotNull ContentSetupdate(@NotNull String programId, @NotNull String id, String name, String description, Collection<ContentSet.PathDefinition> definitions)Update the content set with the provided details.
-
-
-
Method Detail
-
list
@NotNull @NotNull Collection<ContentSet> list(@NotNull @NotNull String programId) throws CloudManagerApiException
List content sets within the specified program.- Parameters:
programId- the id of the program context- Returns:
- list of content sets
- Throws:
CloudManagerApiException- when any error occurs
-
list
@NotNull @NotNull Collection<ContentSet> list(@NotNull @NotNull String programId, int limit) throws CloudManagerApiException
List content sets within the specified program, using the specified limit and starting at 0.- Parameters:
programId- the id of the program contextlimit- the number of flows to return- Returns:
- list of content sets
- Throws:
CloudManagerApiException- when any error occurs
-
list
@NotNull @NotNull Collection<ContentSet> list(@NotNull @NotNull String programId, int start, int limit) throws CloudManagerApiException
List content sets within the specified program, using the specified limit and starting at the specified position.- Parameters:
programId- the id of the program contextstart- the starting position of the resultslimit- the number of flows to return- Returns:
- list of content sets
- Throws:
CloudManagerApiException- when any error occurs
-
create
@NotNull @NotNull ContentSet create(@NotNull @NotNull String programId, @NotNull @NotNull String name, String description, @NotNull @NotNull Collection<ContentSet.PathDefinition> definitions) throws CloudManagerApiException
Create a new ContentSet in the specified program.- Parameters:
programId- the id of the program contextname- name of the content setdescription- optional descriptiondefinitions- path definitions for the content set- Returns:
- the created content set
- Throws:
CloudManagerApiException- when any error occurs
-
get
@NotNull @NotNull ContentSet get(@NotNull @NotNull String programId, @NotNull @NotNull String id) throws CloudManagerApiException
Get the content set.- Parameters:
programId- the id of the program contextid- the content set id- Returns:
- the content set
- Throws:
CloudManagerApiException- when any error occurs
-
update
@NotNull @NotNull ContentSet update(@NotNull @NotNull String programId, @NotNull @NotNull String id, String name, String description, Collection<ContentSet.PathDefinition> definitions) throws CloudManagerApiException
Update the content set with the provided details.- Parameters:
programId- the id of the program contextid- the content set idname- the new name, ornullto leave unchangeddescription- the new description, ornullto leave unchangeddefinitions- the new definitions, ornullto leave unchanged- Returns:
- the updated content set
- Throws:
CloudManagerApiException- when any error occurs
-
delete
void delete(@NotNull @NotNull String programId, @NotNull @NotNull String id) throws CloudManagerApiExceptionDelete the content set.- Parameters:
programId- the id of the program contextid- the content set id- Throws:
CloudManagerApiException- when any error occurs
-
listFlows
@NotNull @NotNull Collection<ContentFlow> listFlows(@NotNull @NotNull String programId) throws CloudManagerApiException
List the content flows which exist in the specified program.- Parameters:
programId- the id of the program context- Returns:
- a list of content flows
- Throws:
CloudManagerApiException- when any error occurs
-
listFlows
@NotNull @NotNull Collection<ContentFlow> listFlows(@NotNull @NotNull String programId, int limit) throws CloudManagerApiException
List the content flows which exist in the specified program, using the specified limit and starting at 0.- Parameters:
programId- the id of the program contextlimit- the number of flows to return- Returns:
- a list of content flows
- Throws:
CloudManagerApiException- when any error occurs
-
listFlows
@NotNull @NotNull Collection<ContentFlow> listFlows(@NotNull @NotNull String programId, int start, int limit) throws CloudManagerApiException
List the content flows which exist in the specified program, using the specified limit and starting at the specified position.- Parameters:
programId- the id of the program contextstart- the starting position of the resultslimit- the number of flows to return- Returns:
- a list of content flows
- Throws:
CloudManagerApiException- when any error occurs
-
startFlow
@NotNull @NotNull ContentFlow startFlow(@NotNull @NotNull String programId, @NotNull @NotNull String id, @NotNull @NotNull String srcEnvironmentId, @NotNull @NotNull String destEnvironmentId, boolean includeAcl) throws CloudManagerApiException
Start a content flow between the specified environments, using the specified content set.- Parameters:
programId- the id of the program contextid- the id of the content set to usesrcEnvironmentId- the id of the source environmentdestEnvironmentId- the id of the destination environmentincludeAcl- whether to include the content's ACL definitions- Returns:
- the content flow
- Throws:
CloudManagerApiException- when any error occurs
-
getFlow
@NotNull @NotNull ContentFlow getFlow(@NotNull @NotNull String programId, @NotNull @NotNull String id) throws CloudManagerApiException
Retrieve the content flow.- Parameters:
programId- the id of the program contextid- the id of the content flow- Returns:
- the content flow
- Throws:
CloudManagerApiException- when any error occurs
-
cancelFlow
@NotNull @NotNull ContentFlow cancelFlow(@NotNull @NotNull String programId, @NotNull @NotNull String id) throws CloudManagerApiException
Cancel the content flow.- Parameters:
programId- the id of the program contextid- the id of the content flow- Returns:
- the content flow
- Throws:
CloudManagerApiException- when any error occurs
-
-