Class TeamRole
java.lang.Object
ch.colabproject.colab.api.model.team.TeamRole
- All Implemented Interfaces:
ColabEntity,WithDeletionStatus,WithPermission,WithTrackingData,WithWebsocketChannels,WithId,WithJsonDiscriminator,Serializable
A role within the development team. A role is used to group several member sharing same skills or
objective within the project.
- Author:
- maxence
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the list of assignmentsGet the channels this entity shall be sent through.Get the deletion status :getId()Get membersgetName()Get role nameget the project id.Get the condition required to read this entityGet the tracking dataGet the condition required to update this entityinthashCode()voidmergeToUpdate(ColabEntity other) Update this object according to values provided by other.voidsetAssignments(List<Assignment> assignments) Set the list of assignmentsvoidsetDeletionStatus(DeletionStatus status) Set the deletion status :voidSet idvoidsetMembers(List<TeamMember> members) Set the list of membersvoidSet the namevoidsetProject(Project project) voidsetProjectId(Long id) set the project id.voidsetTrackingData(Tracking trackingData) Set tracking datatoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.colabproject.colab.api.model.ColabEntity
mergeToDuplicateMethods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator
getJsonDiscriminatorMethods inherited from interface ch.colabproject.colab.api.model.WithPermission
getCreateCondition, getDeleteConditionMethods inherited from interface ch.colabproject.colab.api.model.WithTrackingData
clearErasureTrackingData, setErasureTrackingData, touchMethods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannels
getIndexEntryPayload
-
Constructor Details
-
TeamRole
public TeamRole()
-
-
Method Details
-
getId
-
setId
Set id- Parameters:
id- id
-
getTrackingData
Get the tracking data- Specified by:
getTrackingDatain interfaceWithTrackingData- Returns:
- tracking data
-
setTrackingData
Set tracking data- Specified by:
setTrackingDatain interfaceWithTrackingData- Parameters:
trackingData- new tracking data
-
getDeletionStatus
Description copied from interface:WithDeletionStatusGet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
getDeletionStatusin interfaceWithDeletionStatus- Returns:
- null or a deletion status
-
setDeletionStatus
Description copied from interface:WithDeletionStatusSet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
setDeletionStatusin interfaceWithDeletionStatus- Parameters:
status- null or a deletion status
-
getName
Get role name- Returns:
- the name
-
setName
Set the name- Parameters:
name- new role name
-
getProject
- Returns:
- the project
-
setProject
- Parameters:
project- the project
-
getProjectId
get the project id. To be sent to client- Returns:
- id of the project or null
-
setProjectId
set the project id. For serialization only- Parameters:
id- the id of the project
-
getMembers
Get members- Returns:
- members
-
setMembers
Set the list of members- Parameters:
members- list of members
-
getAssignments
Get the list of assignments- Returns:
- assignments list
-
setAssignments
Set the list of assignments- Parameters:
assignments- new list of assignments
-
mergeToUpdate
Description copied from interface:ColabEntityUpdate this object according to values provided by other.This is used when an object is prepared to be updated in database.
- Specified by:
mergeToUpdatein interfaceColabEntity- Parameters:
other- object to take new values from- Throws:
ColabMergeException- if merging is not possible
-
getChannelsBuilder
Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
getChannelsBuilderin interfaceWithWebsocketChannels- Returns:
- list of channels
-
getReadCondition
Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
getReadConditionin interfaceWithPermission- Returns:
- the condition
-
getUpdateCondition
Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
getUpdateConditionin interfaceWithPermission- Returns:
- the condition
-
hashCode
public int hashCode() -
equals
-
toString
-