com.danube.scrumworks.api2
Class Release

java.lang.Object
  extended by com.danube.scrumworks.api2.Release
All Implemented Interfaces:
java.io.Serializable

public final class Release
extends java.lang.Object
implements java.io.Serializable

Contains information about Releases for API users.

See Also:
Serialized Form

Field Summary
static com.google.common.base.Function<ReleaseAndRanksTO,Release> FROM_TO
          Converts Release transfer objects to API objects.
static com.google.common.base.Function<ReleaseTO,Release> FROM_UNRANKED_TO
          Converts Release transfer objects to API objects.
static com.google.common.base.Function<Release,ReleaseTO> TO_TO
          Converts Release API objects to transfer objects.
 
Constructor Summary
Release()
          Constructs a new Release.
 
Method Summary
 java.lang.String getDescription()
          Gets the description.
 java.util.Date getEndDate()
          Gets the end date.
 java.lang.Long getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 java.lang.Long getProductId()
          Gets the product id.
 java.lang.Long getProgramId()
          Gets the program id.
 java.util.Date getStartDate()
          Gets the start date.
 boolean isArchived()
          Checks if the release is archived.
 void setArchived(boolean archived)
          Sets the release archived.
 void setDescription(java.lang.String description)
          Sets the description.
 void setEndDate(java.util.Date endDate)
          Sets the end date.
 void setId(java.lang.Long id)
          Sets the id.
 void setName(java.lang.String name)
          Sets the name.
 void setProductId(java.lang.Long productId)
          Sets the product id.
 void setProgramId(java.lang.Long programId)
          Sets the program id.
 void setStartDate(java.util.Date startDate)
          Sets the start date.
 
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<ReleaseAndRanksTO,Release> FROM_TO
Converts Release transfer objects to API objects.


FROM_UNRANKED_TO

public static final com.google.common.base.Function<ReleaseTO,Release> FROM_UNRANKED_TO
Converts Release transfer objects to API objects.


TO_TO

public static final com.google.common.base.Function<Release,ReleaseTO> TO_TO
Converts Release API objects to transfer objects.

Constructor Detail

Release

public Release()
Constructs a new Release.

Method Detail

getId

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

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.

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

getStartDate

public java.util.Date getStartDate()
Gets the start date.

Returns:
the start date

setStartDate

public void setStartDate(java.util.Date startDate)
Sets the start date.

Parameters:
startDate - the new start date

getEndDate

public java.util.Date getEndDate()
Gets the end date.

Returns:
the end date

setEndDate

public void setEndDate(java.util.Date endDate)
Sets the end date.

Parameters:
endDate - the new end date

getProductId

public java.lang.Long getProductId()
Gets the product id.

Returns:
the product id

setProductId

public void setProductId(java.lang.Long productId)
Sets the product id.

Parameters:
productId - the new product id

getProgramId

public java.lang.Long getProgramId()
Gets the program id.

Returns:
the program id

setProgramId

public void setProgramId(java.lang.Long programId)
Sets the program id.

Parameters:
programId - the new program id

isArchived

public boolean isArchived()
Checks if the release is archived.

Returns:
true, if the release is archived

setArchived

public void setArchived(boolean archived)
Sets the release archived.

Parameters:
archived - whether the release is archived