br.com.arsmachina.example.entity
Class Task

java.lang.Object
  extended by br.com.arsmachina.example.entity.Task
All Implemented Interfaces:
Serializable

public class Task
extends Object
implements Serializable

Class that represents a task.

Author:
Thiago H. de Paula Figueiredo
See Also:
Serialized Form

Field Summary
static int MAXIMUM_DESCRIPTION_LENGTH
          Maximum description length.
static int MAXIMUM_SUMMARY_LENGTH
          Maximum name length.
static int MINIMUM_DESCRIPTION_LENGTH
          Minimum description length.
static int MINIMUM_SUMMARY_LENGTH
          Minimum name length.
 
Constructor Summary
Task()
           
 
Method Summary
 br.com.arsmachina.authentication.entity.User getCreator()
          Returns the value of the creator property.
 String getDescription()
          Returns the value of the description property.
 Integer getId()
          Returns the value of the id property.
 Project getProject()
          Returns the value of the project property.
 String getSummary()
          Returns the value of the summary property.
 List<br.com.arsmachina.authentication.entity.User> getTeam()
          Returns the value of the team property.
 void setCreator(br.com.arsmachina.authentication.entity.User creator)
          Changes the value of the creator property.
 void setDescription(String description)
          Changes the value of the description property.
 void setId(Integer id)
          Changes the value of the id property.
 void setProject(Project project)
          Changes the value of the project property.
 void setSummary(String summary)
          Changes the value of the summary property.
 void setTeam(List<br.com.arsmachina.authentication.entity.User> team)
          Changes the value of the team property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_SUMMARY_LENGTH

public static final int MINIMUM_SUMMARY_LENGTH
Minimum name length.

See Also:
Constant Field Values

MAXIMUM_SUMMARY_LENGTH

public static final int MAXIMUM_SUMMARY_LENGTH
Maximum name length.

See Also:
Constant Field Values

MINIMUM_DESCRIPTION_LENGTH

public static final int MINIMUM_DESCRIPTION_LENGTH
Minimum description length.

See Also:
Constant Field Values

MAXIMUM_DESCRIPTION_LENGTH

public static final int MAXIMUM_DESCRIPTION_LENGTH
Maximum description length.

See Also:
Constant Field Values
Constructor Detail

Task

public Task()
Method Detail

getId

public Integer getId()
Returns the value of the id property.

Returns:
a Integer.

setId

public void setId(Integer id)
Changes the value of the id property.

Parameters:
id - a Integer.

getSummary

@Length(min=5,
        max=50)
@NotNull
public String getSummary()
Returns the value of the summary property.

Returns:
a String.

setSummary

public void setSummary(String summary)
Changes the value of the summary property.

Parameters:
summary - a String.

getDescription

@Length(min=0,
        max=5000)
public String getDescription()
Returns the value of the description property.

Returns:
a String.

setDescription

public void setDescription(String description)
Changes the value of the description property.

Parameters:
description - a String.

getCreator

@NotNull
public br.com.arsmachina.authentication.entity.User getCreator()
Returns the value of the creator property.

Returns:
a User.

setCreator

public void setCreator(br.com.arsmachina.authentication.entity.User creator)
Changes the value of the creator property.

Parameters:
creator - a User.

getTeam

public List<br.com.arsmachina.authentication.entity.User> getTeam()
Returns the value of the team property.

Returns:
a List.

setTeam

public void setTeam(List<br.com.arsmachina.authentication.entity.User> team)
Changes the value of the team property.

Parameters:
team - a List.

getProject

@NotNull
public Project getProject()
Returns the value of the project property.

Returns:
a Project.

setProject

public void setProject(Project project)
Changes the value of the project property.

Parameters:
project - a Project.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.