Package com.axelor.team.db
Class Team
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.team.db.Team
-
@Entity public class Team extends AuditableModel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMember(User item)Add the givenUseritem to thememberscollection.voidaddRole(Role item)Add the givenRoleitem to therolescollection.voidaddTopic(TeamTopic item)Add the givenTeamTopicitem to thetopicscollection.voidclearMembers()Clear thememberscollection.voidclearRoles()Clear therolescollection.voidclearTopics()Clear thetopicscollection.booleanequals(Object obj)StringgetAttrs()StringgetDescription()LonggetId()byte[]getImage()Set<User>getMembers()StringgetName()Set<Role>getRoles()List<TeamTopic>getTopics()inthashCode()voidremoveMember(User item)Remove the givenUseritem from thememberscollection.voidremoveRole(Role item)Remove the givenRoleitem from therolescollection.voidremoveTopic(TeamTopic item)Remove the givenTeamTopicitem from thetopicscollection.voidsetAttrs(String attrs)voidsetDescription(String description)voidsetId(Long id)voidsetImage(byte[] image)voidsetMembers(Set<User> members)voidsetName(String name)voidsetRoles(Set<Role> roles)voidsetTopics(List<TeamTopic> topics)StringtoString()-
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
-
Methods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
-
-
-
Constructor Detail
-
Team
public Team()
-
Team
public Team(String name)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getImage
public byte[] getImage()
-
setImage
public void setImage(byte[] image)
-
addRole
public void addRole(Role item)
Add the givenRoleitem to therolescollection.- Parameters:
item- the item to add
-
removeRole
public void removeRole(Role item)
Remove the givenRoleitem from therolescollection.- Parameters:
item- the item to remove
-
clearRoles
public void clearRoles()
Clear therolescollection.
-
addMember
public void addMember(User item)
Add the givenUseritem to thememberscollection.- Parameters:
item- the item to add
-
removeMember
public void removeMember(User item)
Remove the givenUseritem from thememberscollection.- Parameters:
item- the item to remove
-
clearMembers
public void clearMembers()
Clear thememberscollection.
-
addTopic
public void addTopic(TeamTopic item)
Add the givenTeamTopicitem to thetopicscollection.It sets
item.team = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeTopic
public void removeTopic(TeamTopic item)
Remove the givenTeamTopicitem from thetopicscollection.- Parameters:
item- the item to remove
-
clearTopics
public void clearTopics()
Clear thetopicscollection.
-
getAttrs
public String getAttrs()
-
setAttrs
public void setAttrs(String attrs)
-
-