|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.service.scheduler.SchedulableService atg.service.scheduler.SingletonSchedulableService atg.sitemap.SitemapWriterService
public class SitemapWriterService
This service creates copies of sitemap and siteindex files to the local file system. It could be run by schedule or manually using ATG Dynamo Admin UI.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.service.scheduler.SchedulableService |
---|
mJobId |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SitemapWriterService()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.service.scheduler.SingletonSchedulableService |
---|
acquireLock, getClientLockManager, getLockName, getLockTimeOut, performScheduledTask, releaseLock, setClientLockManager, setLockName, setLockTimeOut |
Methods inherited from class atg.service.scheduler.SchedulableService |
---|
doStartService, doStopService, getJobDescription, getJobId, getJobName, getSchedule, getScheduler, getThreadMethod, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setTransactional, startScheduledJob, stopScheduledJob |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SitemapWriterService()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |