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  | 
managerobjectModel, parameters, resolver, sourcecontentHandler, 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)  | 
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprivate 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 Serviceableservice in class ServiceableGeneratorServiceExceptionpublic 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