|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.entity.Team
public class Team
This class represents a Team. A team has multiple members and can maintain 0..* tools.
| Constructor Summary | |
|---|---|
Team()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDirectory()
As it cannot be guaranteed that the transliteration of a team's name is unique (unlike the team name), this method is a convenience method to append the teamId to the normalizedName, thus resulting
in a unique directory name (the teamId is unique by definition). |
java.lang.String |
getNormalizedName()
Return the non-internationalized representation of this team's name. |
java.sql.Timestamp |
getRegisteredDate()
Get the date this Team was first registered. |
User |
getTeamCaptain()
Get the team captain. |
java.lang.Long |
getTeamId()
Get the unique identifier for this Team. |
java.util.List<User> |
getTeamMembers()
Return a list of Users who are members of this team. |
java.lang.String |
getTeamName()
Get the team name. |
java.util.List<Tool> |
getTools()
Return a list of Tools maintained by this team. |
void |
prePersist()
Hibernate lifecycle convenience method. |
void |
setNormalizedName(java.lang.String normalizedName)
Set the normalized name for this team. |
void |
setRegisteredDate(java.sql.Timestamp registeredDate)
Set the date and time this team was created. |
void |
setTeamCaptain(User teamCaptain)
Set the team captain. |
void |
setTeamId(java.lang.Long teamId)
Set the identifier. |
void |
setTeamMembers(java.util.List<User> teamMembers)
Set the list of team members. |
void |
setTeamName(java.lang.String teamName)
Set the team name. |
void |
setTools(java.util.List<Tool> tools)
Set the list of Tools maintained by this team. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Team()
| Method Detail |
|---|
public java.lang.Long getTeamId()
Team.
Team. Globally unique.@NotNull public java.lang.String getTeamName()
public User getTeamCaptain()
User object representing the team captain.public java.util.List<User> getTeamMembers()
Users who are members of this team. The team
captain has to approve the membership of a user.
public java.util.List<Tool> getTools()
Tools maintained by this team.
Tools maintained by this team.public java.sql.Timestamp getRegisteredDate()
Team was first registered.
public java.lang.String getNormalizedName()
{@link I18NHelper#normalizeString(String)}.
German umlauts (ä, ö, ü) are converted to 'ae', 'oe' and 'ue'
respectively, spaces are replaced by '_' and the whole string is in lower
case. Punctuation is converted to a hyphen ('-').
public java.lang.String getDirectory()
teamId to the normalizedName, thus resulting
in a unique directory name (the teamId is unique by definition).
public void setTeamId(java.lang.Long teamId)
teamId - The globally unique identifier for this Team.public void setTeamName(java.lang.String teamName)
teamName - The team name to set.public void setTeamCaptain(User teamCaptain)
teamCaptain - The User nominated as captain.public void setTeamMembers(java.util.List<User> teamMembers)
teamMembers - The list of Users who are members of this team.public void setTools(java.util.List<Tool> tools)
Tools maintained by this team.
tools - The list of Tools.public void setRegisteredDate(java.sql.Timestamp registeredDate)
registeredDate - The date and time when a user created this team.public void setNormalizedName(java.lang.String normalizedName)
normalizedName - The name to set which should be lower case, not contain spaces
and be a subset of US-ASCII.public void prePersist()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||