public class LinksGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private static String |
__DISPLAY_USER_LINKS_PARAMETER |
private CurrentUserProvider |
_currentUserProvider
The current user provider
|
private DirectoryHelper |
_directoryHelper |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
LinksGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxDeletedThemes(String siteName,
String language,
List<String> themesIdsList)
Sax the amount of deleted themes
|
protected void |
_saxUserLinks(Request request,
AttributesImpl attrs,
String siteName,
String language,
UserIdentity currentUser,
String storageContext)
SAX the links of current user
|
void |
generate() |
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
private static final String __DISPLAY_USER_LINKS_PARAMETER
private CurrentUserProvider _currentUserProvider
private DirectoryHelper _directoryHelper
public LinksGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxDeletedThemes(String siteName, String language, List<String> themesIdsList) throws SAXException
siteName
- the site's namelanguage
- the languagethemesIdsList
- the list of theme idsSAXException
- if an exception occurs while saxingprotected void _saxUserLinks(Request request, AttributesImpl attrs, String siteName, String language, UserIdentity currentUser, String storageContext) throws SAXException, UserPreferencesException
request
- The requestattrs
- The attributes for user-links tagsiteName
- The site namelanguage
- The languagecurrentUser
- The current user identitystorageContext
- The storage contextSAXException
- if an exception occurs while saxingUserPreferencesException
- if an exception occurs while getting the user preferences