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 TypeMethodDescriptionvoidAdd the givenUseritem to thememberscollection.voidAdd the givenRoleitem to therolescollection.voidAdd the givenTeamTopicitem to thetopicscollection.voidClear thememberscollection.voidClear therolescollection.voidClear thetopicscollection.booleangetAttrs()getId()byte[]getImage()getName()getRoles()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.voidvoidsetDescription(String description) voidvoidsetImage(byte[] image) voidsetMembers(Set<User> members) voidvoidvoidtoString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods 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 givenRoleitem to therolescollection.- Parameters:
item- the item to add
-
removeRole
Remove the givenRoleitem from therolescollection.- Parameters:
item- the item to remove
-
clearRoles
public void clearRoles()Clear therolescollection. -
getMembers
-
setMembers
-
addMember
Add the givenUseritem to thememberscollection.- Parameters:
item- the item to add
-
removeMember
Remove the givenUseritem from thememberscollection.- Parameters:
item- the item to remove
-
clearMembers
public void clearMembers()Clear thememberscollection. -
getTopics
-
setTopics
-
addTopic
Add the givenTeamTopicitem to thetopicscollection.It sets
item.team = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeTopic
Remove the givenTeamTopicitem from thetopicscollection.- Parameters:
item- the item to remove
-
clearTopics
public void clearTopics()Clear thetopicscollection. -
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-