public class FOUserPreferencesGenerator extends UserPreferencesGenerator
_userPrefEP, _userPrefManager_currentUserProvidermanagerobjectModel, parameters, resolver, sourcecontentHandler, 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_getCurrentUserdisposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerpublic FOUserPreferencesGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class UserPreferencesGeneratorServiceExceptionprotected UserIdentity getUser()
UserPreferencesGeneratorgetUser in class UserPreferencesGeneratorprotected Map<String,String> getContextVars(Request request)
UserPreferencesGeneratorgetContextVars in class UserPreferencesGeneratorrequest - the request.protected void _saxPreferences(String storageContext, Map<String,String> contextVars, UserIdentity user, boolean excludePrivate) throws ProcessingException, SAXException, UserPreferencesException
UserPreferencesGenerator_saxPreferences in class UserPreferencesGeneratorstorageContext - 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