@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, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getValidationErrors, isAuthorized, isValid
public 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 AbstractServiceCommand
protected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal
in class AbstractServiceCommand
protected void executeInternal()
AbstractServiceCommand
executeInternal
in class AbstractServiceCommand
public static byte[] convertImageToProfilePicture(InputStream imageData)
imageData
- a stream containing the image to cropCopyright © 2003–2015 Atlassian. All rights reserved.