public class FOUserPreferencesGenerator extends UserPreferencesGenerator
_userPrefEP, _userPrefManager
_currentUserProvider
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
FOUserPreferencesGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxPreferences(String storageContext,
Map<String,String> contextVars,
UserIdentity user,
boolean excludePrivate)
Generate the list of user preferences for a given user and context.
|
protected void |
_saxUserInput(Map<String,String> contextVars)
Generate the user input.
|
protected Map<String,String> |
getContextVars(Request request)
Get the preferences context.
|
protected UserIdentity |
getUser()
Get the user in the user manager.
|
void |
service(ServiceManager serviceManager) |
_saxPreference, generate
_getCurrentUser
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public FOUserPreferencesGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class UserPreferencesGenerator
ServiceException
protected UserIdentity getUser()
UserPreferencesGenerator
getUser
in class UserPreferencesGenerator
protected Map<String,String> getContextVars(Request request)
UserPreferencesGenerator
getContextVars
in class UserPreferencesGenerator
request
- the request.protected void _saxPreferences(String storageContext, Map<String,String> contextVars, UserIdentity user, boolean excludePrivate) throws ProcessingException, SAXException, UserPreferencesException
UserPreferencesGenerator
_saxPreferences
in class UserPreferencesGenerator
storageContext
- the preferences context.contextVars
- The context varsuser
- the user.excludePrivate
- true to exclude private user preferencesProcessingException
- if an error occurredSAXException
- if an error occurredUserPreferencesException
- if an error occurredprotected void _saxUserInput(Map<String,String> contextVars) throws ProcessingException, SAXException
contextVars
- The context variables including environment elementsSAXException
- if an error occurs while saxingProcessingException
- if failed to get user preferences