public class ExportConfiguration extends AbstractNurseryService
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
ExportConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String pKey,
String pValue) |
boolean |
equals(Object o) |
EntityResolver |
getEntityResolver() |
ExportFilter |
getExportFilter() |
boolean |
getExportStaged() |
URI |
getExportURI() |
ExportWriter |
getExportWriter() |
String |
getName() |
ObjectLoader |
getObjectLoader() |
String[] |
getObjectTypes() |
Set<String> |
getObjectTypesAsSet() |
String |
getProperty(String pKey) |
int |
getPublicationId() |
Set<Integer> |
getSectionsAsSet() |
String |
getTemplateDirectory() |
ExportTransformer |
getTransformer() |
int |
hashCode() |
boolean |
isCache()
Decides whether XSL style sheets used for transforming the exported XML are cached or not.
|
boolean |
isCompressed() |
boolean |
isDisableEvents() |
boolean |
isEnabled() |
boolean |
isExportSectionParameters() |
boolean |
isImport() |
boolean |
isIncludeReferredFiles() |
boolean |
isIncludeReferredObjects() |
boolean |
isPreview() |
boolean |
isSane()
Deprecated.
use
GenericService.isServiceRunning() instead |
void |
setCache(boolean pCache)
Instructs whether XSL style sheets used for transforming the exported XML are cached or not.
|
void |
setCompressed(boolean pCompressed) |
void |
setDisableEvents(boolean pDisableEvents) |
void |
setEnabled(boolean pEnabled) |
void |
setEntityResolver(EntityResolver pEntityResolver) |
void |
setExportFilter(ExportFilter pExportFilter) |
void |
setExportSectionParameters(boolean pExportSectionParameters) |
void |
setExportStaged(boolean pExportStaged) |
void |
setExportTarget(String pExportURI) |
void |
setExportWriter(ExportWriter pExportWriter) |
void |
setImport(boolean pImport) |
void |
setIncludeReferredFiles(boolean pIncludeReferredFiles) |
void |
setIncludeReferredObjects(boolean pReferred) |
void |
setName(String pName) |
void |
setObjectLoader(ObjectLoader pObjectLoader) |
void |
setObjectTypes(String[] pObjectTypes) |
void |
setPreview(boolean pPreview) |
void |
setPublicationId(int pPublicationId) |
void |
setSections(String[] pSections) |
void |
setSectionsById(int[] pSections) |
void |
setTemplateDirectory(String pTemplate) |
void |
setTransformer(ExportTransformer pTransformer) |
boolean |
shouldExportObjectType(String pObjectType) |
protected void |
startService()
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
String |
toString() |
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public String getName()
public boolean isCompressed()
public void setCompressed(boolean pCompressed)
public void setName(String pName)
public void setObjectTypes(String[] pObjectTypes)
public String[] getObjectTypes()
public void setExportStaged(boolean pExportStaged)
public boolean getExportStaged()
public boolean isExportSectionParameters()
public void setExportSectionParameters(boolean pExportSectionParameters)
public boolean shouldExportObjectType(String pObjectType)
public String getTemplateDirectory()
public void setTemplateDirectory(String pTemplate)
public boolean isPreview()
public void setPreview(boolean pPreview)
public boolean isImport()
public void setImport(boolean pImport)
public boolean isIncludeReferredObjects()
public boolean isIncludeReferredFiles()
public void setIncludeReferredFiles(boolean pIncludeReferredFiles)
public void setIncludeReferredObjects(boolean pReferred)
public EntityResolver getEntityResolver()
public void setEntityResolver(EntityResolver pEntityResolver)
public ExportWriter getExportWriter()
public void setExportWriter(ExportWriter pExportWriter)
public ExportFilter getExportFilter()
public void setExportFilter(ExportFilter pExportFilter)
public boolean isCache()
true
if the style sheets are cached.public void setCache(boolean pCache)
pCache
- true
if the style sheets are cached.public void setSectionsById(int[] pSections)
public void setSections(String[] pSections)
public int getPublicationId()
public void setPublicationId(int pPublicationId)
public void setObjectLoader(ObjectLoader pObjectLoader)
public ObjectLoader getObjectLoader()
public boolean isDisableEvents()
public void setDisableEvents(boolean pDisableEvents)
public boolean isEnabled()
public void setEnabled(boolean pEnabled)
public URI getExportURI()
public void setExportTarget(String pExportURI)
public ExportTransformer getTransformer()
public void setTransformer(ExportTransformer pTransformer)
public boolean isSane()
GenericService.isServiceRunning()
insteadprotected void startService() throws IllegalStateException, IllegalArgumentException, Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.AbstractNurseryService.doStartService()
protected void stopService() throws IllegalStateException, Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStopService()
when the service
is being shut down. Exceptions thrown by this
method are logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shut down the service.
stopService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for shutdown. Used to signal to AbstractNurseryService.doStopService()
that
it is OK to try stopping this service
later. GenericService.isServiceRunning()
returns true
.Exception
- when something goes during shutdown. GenericService.isServiceRunning()
returns false
and
GenericService.isServiceShutdownFailed()
returns true
.AbstractNurseryService.doStopService()
© 1998- 2018 Stibo DX