com.danube.scrumworks.api2
Class Program

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

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

Contains information about Programs 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
static com.google.common.base.Function<com.danube.scrumworks.program.ProgramTO,Program> FROM_TO
          Function to convert from ProgramTO transfer objects.
 
Fields inherited from interface com.danube.scrumworks.util.HasName
COMPARATOR, NAME_MAPPING
 
Constructor Summary
Program()
          Constructs a new Program.
Program(java.lang.Long id, java.lang.String name, java.lang.String description, java.util.List<java.lang.Long> productIds)
          Constructs a new Program.
 
Method Summary
 java.lang.String getDescription()
          Gets the description.
 java.lang.Long getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 java.util.List<java.lang.Long> getProductIds()
          Gets the product ids.
 void setDescription(java.lang.String description)
          Sets the description.
 void setId(java.lang.Long id)
          Sets the id.
 void setName(java.lang.String name)
          Sets the name.
 void setProductIds(java.util.List<java.lang.Long> productIds)
          Sets the product ids.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_TO

public static final com.google.common.base.Function<com.danube.scrumworks.program.ProgramTO,Program> FROM_TO
Function to convert from ProgramTO transfer objects.

Constructor Detail

Program

public Program()
Constructs a new Program.


Program

public Program(java.lang.Long id,
               java.lang.String name,
               java.lang.String description,
               java.util.List<java.lang.Long> productIds)
Constructs a new Program.

Parameters:
id - the id
name - the name
description - the description
productIds - the product ids
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

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - the new description

getProductIds

public java.util.List<java.lang.Long> getProductIds()
Gets the product ids.

Returns:
the product ids

setProductIds

public void setProductIds(java.util.List<java.lang.Long> productIds)
Sets the product ids.

Parameters:
productIds - the new product ids