public class SitemapWriterService extends SingletonSchedulableService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mJobId
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
SitemapWriterService() |
Modifier and Type | Method and Description |
---|---|
void |
doScheduledTask(Scheduler pScheduler,
ScheduledJob pJob)
Writes sitemap and siteindex files by schedule.
|
SitemapPropertiesManager |
getSitemapPropertiesManager()
Returns SitemapPropertiesManager - utility class which provide
property names for
SitemapRepository . |
MutableRepository |
getSitemapRepository()
Returns current sitemap repository.
|
SitemapTools |
getSitemapTools()
Returns utility class for handling repository items of types sitemap and siteindex.
|
java.lang.String |
getWarDir()
Returns path where applications's war is located.
|
void |
setSitemapPropertiesManager(SitemapPropertiesManager pSitemapPropertiesManager)
Sets new property manager.
|
void |
setSitemapRepository(MutableRepository pSitemapRepository)
Sets new sitemap repository.
|
void |
setSitemapTools(SitemapTools pSitemapTools)
Sets new
SitemapTools . |
void |
setWarDir(java.lang.String pWarDir)
Sets new path where to war directory.
|
void |
writeItemsToFiles(RepositoryItem[] pItems)
Write array of repository items to local file system.
|
void |
writeItemToFile(RepositoryItem pItem)
Write repository item to local file in
warDir . |
void |
writeSiteindex(RepositoryItem[] pSiteindex)
Write siteindex files.
|
void |
writeSitemapFiles()
Writes sitemap and siteindex files to the file system.
|
void |
writeSitemaps(RepositoryItem[] pSitemaps)
Write sitemap files.
|
acquireLock, getClientLockManager, getLockName, getLockTimeOut, performScheduledTask, releaseLock, setClientLockManager, setLockName, setLockTimeOut
doStartService, doStopService, getJobDescription, getJobId, getJobName, getSchedule, getScheduler, getThreadMethod, getThreadMethodString, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setThreadMethodString, setTransactional, startScheduledJob, stopScheduledJob
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public MutableRepository getSitemapRepository()
public void setSitemapRepository(MutableRepository pSitemapRepository)
SitemapRepository
- the MutableRepository to set.public java.lang.String getWarDir()
public void setWarDir(java.lang.String pWarDir)
WarDir
- directory where application's war is located.public SitemapPropertiesManager getSitemapPropertiesManager()
SitemapRepository
.public void setSitemapPropertiesManager(SitemapPropertiesManager pSitemapPropertiesManager)
SitemapPropertiesManager
- properties manager to setpublic SitemapTools getSitemapTools()
public void setSitemapTools(SitemapTools pSitemapTools)
SitemapTools
.SitemapTools
- the SitemapTools to setpublic void doScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
doScheduledTask
in class SingletonSchedulableService
pScheduler
- SchedulerpJob
- Scheduled jobpublic void writeSitemapFiles()
public void writeSitemaps(RepositoryItem[] pSitemaps)
pSitemaps
- array of repository items that contains data for sitemap filespublic void writeSiteindex(RepositoryItem[] pSiteindex)
pSiteindex
- array of repository items that contains data for siteindex filespublic void writeItemsToFiles(RepositoryItem[] pItems)
pItems
- array of repository items that contains sitemap or siteindex repository itemspublic void writeItemToFile(RepositoryItem pItem)
warDir
.pItem
- RepositoryItem sitemap or siteindex repository item.