Class CommentAvatarService
java.lang.Object
fr.paris.lutece.plugins.extend.modules.comment.service.CommentAvatarService
- All Implemented Interfaces:
ICommentAvatarService
@ApplicationScoped
public class CommentAvatarService
extends Object
implements ICommentAvatarService
Avatar of the comment authors. The plugin-avatar is an optional dependency: when it is deployed (and the avatars are enabled), the avatars come from it;
otherwise the comments are displayed without avatar. This class must not reference the plugin-avatar classes, they are only reached through
PluginAvatarCommentAvatarService, loaded by reflection.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommentAvatarService
public CommentAvatarService()
-
-
Method Details
-
getAvatar
Display the avatar of the comment's author- Specified by:
getAvatarin interfaceICommentAvatarService- Returns:
- The HTML code of the avatar
-
getAvatarUrl
Display the avatar of the comment's author- Specified by:
getAvatarUrlin interfaceICommentAvatarService- Returns:
- The HTML code of the avatar
-