Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESCRIPTION
The attribute key for the description of the version
|
static java.lang.String |
LOCKED
The attribute key for the locked flag
|
Modifier and Type | Method and Description |
---|---|
void |
copyProfile(java.lang.String sourceId,
java.lang.String targetId,
boolean force) |
Profile |
createProfile(java.lang.String profileId) |
void |
delete() |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns a read only map of all the attributes of this version
|
Version |
getDerivedFrom() |
java.lang.String |
getName()
Deprecated.
use
HasId.getId() |
Profile |
getProfile(java.lang.String profileId)
Gets a profile with the given name.
|
Profile[] |
getProfiles() |
VersionSequence |
getSequence() |
boolean |
hasProfile(java.lang.String profileId) |
void |
renameProfile(java.lang.String sourceId,
java.lang.String targetId,
boolean force) |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Change an attribute on this version.
|
static final java.lang.String DESCRIPTION
static final java.lang.String LOCKED
@Deprecated java.lang.String getName()
HasId.getId()
java.util.Map<java.lang.String,java.lang.String> getAttributes()
void setAttribute(java.lang.String key, java.lang.String value)
key
- the name of the attributevalue
- the new value or null
to delete the attributeVersionSequence getSequence()
Version getDerivedFrom()
Profile[] getProfiles()
Profile getProfile(java.lang.String profileId)
profileId
- name of the profile to get.Profile
with the given name.FabricException
- if it doesn't exist.Profile createProfile(java.lang.String profileId)
void copyProfile(java.lang.String sourceId, java.lang.String targetId, boolean force)
void renameProfile(java.lang.String sourceId, java.lang.String targetId, boolean force)
boolean hasProfile(java.lang.String profileId)
void delete()
Copyright © 2011-2014 Red Hat. All Rights Reserved.