public class GetUserProfileImagesAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
Current user provider
|
protected DefaultProfileImageProvider |
_profileImageProvider
User profile image provider
|
protected ServerCommHelper |
_serverCommHelper
Servercomm helper
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetUserProfileImagesAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
_addDefaultImage(List<Map<String,Object>> images)
Add the default image
|
protected void |
_addGravatarImage(List<Map<String,Object>> images,
UserIdentity user)
Add the gravatar image to the list if existing
|
protected void |
_addInitialsImage(List<Map<String,Object>> images,
UserIdentity user)
Add the image with initials to the list
|
protected void |
_addLocalImages(List<Map<String,Object>> images,
String login)
Add the local images to the list
|
protected void |
_addStoredImage(List<Map<String,Object>> images,
UserIdentity user)
Add the stored image from the userpref (uploaded image are stored in the userpref)
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager sm) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected ServerCommHelper _serverCommHelper
protected CurrentUserProvider _currentUserProvider
protected DefaultProfileImageProvider _profileImageProvider
public GetUserProfileImagesAction()
public void service(ServiceManager sm) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected void _addStoredImage(List<Map<String,Object>> images, UserIdentity user)
images
- The image list accumulatoruser
- The userprotected void _addGravatarImage(List<Map<String,Object>> images, UserIdentity user)
images
- The image list accumulatoruser
- The userprotected void _addInitialsImage(List<Map<String,Object>> images, UserIdentity user)
images
- The image list accumulatoruser
- The userprotected void _addLocalImages(List<Map<String,Object>> images, String login)
images
- The image list accumulatorlogin
- The user loginprotected void _addDefaultImage(List<Map<String,Object>> images)
images
- The image list accumulator