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 void |
assertValidProfileId(Set<String> profileIds,
String profileId)
Asserts that the given profile ID is in the given set of profile IDs, throwing an exception if its not valid
|
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 String |
getProfileIconURL(Profile[] profiles)
Returns the icon URL of the given list of profiles relative to the REST API URL or null if it could not be determined
|
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 String |
getSummaryMarkdown(Profile[] profiles)
Returns the first summary markdown text of the profiles
|
static Profile |
profile(Profile[] profiles,
String profileId)
Returns the profile for the given id if it exists in the array or null
|
static List<String> |
profileIds(Iterable<Profile> profiles) |
static List<String> |
profileIds(Profile... profiles) |
static String |
versionId(Version version) |
static List<String> |
versionIds(Iterable<Version> versions) |
static List<String> |
versionIds(Version... versions) |
public static final boolean useDirectoriesForProfiles
public static final String PROFILE_FOLDER_SUFFIX
public static Profile profile(Profile[] profiles, String profileId)
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 versionpublic static String convertProfileIdToPath(String profileId)
public static String getProfileIconURL(Profile[] profiles)
public static String getSummaryMarkdown(Profile[] profiles)
Copyright © 2011–2014 Red Hat. All rights reserved.