public class UserProfileImageUploadWidget extends EmptyWidget
METADATA_KEY_NO_CONTENT
PARAM_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.
|
initParameters
determineOutputType, 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, setSuccess
public 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 Widget
handleRequest
in class EmptyWidget
public boolean isExternalImage()
public boolean userHasDefaultImage()
Copyright © 2019 Communote team. All rights reserved.