com.vaadin.collaborationengine.

Interface CollaborationAvatarGroup.ImageProvider

Enclosing class:

CollaborationAvatarGroup

Functional Interface:

This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Deprecated(since="6.5", forRemoval=true) public static interface CollaborationAvatarGroup.ImageProvider
Deprecated, for removal: This API element is subject to removal in a future version.

Callback for creating a stream resource with the image for a specific user. This allows loading the user image from a dynamic location such as a database.

Since:

1.0

See Also:

  • Method Summary

    Modifier and Type
    Method
    Description

    Deprecated, for removal: This API element is subject to removal in a future version.

    Gets a stream resource that provides the avatar image for the given user.

  • Method Details

    • getImageResource

      AbstractStreamResource getImageResource(UserInfo user)
      Deprecated, for removal: This API element is subject to removal in a future version.

      Gets a stream resource that provides the avatar image for the given user.

      Parameters:

      user - the user for which to get a stream resource with the image, not null

      Returns:

      the stream resource to use for the image, or null to not show use any avatar image for the given user