public class ResizeAvatarPictureListener extends Object implements EventListener
Modifier and Type | Field and Description |
---|---|
protected static int |
RESIZED_IMAGE_HEIGHT |
protected static int |
RESIZED_IMAGE_WIDTH |
Constructor and Description |
---|
ResizeAvatarPictureListener() |
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(Event event)
Handle the given event.
|
protected boolean |
isBeforeUpdate(Event event) |
protected void |
resizeAvatar(DocumentModel doc,
Blob avatarImage) |
protected static final int RESIZED_IMAGE_WIDTH
protected static final int RESIZED_IMAGE_HEIGHT
public ResizeAvatarPictureListener()
public void handleEvent(Event event)
EventListener
Event.cancel()
handleEvent
in interface EventListener
event
- the eventprotected boolean isBeforeUpdate(Event event)
protected void resizeAvatar(DocumentModel doc, Blob avatarImage) throws PropertyException
PropertyException
Copyright © 2016 Nuxeo SA. All rights reserved.