Interface ContentSetApi

    • Method Detail

      • 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 context
        limit - 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 context
        start - the starting position of the results
        limit - the number of flows to return
        Returns:
        list of content sets
        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 context
        id - the content set id
        name - the new name, or null to leave unchanged
        description - the new description, or null to leave unchanged
        definitions - the new definitions, or null to leave unchanged
        Returns:
        the updated content set
        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 context
        limit - 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 context
        start - the starting position of the results
        limit - 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 context
        id - the id of the content set to use
        srcEnvironmentId - the id of the source environment
        destEnvironmentId - the id of the destination environment
        includeAcl - whether to include the content's ACL definitions
        Returns:
        the content flow
        Throws:
        CloudManagerApiException - when any error occurs