com.versionone.om
Class BuildProject

java.lang.Object
  extended by com.versionone.om.Entity
      extended by com.versionone.om.BaseAsset
          extended by com.versionone.om.BuildProject

public class BuildProject
extends BaseAsset

Represents a Build Project in the VersionOne System.


Field Summary
 
Fields inherited from class com.versionone.om.BaseAsset
STATE_ACTIVE, 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
 
Method Summary
 BuildRun createBuildRun(java.lang.String name, DateTime date)
          Create a Build Run with the given name and date in this Build Project.
 BuildRun createBuildRun(java.lang.String name, DateTime date, java.util.Map<java.lang.String,java.lang.Object> attributes)
          Create a Build Run with the given name and date in this Build Project.
 java.util.Collection<BuildRun> getBuildRuns(BuildRunFilter filter)
           
 java.lang.String getReference()
           
 void setReference(java.lang.String value)
           
 
Methods inherited from class com.versionone.om.BaseAsset
canClose, canDelete, canReactivate, close, createAttachment, createAttachment, createConversation, createConversation, createLink, createLink, createNote, createNote, delete, getAttachments, getCustomDropdown, getCustomField, getDescription, getLinks, getName, getNotes, getReferencedInExpressions, getURL, isActive, isClosed, reactivate, setDescription, setName
 
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
 

Method Detail

getReference

public java.lang.String getReference()
Returns:
Reference of this Build Project.

setReference

public void setReference(java.lang.String value)
Parameters:
value - Reference of this Build Project.

getBuildRuns

public java.util.Collection<BuildRun> getBuildRuns(BuildRunFilter filter)
Parameters:
filter - limit the build runs returned; (If null, then all items returned).
Returns:
A collection of Build Runs associated with this Build Project.

createBuildRun

public BuildRun createBuildRun(java.lang.String name,
                               DateTime date)
Create a Build Run with the given name and date in this Build Project.

Parameters:
name - of creating BuildRun.
date - of creating BuildRun.
Returns:
A new Build Run in this Build Project.

createBuildRun

public BuildRun createBuildRun(java.lang.String name,
                               DateTime date,
                               java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a Build Run with the given name and date in this Build Project.

Parameters:
name - of creating BuildRun.
date - of creating BuildRun.
attributes - additional attributes for the BuildRun.
Returns:
A new Build Run in this Build Project.