public interface Profile extends Comparable<Profile>, HasId
| Modifier and Type | Field and Description |
|---|---|
static String |
ABSTRACT
The attribute key for the abstract flag
|
static String |
DELETED
Key indicating a deletion.
|
static String |
DESCRIPTION
The attribute key for the description of the profile
|
static String |
HASH |
static String |
HIDDEN
The attribute key for the hidden flag
|
static String |
LOCKED
The attribute key for the locked flag
|
static String |
PARENTS
The attribute key for the list of parents
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
agentConfigurationEquals(Profile other)
Checks if the two Profiles share the same agent configuration.
|
boolean |
configurationEquals(Profile other) |
void |
delete() |
void |
delete(boolean force) |
boolean |
exists()
Checks if the profile exists.
|
Container[] |
getAssociatedContainers() |
Map<String,String> |
getAttributes()
Returns a read only map of all the attributes of this profile
|
List<String> |
getBundles() |
Map<String,String> |
getConfiguration(String pid)
Returns the configuration properties for the given PID
|
List<String> |
getConfigurationFileNames()
Returns the configuration file names that are available on this profile
|
Map<String,Map<String,String>> |
getConfigurations()
Returns all of the configuration properties
|
Map<String,String> |
getContainerConfiguration()
Returns the configuration properties for the container
|
List<String> |
getEndorsedLibraries() |
List<String> |
getExtensionLibraries() |
List<String> |
getFabs() |
List<String> |
getFeatures() |
byte[] |
getFileConfiguration(String fileName)
Returns the configuration file for the given name
|
Map<String,byte[]> |
getFileConfigurations() |
List<String> |
getLibraries() |
Profile |
getOverlay()
Gets profile with configuration slitted with parents.
|
Profile |
getOverlay(boolean substitute)
Same as getOverlay() but also perform variable substitutions
|
List<String> |
getOverrides() |
Profile[] |
getParents() |
String |
getProfileHash() |
List<String> |
getRepositories() |
String |
getVersion() |
boolean |
isAbstract()
Returns true if this profile is Abstract.
|
boolean |
isHidden()
Returns true if this profile is hidden.
|
boolean |
isLocked()
Returns true if this profile is locked.
|
boolean |
isOverlay()
Indicate if this profile is an overlay or not.
|
void |
refresh()
Manually trigger provisioning of this profile
|
void |
setAttribute(String key,
String value)
Change an attribute on this version.
|
void |
setBundles(List<String> values) |
void |
setConfiguration(String pid,
Map<String,String> configuration)
Update configurations of this profile with the new values for the given PID
|
void |
setConfigurations(Map<String,Map<String,String>> configurations)
Update configurations of this profile with the new values
|
void |
setFabs(List<String> values) |
void |
setFeatures(List<String> values) |
void |
setFileConfigurations(Map<String,byte[]> configurations)
Update configurations of this profile with the new values
|
void |
setOverrides(List<String> values) |
void |
setParents(Profile[] parents) |
void |
setRepositories(List<String> values) |
compareTostatic final String PARENTS
static final String DESCRIPTION
static final String LOCKED
static final String ABSTRACT
static final String HIDDEN
static final String HASH
static final String DELETED
String getVersion()
Map<String,String> getAttributes()
void setAttribute(String key, String value)
key - the name of the attributevalue - the new value or null to delete the attributeProfile[] getParents()
void setParents(Profile[] parents)
Container[] getAssociatedContainers()
List<String> getConfigurationFileNames()
byte[] getFileConfiguration(String fileName)
void setFileConfigurations(Map<String,byte[]> configurations)
configurations - Map<String,Map<String,String>> getConfigurations()
Map<String,String> getConfiguration(String pid)
Map<String,String> getContainerConfiguration()
void setConfigurations(Map<String,Map<String,String>> configurations)
configurations - void setConfiguration(String pid, Map<String,String> configuration)
configuration - is the new configuration value for the given PIDProfile getOverlay()
Profile getOverlay(boolean substitute)
substitute - boolean isOverlay()
void delete()
void delete(boolean force)
boolean configurationEquals(Profile other)
boolean agentConfigurationEquals(Profile other)
other - boolean exists()
void refresh()
boolean isAbstract()
boolean isLocked()
boolean isHidden()
String getProfileHash()
Copyright © 2011–2014 Red Hat. All rights reserved.