public class Containers
extends java.lang.Object
Constructor and Description |
---|
Containers() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containerHasProfile(Container container,
Profile profile)
Returns true if the given container has the given profile
|
static boolean |
containerHasProfile(Container container,
java.lang.String profileId)
Returns true if the given container has the given profile directly (rather than inheritence)
|
static java.util.List<Container> |
containersForProfile(Container[] containers,
java.lang.String profileId) |
static java.lang.String |
createContainerName(Container[] containers,
java.lang.String profile,
java.lang.String scheme,
NameValidator nameValidator)
Creates a name for a new container given the current list of containers and the profile name.
|
static NameValidator |
createNameValidator(Container[] containers)
Creates a name validator that excludes any container names that already exist
|
static java.util.List<java.lang.String> |
getParentProfileIds(Profile profile)
Returns a list of parent profile Ids for the given profile
|
static NameValidator |
joinNameValidators(NameValidator... validators)
Creates a name validator by combining all of the given name validators so that a name is valid iff they all return true
|
static java.util.List<Profile> |
overlayProfiles(Container container)
Returns the effective list of profile ids for the current container;
that is the list of all profiles and descendant profiles in order in which their values
are to be applied.
|
protected static void |
recursiveAddProfiles(java.util.Set<Profile> set,
Profile[] profiles) |
static void |
setParentProfileIds(Version version,
Profile profile,
java.util.List<java.lang.String> parentProfileIds)
Sets the list of parent profile IDs
|
public static java.util.List<Container> containersForProfile(Container[] containers, java.lang.String profileId)
public static NameValidator createNameValidator(Container[] containers)
public static NameValidator joinNameValidators(NameValidator... validators)
public static boolean containerHasProfile(Container container, Profile profile)
public static boolean containerHasProfile(Container container, java.lang.String profileId)
public static java.util.List<Profile> overlayProfiles(Container container)
protected static void recursiveAddProfiles(java.util.Set<Profile> set, Profile[] profiles)
public static java.lang.String createContainerName(Container[] containers, java.lang.String profile, java.lang.String scheme, NameValidator nameValidator)
public static java.util.List<java.lang.String> getParentProfileIds(Profile profile)
Copyright © 2016 Red Hat. All Rights Reserved.