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 void
addMember(User item)
Add the givenUser
item to themembers
collection.void
addRole(Role item)
Add the givenRole
item to theroles
collection.void
addTopic(TeamTopic item)
Add the givenTeamTopic
item to thetopics
collection.void
clearMembers()
Clear themembers
collection.void
clearRoles()
Clear theroles
collection.void
clearTopics()
Clear thetopics
collection.boolean
equals(Object obj)
String
getAttrs()
String
getDescription()
Long
getId()
byte[]
getImage()
Set<User>
getMembers()
String
getName()
Set<Role>
getRoles()
List<TeamTopic>
getTopics()
int
hashCode()
void
removeMember(User item)
Remove the givenUser
item from themembers
collection.void
removeRole(Role item)
Remove the givenRole
item from theroles
collection.void
removeTopic(TeamTopic item)
Remove the givenTeamTopic
item from thetopics
collection.void
setAttrs(String attrs)
void
setDescription(String description)
void
setId(Long id)
void
setImage(byte[] image)
void
setMembers(Set<User> members)
void
setName(String name)
void
setRoles(Set<Role> roles)
void
setTopics(List<TeamTopic> topics)
String
toString()
-
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 givenRole
item to theroles
collection.- Parameters:
item
- the item to add
-
removeRole
public void removeRole(Role item)
Remove the givenRole
item from theroles
collection.- Parameters:
item
- the item to remove
-
clearRoles
public void clearRoles()
Clear theroles
collection.
-
addMember
public void addMember(User item)
Add the givenUser
item to themembers
collection.- Parameters:
item
- the item to add
-
removeMember
public void removeMember(User item)
Remove the givenUser
item from themembers
collection.- Parameters:
item
- the item to remove
-
clearMembers
public void clearMembers()
Clear themembers
collection.
-
addTopic
public void addTopic(TeamTopic item)
Add the givenTeamTopic
item to thetopics
collection.It sets
item.team = this
to ensure the proper relationship.- Parameters:
item
- the item to add
-
removeTopic
public void removeTopic(TeamTopic item)
Remove the givenTeamTopic
item from thetopics
collection.- Parameters:
item
- the item to remove
-
clearTopics
public void clearTopics()
Clear thetopics
collection.
-
getAttrs
public String getAttrs()
-
setAttrs
public void setAttrs(String attrs)
-
-