public class SetUserProfileAction extends SetUserPreferencesAction
Modifier and Type | Field and Description |
---|---|
protected JSONUtils |
_jsonUtils
JSON Utils
|
protected DefaultProfileImageProvider |
_profileImageProvider
User profile image provider
|
protected UploadManager |
_uploadManager
Upload manager
|
_INPUT_DATE_FORMATS, _userPrefEP, _userPrefManager
manager
EMPTY_MAP
Constructor and Description |
---|
SetUserProfileAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
_convertFile(String filename,
InputStream is)
Convert the uploaded file to base64.
|
protected Map<String,String> |
_getValues(Request request,
Map<String,String> contextVars,
UserIdentity user,
Collection<String> preferenceIds,
UserPreferencesErrors errors)
Get the preferences values from the request.
|
void |
service(ServiceManager smanager) |
_parseDate, act, getContextVars, getPreferenceIds, getStorageContext, getUser, setUserPreferences, setUserPreferences
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected JSONUtils _jsonUtils
protected DefaultProfileImageProvider _profileImageProvider
protected UploadManager _uploadManager
public SetUserProfileAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SetUserPreferencesAction
ServiceException
protected Map<String,String> _getValues(Request request, Map<String,String> contextVars, UserIdentity user, Collection<String> preferenceIds, UserPreferencesErrors errors)
SetUserPreferencesAction
_getValues
in class SetUserPreferencesAction
request
- the request.contextVars
- The context varsuser
- the user.preferenceIds
- a collection of the IDs of preferences to set.errors
- the errors object to fill in.protected String _convertFile(String filename, InputStream is) throws IOException
filename
- The file nameis
- The input stream of the uploaded fileIOException
- If an exception occurs while manipulating streams