com.versionone.om
Class Theme

java.lang.Object
  extended by com.versionone.om.Entity
      extended by com.versionone.om.BaseAsset
          extended by com.versionone.om.ProjectAsset
              extended by com.versionone.om.Theme

public class Theme
extends ProjectAsset

Represents a Theme 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
 Theme createChildTheme(java.lang.String name)
          Create a theme that is a child of this theme.
 Theme createChildTheme(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributes)
          Create a theme that is a child of this theme.
 java.lang.String getBuild()
           
 java.util.Collection<Theme> getChildThemes(ThemeFilter filter)
          Child Themes of this Theme.
 Member getCustomer()
           
 java.lang.Double getEstimate()
           
 java.util.Collection<Goal> getGoals()
           
 java.util.Collection<Member> getOwners()
           
 Theme getParentTheme()
           
 java.util.Collection<PrimaryWorkitem> getPrimaryWorkitems(PrimaryWorkitemFilter filter)
          Stories and Defects assigned to this Theme.
 IListValueProperty getPriority()
           
 IListValueProperty getRisk()
           
 IListValueProperty getSource()
           
 IListValueProperty getStatus()
           
 IListValueProperty getType()
           
 void setBuild(java.lang.String value)
           
 void setCustomer(Member value)
           
 void setEstimate(java.lang.Double value)
           
 void setParentTheme(Theme value)
           
 
Methods inherited from class com.versionone.om.ProjectAsset
getDisplayID, getProject, setProject
 
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

getOwners

public java.util.Collection<Member> getOwners()
Returns:
Members that own this item.

getRisk

public IListValueProperty getRisk()
Returns:
This Theme's Risk.

getPriority

public IListValueProperty getPriority()
Returns:
This Theme's Priority.

getSource

public IListValueProperty getSource()
Returns:
This Theme's Source.

getType

public IListValueProperty getType()
Returns:
This Theme's Type.

getStatus

public IListValueProperty getStatus()
Returns:
This Theme's Status.

getParentTheme

public Theme getParentTheme()
Returns:
The Theme this Theme is assigned to.

setParentTheme

public void setParentTheme(Theme value)
Parameters:
value - The Theme this Theme is assigned to.

getCustomer

public Member getCustomer()
Returns:
Member assigned as a customer for this Theme.

setCustomer

public void setCustomer(Member value)
Parameters:
value - Member assigned as a customer for this Theme.

getBuild

public java.lang.String getBuild()
Returns:
Build number associated with this Theme.

setBuild

public void setBuild(java.lang.String value)
Parameters:
value - Build number associated with this Theme.

getEstimate

public java.lang.Double getEstimate()
Returns:
High-level estimate of this Theme.

setEstimate

public void setEstimate(java.lang.Double value)
Parameters:
value - High-level estimate of this Theme.

getPrimaryWorkitems

public java.util.Collection<PrimaryWorkitem> getPrimaryWorkitems(PrimaryWorkitemFilter filter)
Stories and Defects assigned to this Theme.

Parameters:
filter - Criteria to filter stories and defects on. Pass a DefectFilter or StoryFilter to get only Defects or Stories, respectively.
Returns:
A collection primary work items that belong to this theme filtered by the passed in filter.

getChildThemes

public java.util.Collection<Theme> getChildThemes(ThemeFilter filter)
Child Themes of this Theme.

Parameters:
filter - Criteria to filter children of themes. Pass a ThemeFilter to get only children of themes, respectively.
Returns:
A collection children of theme that belong to this theme filtered by the passed in filter.

getGoals

public java.util.Collection<Goal> getGoals()
Returns:
Goals this Theme is assigned to.

createChildTheme

public Theme createChildTheme(java.lang.String name)
Create a theme that is a child of this theme.

Parameters:
name - Name of the new theme.
Returns:
The new theme.

createChildTheme

public Theme createChildTheme(java.lang.String name,
                              java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a theme that is a child of this theme.

Parameters:
name - Name of the new theme.
attributes - additional attributes for new theme.
Returns:
The new theme.