|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.user.service.DefaultUserProfileService
public class DefaultUserProfileService
Constructor Summary | |
---|---|
DefaultUserProfileService(PermissionManager permissionManager,
UserAccessor userAccessor,
AttachmentManager attachmentManager,
PersonalInformationManager personalInformationManager)
|
Method Summary | |
---|---|
DeleteProfilePictureCommand |
newDeleteProfilePictureCommand(com.atlassian.user.User user,
java.lang.String imageFileName)
Get a service command for deleting a user's profile picture. |
SetProfilePictureCommand |
newSetProfilePictureCommand(com.atlassian.user.User user,
java.io.InputStream imageData,
java.lang.String imageFileName)
Get a service command for setting a user's profile picture from an uploaded photo. |
SetProfilePictureCommand |
newSetProfilePictureCommand(com.atlassian.user.User user,
java.io.InputStream imageData,
java.lang.String imageFileName,
int topLeftX,
int topLeftY,
int width)
Get a service command for setting a user's profile picture from an uploaded photo. |
SetProfilePictureCommand |
newSetProfilePictureCommand(com.atlassian.user.User user,
java.lang.String builtInImageFileName)
Get a service command for setting a user's profile picture from an already existing attachment filename, or from one of the built-in icons. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserProfileService(PermissionManager permissionManager, UserAccessor userAccessor, AttachmentManager attachmentManager, PersonalInformationManager personalInformationManager)
Method Detail |
---|
public SetProfilePictureCommand newSetProfilePictureCommand(com.atlassian.user.User user, java.io.InputStream imageData, java.lang.String imageFileName)
UserProfileService
newSetProfilePictureCommand
in interface UserProfileService
user
- the user to set a profile picture forimageData
- the image to use as a profile pictureimageFileName
- the name of the uploaded image
public SetProfilePictureCommand newSetProfilePictureCommand(com.atlassian.user.User user, java.lang.String builtInImageFileName)
UserProfileService
newSetProfilePictureCommand
in interface UserProfileService
user
- the user to set a profile picture forbuiltInImageFileName
- the filename of the image to use as a profile picture
public SetProfilePictureCommand newSetProfilePictureCommand(com.atlassian.user.User user, java.io.InputStream imageData, java.lang.String imageFileName, int topLeftX, int topLeftY, int width)
UserProfileService
newSetProfilePictureCommand
in interface UserProfileService
user
- the user to set a profile picture forimageData
- the image to use as a profile pictureimageFileName
- the name of the uploaded imagetopLeftX
- the X offset of the top left of the cropping areatopLeftY
- the Y offset of the top left of the cropping areawidth
- the width of the cropping area (will always be square)
public DeleteProfilePictureCommand newDeleteProfilePictureCommand(com.atlassian.user.User user, java.lang.String imageFileName)
UserProfileService
newDeleteProfilePictureCommand
in interface UserProfileService
user
- the user to delete a profile picture forimageFileName
- the filename of the image to delete
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |