|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.versionone.om.Entity
com.versionone.om.Environment
public class Environment
The Environment asset.
| Field Summary | |
|---|---|
protected static int |
STATE_ACTIVE
|
protected static int |
STATE_CLOSED
|
| Fields inherited from class com.versionone.om.Entity |
|---|
ASSET_STATE_VALUE, ASSET_VALUE, CHANGE_DATE_UTC, CONTENT_TYPE_VALUE, CONTENT_VALUE, CREATE_DATE_UTC, DELETE_OPERATION, DESCRIPTION_VALUE, FILENAME_VALUE, NAME_VALUE |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
boolean |
canClose()
|
boolean |
canReactivate()
|
void |
close()
Closes or Inactivates the item. |
java.lang.String |
getDisplayID()
|
java.lang.String |
getName()
|
Project |
getProject()
|
java.util.Collection<TestSet> |
getTestSets(TestSetFilter filter)
TestSets associated with this Environment. |
boolean |
isActive()
|
boolean |
isClosed()
|
void |
reactivate()
Reactivates the item. |
void |
setName(java.lang.String name)
|
void |
setProject(Project project)
|
| Methods inherited from class com.versionone.om.Entity |
|---|
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int STATE_CLOSED
protected static final int STATE_ACTIVE
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - Name of the Environment.public Project getProject()
public void setProject(Project project)
project - The Project this Environment belongs in.public java.lang.String getDisplayID()
public java.util.Collection<TestSet> getTestSets(TestSetFilter filter)
filter - Criteria to filter TestSets on.
public boolean isActive()
public boolean isClosed()
public boolean canClose()
public void close()
throws java.lang.UnsupportedOperationException
java.lang.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 java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the item is an invalid state for
the Operation, e.g. it is already open or active.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||