public class Environment extends Entity
Modifier and Type | Field and Description |
---|---|
protected static int |
STATE_ACTIVE |
protected static int |
STATE_CLOSED |
ASSET_STATE_VALUE, ASSET_VALUE, CHANGE_DATE_UTC, CONTENT_TYPE_VALUE, CONTENT_VALUE, CREATE_DATE_UTC, DELETE_OPERATION, DESCRIPTION_VALUE, FILENAME_VALUE, NAME_VALUE
Modifier | Constructor and Description |
---|---|
protected |
Environment(AssetID id,
V1Instance instance)
Constructor used to represent an Environment entity that DOES exist in the VersionOne System.
|
protected |
Environment(V1Instance instance)
Constructor used to represent an Environment entity that does NOT yet exist in the VersionOne System.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canClose() |
boolean |
canReactivate() |
void |
close()
Closes or Inactivates the item.
|
String |
getDisplayID() |
String |
getName() |
Project |
getProject() |
Collection<TestSet> |
getTestSets(TestSetFilter filter)
TestSets associated with this Environment.
|
boolean |
isActive() |
boolean |
isClosed() |
void |
reactivate()
Reactivates the item.
|
void |
setName(String name) |
void |
setProject(Project project) |
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString
protected static final int STATE_CLOSED
protected static final int STATE_ACTIVE
protected Environment(AssetID id, V1Instance instance)
id
- Unique ID of this entity.instance
- this entity belongs to.protected Environment(V1Instance instance)
instance
- this entity belongs to.public String getName()
public void setName(String name)
name
- Name of the Environment.public Project getProject()
public void setProject(Project project)
project
- The Project this Environment belongs in.public String getDisplayID()
public Collection<TestSet> getTestSets(TestSetFilter filter)
filter
- Criteria to filter TestSets on.public boolean isActive()
public boolean isClosed()
public boolean canClose()
public void close() throws UnsupportedOperationException
UnsupportedOperationException
- if the item is an invalid state for
the Operation, e.g. it is already closed or inactive.public boolean canReactivate()
public void reactivate() throws UnsupportedOperationException
UnsupportedOperationException
- if the item is an invalid state for
the Operation, e.g. it is already open or active.Copyright © 2013 Version One, Inc.. All rights reserved.