Package com.axelor.team.db
Class Team
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.team.db.Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the givenUser
item to themembers
collection.void
Add the givenRole
item to theroles
collection.void
Add the givenTeamTopic
item to thetopics
collection.void
Clear themembers
collection.void
Clear theroles
collection.void
Clear thetopics
collection.boolean
getAttrs()
getId()
byte[]
getImage()
getName()
getRoles()
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
void
setDescription
(String description) void
void
setImage
(byte[] image) void
setMembers
(Set<User> members) void
void
void
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 Details
-
Team
public Team() -
Team
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getDescription
-
setDescription
-
getImage
public byte[] getImage() -
setImage
public void setImage(byte[] image) -
getRoles
-
setRoles
-
addRole
Add the givenRole
item to theroles
collection.- Parameters:
item
- the item to add
-
removeRole
Remove the givenRole
item from theroles
collection.- Parameters:
item
- the item to remove
-
clearRoles
public void clearRoles()Clear theroles
collection. -
getMembers
-
setMembers
-
addMember
Add the givenUser
item to themembers
collection.- Parameters:
item
- the item to add
-
removeMember
Remove the givenUser
item from themembers
collection.- Parameters:
item
- the item to remove
-
clearMembers
public void clearMembers()Clear themembers
collection. -
getTopics
-
setTopics
-
addTopic
Add the givenTeamTopic
item to thetopics
collection.It sets
item.team = this
to ensure the proper relationship.- Parameters:
item
- the item to add
-
removeTopic
Remove the givenTeamTopic
item from thetopics
collection.- Parameters:
item
- the item to remove
-
clearTopics
public void clearTopics()Clear thetopics
collection. -
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-