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