com.danube.scrumworks.api2
Class Product

java.lang.Object
  extended by com.danube.scrumworks.api2.Product
All Implemented Interfaces:
com.danube.scrumworks.util.HasId, com.danube.scrumworks.util.HasName, java.io.Serializable

public final class Product
extends java.lang.Object
implements java.io.Serializable, com.danube.scrumworks.util.HasId, com.danube.scrumworks.util.HasName

Contains information about Products for API users.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.danube.scrumworks.util.HasName
com.danube.scrumworks.util.HasName.CompareIgnoreCase
 
Field Summary
 
Fields inherited from interface com.danube.scrumworks.util.HasName
COMPARATOR, NAME_MAPPING
 
Constructor Summary
Product()
          Constructs a new Product.
 
Method Summary
 java.lang.String getBusinessWeightUnits()
          Gets the business weight units.
 java.lang.String getEffortUnits()
          Gets the effort units.
 java.lang.Long getId()
          Gets the id.
 java.lang.String getKeyPrefix()
          Gets the key prefix.
 java.lang.String getName()
          Gets the name.
 java.util.List<java.lang.Long> getProgramIds()
          Gets the program IDs.
 java.util.List<java.lang.Long> getTeamIds()
          Gets the IDs of the teams working on this product.
 boolean getTrackTimeSpent()
          Checks whether the product tracks the time spent on tasks.
 void setBusinessWeightUnits(java.lang.String businessWeightUnits)
          Sets the business weight units.
 void setEffortUnits(java.lang.String effortUnits)
          Sets the effort units.
 void setId(java.lang.Long id)
          Sets the id.
 void setKeyPrefix(java.lang.String keyPrefix)
          Sets the key prefix.
 void setName(java.lang.String name)
          Sets the name.
 void setProgramIds(java.util.List<java.lang.Long> programIds)
          Sets the program IDs.
 void setTeamIds(java.util.List<java.lang.Long> teamIds)
          Sets the IDs of the teams working on this product.
 void setTrackTimeSpent(boolean trackTimeSpent)
          Sets whether the time spent on tasks is tracked.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Constructs a new Product.

Method Detail

getId

public java.lang.Long getId()
Gets the id.

Specified by:
getId in interface com.danube.scrumworks.util.HasId
Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the id.

Parameters:
id - the new id

getName

public java.lang.String getName()
Gets the name.

Specified by:
getName in interface com.danube.scrumworks.util.HasName
Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getKeyPrefix

public java.lang.String getKeyPrefix()
Gets the key prefix.

Returns:
the key prefix

setKeyPrefix

public void setKeyPrefix(java.lang.String keyPrefix)
Sets the key prefix.

Parameters:
keyPrefix - the new key prefix

getEffortUnits

public java.lang.String getEffortUnits()
Gets the effort units.

Returns:
the effort units

setEffortUnits

public void setEffortUnits(java.lang.String effortUnits)
Sets the effort units.

Parameters:
effortUnits - the new effort units

getBusinessWeightUnits

public java.lang.String getBusinessWeightUnits()
Gets the business weight units.

Returns:
the business weight units

setBusinessWeightUnits

public void setBusinessWeightUnits(java.lang.String businessWeightUnits)
Sets the business weight units.

Parameters:
businessWeightUnits - the new business weight units

getTrackTimeSpent

public boolean getTrackTimeSpent()
Checks whether the product tracks the time spent on tasks.

Returns:
true, if the time spent on tasks is tracked

setTrackTimeSpent

public void setTrackTimeSpent(boolean trackTimeSpent)
Sets whether the time spent on tasks is tracked.

Parameters:
trackTimeSpent - the new track time spent

getProgramIds

public java.util.List<java.lang.Long> getProgramIds()
Gets the program IDs.

Returns:
the IDs of the programs containing this product

setProgramIds

public void setProgramIds(java.util.List<java.lang.Long> programIds)
Sets the program IDs.

Parameters:
programIds - the new program IDs

getTeamIds

public java.util.List<java.lang.Long> getTeamIds()
Gets the IDs of the teams working on this product.

Returns:
the team IDs

setTeamIds

public void setTeamIds(java.util.List<java.lang.Long> teamIds)
Sets the IDs of the teams working on this product.

Parameters:
teamIds - the new team IDs