public class Profiles extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROFILE_FOLDER_SUFFIX |
static boolean |
useDirectoriesForProfiles
Should we convert a directory of profiles called "foo-bar" into a directory "foo/bar.profile" structure to use
the file system better, to better organise profiles into folders and make it easier to work with profiles in the wiki
|
| Constructor and Description |
|---|
Profiles() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertProfileIdToPath(String profileId)
Converts a profile ID into a path for the folder in a file system, git or on the web
|
static Map<String,String> |
getConfigurationFileNameMap(Profile[] profiles)
Returns the configuration file names for the given profile
|
static List<String> |
getConfigurationFileNames(Collection<Profile> profiles)
Returns the configuration file names for the given profile
|
static byte[] |
getFileConfiguration(Collection<Profile> profiles,
String fileName)
Returns the configuration file data for the given file name and list of inherited profiles
|
static Map<String,String> |
getOverlayConfiguration(FabricService fabricService,
Iterable<String> profileIds,
String versionId,
String pid)
Returns the overlay configuration for the given list of profile ids and the configuration PID.
|
static Map<String,Map<String,String>> |
getOverlayFactoryConfigurations(FabricService fabricService,
Iterable<String> profileIds,
String versionId,
String pid)
Returns the overlay factory configurations for the given list of profile ids which start with the given pid.
|
static List<Profile> |
getProfiles(FabricService fabricService,
Iterable<String> profileIds,
String versionId)
Returns the
Profile objects for the given list of profile ids for the given version |
static List<String> |
profileIds(Iterable<Profile> profiles) |
public static final boolean useDirectoriesForProfiles
public static final String PROFILE_FOLDER_SUFFIX
public static List<String> getConfigurationFileNames(Collection<Profile> profiles)
public static byte[] getFileConfiguration(Collection<Profile> profiles, String fileName)
public static Map<String,String> getConfigurationFileNameMap(Profile[] profiles)
public static Map<String,String> getOverlayConfiguration(FabricService fabricService, Iterable<String> profileIds, String versionId, String pid)
public static Map<String,Map<String,String>> getOverlayFactoryConfigurations(FabricService fabricService, Iterable<String> profileIds, String versionId, String pid)
public static List<Profile> getProfiles(FabricService fabricService, Iterable<String> profileIds, String versionId)
Profile objects for the given list of profile ids for the given versionCopyright © 2011–2014 Red Hat. All rights reserved.