|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.core.service.AbstractServiceCommand
com.atlassian.confluence.user.service.SetProfilePictureFromImageCommandImpl
@Deprecated public class SetProfilePictureFromImageCommandImpl
Service command for setting a user's profile picture to a newly uploaded image. The image is cropped, saved as an attachment and set as the user's profile picture.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.confluence.user.service.SetProfilePictureCommand |
|---|
PICTURE_SIZE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.atlassian.confluence.core.service.AbstractServiceCommand |
|---|
execute, getCurrentUser, getValidationErrors, isAuthorized, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.core.service.ServiceCommand |
|---|
execute, getValidationErrors, isAuthorized, isValid |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
protected void validateInternal(ServiceCommandValidator validator)
AbstractServiceCommandImplementations can assume that if this method is called, authorization was already successful.
validateInternal in class AbstractServiceCommandprotected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal in class AbstractServiceCommandprotected void executeInternal()
AbstractServiceCommand
executeInternal in class AbstractServiceCommandpublic static byte[] convertImageToProfilePicture(InputStream imageData)
imageData - a stream containing the image to crop
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||