public class UserProfileImageUploadWidget extends EmptyWidget
METADATA_KEY_NO_CONTENTPARAM_WIDGET_ID| Constructor and Description |
|---|
UserProfileImageUploadWidget() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBestImageHeight()
the default height of the user image
|
int |
getBestImageWidth()
the default width of the user image
|
ImageSizeType |
getImageSizeType()
the image size type of the user image to display inside the user profile view
|
String |
getTile(String outputType)
Get the tile to be used for rendering
|
Long |
getUserId()
returns the user ID of the current user
|
Object |
handleRequest()
Handle the request and return a result
|
boolean |
isExternalImage()
Checks for an external image provider
|
boolean |
userHasDefaultImage()
Returns true if the user with ID userId has a default image.
|
initParametersdetermineOutputType, getAttribute, getBooleanParameter, getGroupName, getIntParameter, getIntParameter, getLongArrayParameter, getLongParameter, getLongParameter, getParameter, getParameter, getParameterEscaped, getParameterEscaped, getParameters, getRequest, getResponse, getResponseMetadata, getStringArrayParameter, getViewIdentifier, getWidgetId, isSuccess, setAttribute, setGroupName, setParameter, setRequest, setResponse, setResponseMetadata, setSuccesspublic int getBestImageHeight()
public int getBestImageWidth()
public ImageSizeType getImageSizeType()
public String getTile(String outputType)
outputType - the output type (rss, dhtml ...) without any '.'public Long getUserId()
public Object handleRequest()
handleRequest in interface WidgethandleRequest in class EmptyWidgetpublic boolean isExternalImage()
public boolean userHasDefaultImage()
Copyright © 2019 Communote team. All rights reserved.