| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| XmlIngesterService |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2005-2011 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl2.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.core.api.impex.xml; | |
| 17 | ||
| 18 | import java.util.Collection; | |
| 19 | import java.util.List; | |
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | /** | |
| 24 | * A service which is responsible for iterating through | |
| 25 | * a list of xml documents or collections of xml documents | |
| 26 | * and ingesting them into the workflow engine. | |
| 27 | * Pipeline:<br/> | |
| 28 | * <ol> | |
| 29 | * <li>Acquisition: <code>XmlPollerService</code>, <i>Struts upload action</i></li> | |
| 30 | * <li>Ingestion: XmlIngesterService</li> | |
| 31 | * <li>Digestion: XmlDigesterService</li> | |
| 32 | * </ol> | |
| 33 | * @see org.kuali.rice.kew.batch.XmlDigesterService | |
| 34 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 35 | */ | |
| 36 | public interface XmlIngesterService { | |
| 37 | /** | |
| 38 | * Ingest a list of xml doc collections | |
| 39 | * @param xmlDocCollections the list of {@link XmlDocCollection}s | |
| 40 | * @return failed xml doc collections | |
| 41 | * @throws Exception if failed to ingest | |
| 42 | */ | |
| 43 | Collection<XmlDocCollection> ingest(List<XmlDocCollection> xmlDocCollections) throws Exception; | |
| 44 | ||
| 45 | /** | |
| 46 | * Ingest a list of xml doc collections, but it routing is supported by any of the services ultimately being called | |
| 47 | * route the xml data with user being the initiator of any documents created. | |
| 48 | * @param xmlDocCollections list | |
| 49 | * @param principalId of user | |
| 50 | * @return failed xml doc collections | |
| 51 | * @throws Exception if failed to ingest | |
| 52 | */ | |
| 53 | Collection<XmlDocCollection> ingest(List<XmlDocCollection> xmlDocCollections, String principalId) throws Exception; | |
| 54 | } |