Fluent builder for accumulating a list of Dependency entries. Each add call appends one dependency for an app id, with an optional branch or version and an admin-only flag, and build returns the accumulated list.

Group: Builders


Methods

add(String appId)

Returns: DependencyMappingBuilder

Adds a dependency on the given app, taking the highest available version and not restricted to the admin domain.

ParameterDescription
appIdthe id of the app to depend on

add(String appId, Boolean adminOnly)

Returns: DependencyMappingBuilder

Adds a dependency on the given app, taking the highest available version.

ParameterDescription
appIdthe id of the app to depend on
adminOnlytrue to restrict this dependency to the admin domain, null is treated as false

add(String appId, String branch)

Returns: DependencyMappingBuilder

Adds a dependency on the given app and branch or version, not restricted to the admin domain.

ParameterDescription
appIdthe id of the app to depend on
branchthe required branch or version of the app, or null to take the highest available

add(String appId, String branch, Boolean adminOnly)

Returns: DependencyMappingBuilder

Adds a dependency on the given app, branch or version, and admin-only setting.

ParameterDescription
appIdthe id of the app to depend on
branchthe required branch or version of the app, or null to take the highest available
adminOnlytrue to restrict this dependency to the admin domain, null is treated as false

build()

Returns: List<Dependency>

Returns the list of dependencies accumulated by prior add calls.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.