public abstract class AbstractInternalDynamicInformationGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
static String |
DYNAMIC_INFORMATION
Constant for root tag
|
static String |
ERROR
Constant for item's error message tag
|
static String |
ERROR_ATTRIBUTE_TYPE
Constant for item's error type tag
|
static String |
ITEM
Constant for item tag
|
static String |
ITEM_FOOTER
Constant for item's footer tag
|
static String |
ITEM_SUMMARY
Constant for item's summary tag
|
static String |
ITEM_TITLE
Constant for item's title tag
|
static String |
LONG_VALUE
Constant for long value tag
|
static String |
SHORT_VALUE
Constant for short value tag
|
static String |
TOOLTIP
Constant for tooltip tag
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
AbstractInternalDynamicInformationGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
protected String |
getCurrentLanguage()
Get the current language
|
protected UserIdentity |
getCurrentUser()
Get the current connected user
|
protected int |
getMaxItems()
Get the number of requested max items
|
protected void |
saxError(DynamicInformationException e)
SAX the error
|
protected void |
saxItem(Date title,
String summary,
String footer)
Create an item node when the title is a
Date |
protected void |
saxItem(String title,
String summary,
String footer)
Create an item node.
|
protected abstract void |
saxLongValue()
Create a long value node.
|
protected abstract void |
saxShortValue()
Create a short value node.
|
protected abstract void |
saxTooltips()
Create a tooltip node.
|
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public static final String DYNAMIC_INFORMATION
public static final String SHORT_VALUE
public static final String LONG_VALUE
public static final String TOOLTIP
public static final String ITEM
public static final String ITEM_TITLE
public static final String ITEM_SUMMARY
public static final String ITEM_FOOTER
public static final String ERROR
public static final String ERROR_ATTRIBUTE_TYPE
protected CurrentUserProvider _currentUserProvider
public AbstractInternalDynamicInformationGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected UserIdentity getCurrentUser()
null
if there is no connected userprotected String getCurrentLanguage()
protected int getMaxItems()
protected void saxError(DynamicInformationException e) throws SAXException
e
- The thrown exceptionSAXException
- If a SAXException error occursprotected abstract void saxShortValue() throws SAXException
SAXException
- If a SAXException error occursprotected abstract void saxLongValue() throws SAXException
SAXException
- If a error occurs while saxingprotected abstract void saxTooltips() throws SAXException
SAXException
- If a error occurs while saxingprotected void saxItem(String title, String summary, String footer) throws SAXException
title
- The title of item.summary
- The summary of item.footer
- The footer of item.SAXException
- If a error occurs while saxingprotected void saxItem(Date title, String summary, String footer) throws SAXException
Date
title
- The title of item as Date.summary
- The summary of item.footer
- The footer of item.SAXException
- If a error occurs while saxing