@Deprecated public class SetProfilePictureFromImageCommandImpl extends AbstractServiceCommand implements SetProfilePictureCommand
PICTURE_SIZE| Constructor and Description |
|---|
SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager,
PersonalInformationManager personalInformationManager,
UserAccessor userAccessor,
AttachmentManager attachmentManager,
com.atlassian.user.User user,
InputStream imageData,
String imageFileName)
Deprecated.
|
SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager,
PersonalInformationManager personalInformationManager,
UserAccessor userAccessor,
AttachmentManager attachmentManager,
com.atlassian.user.User user,
InputStream imageData,
String imageFileName,
int topLeftX,
int topLeftY,
int width)
Deprecated.
|
SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager,
PersonalInformationManager personalInformationManager,
UserAccessor userAccessor,
AttachmentManager attachmentManager,
com.atlassian.user.User user,
InputStream imageData,
String imageFileName,
com.atlassian.confluence.user.service.SetProfilePictureFromImageCommandImpl.Selection cropSelection)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertImageToProfilePicture(InputStream imageData)
Deprecated.
Crop an image so it's the right size and composition for a profile picture.
|
protected void |
executeInternal()
Deprecated.
Template method for implementations to perform command execution.
|
protected boolean |
isAuthorizedInternal()
Deprecated.
Template method for implementations to perform authorization.
|
protected void |
validateInternal(ServiceCommandValidator validator)
Deprecated.
Template method for implementations to perform validation.
|
execute, getCurrentUser, getValidationErrors, isAuthorized, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getValidationErrors, isAuthorized, isValidpublic SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, AttachmentManager attachmentManager, com.atlassian.user.User user, InputStream imageData, String imageFileName, int topLeftX, int topLeftY, int width)
public SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, AttachmentManager attachmentManager, com.atlassian.user.User user, InputStream imageData, String imageFileName)
public SetProfilePictureFromImageCommandImpl(PermissionManager permissionManager, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, AttachmentManager attachmentManager, com.atlassian.user.User user, InputStream imageData, String imageFileName, com.atlassian.confluence.user.service.SetProfilePictureFromImageCommandImpl.Selection cropSelection)
protected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommand
Implementations can assume that if this method is called, authorization was already successful.
validateInternal in class AbstractServiceCommandprotected boolean isAuthorizedInternal()
AbstractServiceCommandisAuthorizedInternal in class AbstractServiceCommandprotected void executeInternal()
AbstractServiceCommandexecuteInternal in class AbstractServiceCommandpublic static byte[] convertImageToProfilePicture(InputStream imageData)
imageData - a stream containing the image to cropCopyright © 2003–2017 Atlassian. All rights reserved.