public final class IngestXmlExecutable extends Object implements org.kuali.common.util.execute.Executable
Locates workflow XML documents available on the classpath and ingests them.
No file system access is required. The XML documents are ingested using Spring's classpath:
notation to
locate them, open an InputStream
, and feed them to the ingester service. Any workflow document failing to be
ingested correctly results in an exception being thrown.
If an explicit XmlIngesterService
instance is not provided,
CoreApiServiceLocator.getXmlIngesterService()
must be able to correctly locate XmlIngesterService.
Modifier and Type | Class and Description |
---|---|
static class |
IngestXmlExecutable.Builder |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
List<String> |
getLocationListings() |
com.google.common.base.Optional<XmlIngesterService> |
getService() |
protected List<XmlDocCollection> |
getXmlDocCollectionList(List<String> locationListings) |
protected Collection<XmlDocCollection> |
ingest(List<XmlDocCollection> collections) |
boolean |
isSkip() |
protected void |
validateNoFailures(Collection<XmlDocCollection> failures) |
public void execute()
execute
in interface org.kuali.common.util.execute.Executable
protected List<XmlDocCollection> getXmlDocCollectionList(List<String> locationListings)
protected void validateNoFailures(Collection<XmlDocCollection> failures)
protected Collection<XmlDocCollection> ingest(List<XmlDocCollection> collections)
public com.google.common.base.Optional<XmlIngesterService> getService()
public List<String> getLocationListings()
public boolean isSkip()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.