public class Containers extends 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,
String profileId)
Returns true if the given container has the given profile directly (rather than inheritence)
|
static List<Container> |
containersForProfile(Container[] containers,
String profileId) |
static List<Container> |
containersForProfile(Container[] containers,
String profileId,
String versionId) |
static String |
createContainerName(Container[] containers,
String profile,
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 List<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 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(Set<Profile> set,
Profile[] profiles) |
static void |
setParentProfileIds(Version version,
Profile profile,
List<String> parentProfileIds)
Sets the list of parent profile IDs
|
public static List<Container> containersForProfile(Container[] containers, String profileId)
public static List<Container> containersForProfile(Container[] containers, String profileId, String versionId)
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, String profileId)
public static List<Profile> overlayProfiles(Container container)
protected static void recursiveAddProfiles(Set<Profile> set, Profile[] profiles)
public static String createContainerName(Container[] containers, String profile, String scheme, NameValidator nameValidator)
public static List<String> getParentProfileIds(Profile profile)
Copyright © 2011–2014 Red Hat. All rights reserved.