Class ResizeAvatarPictureListener

java.lang.Object
org.nuxeo.ecm.user.center.profile.listeners.ResizeAvatarPictureListener
All Implemented Interfaces:
EventListener

public class ResizeAvatarPictureListener extends Object implements EventListener
Author:
rlegall Listener to handle the maximum dimensions of the avatar picture. This listener is triggered on DocumentEventTypes.BEFORE_DOC_UPDATE events. It verifies if the picture width is above 300 pixels and its height above 200. In that case, the picture saved in the rich profile is a resized version of it which fits those constrains.
  • Field Details

  • Constructor Details

    • ResizeAvatarPictureListener

      public ResizeAvatarPictureListener()
  • Method Details