public class Team extends Object
Constructor and Description |
---|
Team(TeamId id,
String name,
User owner) |
Modifier and Type | Method and Description |
---|---|
void |
acceptInvitation(User user) |
void |
changeSettings(Properties newSettings)
Applies the given team settings.
|
boolean |
equals(Object obj) |
TeamId |
getId() |
String |
getName() |
Collection<Device> |
getOnlineDevices() |
User |
getOwner() |
Path |
getPath() |
Swarm |
getSwarm() |
int |
hashCode() |
void |
invite(String email)
Invites an external person into the given team.
|
void |
invite(User user)
Invites an user into the given team.
|
void |
leave()
Starts performing the necessary steps for removing the current user (the
logged-in user) from this team.
|
void |
refuseInvitation(User user) |
void |
removeTeam()
Removes this team.
|
void |
removeUser(User user)
Starts performing the necessary steps for removing an user from this team.
|
String |
toString() |
void |
transferOwnership(User newOwner)
Starts performing the necessary steps for ownership transfer.
|
public Collection<Device> getOnlineDevices()
public void invite(User user)
user
- the invited userpublic void invite(String email)
email
- the external person's email address, to which the invitation is
sentpublic void transferOwnership(User newOwner)
newOwner
- the proposed team ownerpublic void removeUser(User user)
user
- the user to be removedpublic void changeSettings(Properties newSettings)
settings
- public void leave()
public void removeTeam()
public void acceptInvitation(User user)
public void refuseInvitation(User user)
public Swarm getSwarm()
public TeamId getId()
public String getName()
public Path getPath()
public User getOwner()