Package com.vaadin.collaborationengine
Class SystemUserInfo
java.lang.Object
com.vaadin.collaborationengine.UserInfo
com.vaadin.collaborationengine.SystemUserInfo
- All Implemented Interfaces:
Serializable
A
UserInfo
for non-interaction thread. A system user is immutable.
Its color index is always 0 and not registered to users' color index map in
Collaboration Engine.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemUserInfo
Gets the unique instance of system user info.void
setAbbreviation
(String abbreviation) Sets the user's abbreviation.void
setColorIndex
(int colorIndex) Sets the user's color index.void
Sets the url of the user's image.void
Sets the user's name.Methods inherited from class com.vaadin.collaborationengine.UserInfo
equals, getAbbreviation, getColorIndex, getId, getImage, getName, hashCode
-
Method Details
-
getInstance
Gets the unique instance of system user info.- Returns:
- the system user info instance, not
null
- Since:
- 1.0
-
setName
Description copied from class:UserInfo
Sets the user's name. -
setAbbreviation
Description copied from class:UserInfo
Sets the user's abbreviation.- Overrides:
setAbbreviation
in classUserInfo
- Parameters:
abbreviation
- the abbreviation to set
-
setImage
Description copied from class:UserInfo
Sets the url of the user's image.If this user info is given to a
CollaborationAvatarGroup
, the image URL is used to load the user's avatar. Alternatively, the user images can be loaded from a backend to the avatar group withCollaborationAvatarGroup.setImageProvider(ImageProvider)
. -
setColorIndex
public void setColorIndex(int colorIndex) Description copied from class:UserInfo
Sets the user's color index.Setting it to -1 (which is the default value) indicates that the user color can be automatically assigned by Collaboration Engine.
- Overrides:
setColorIndex
in classUserInfo
- Parameters:
colorIndex
- the color index to set- See Also:
-