| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| XmlDigesterService |
|
| 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.impl.impex.xml; | |
| 17 | ||
| 18 | import java.io.IOException; | |
| 19 | ||
| 20 | import org.kuali.rice.core.api.impex.xml.XmlDocCollection; | |
| 21 | import org.kuali.rice.core.framework.impex.xml.XmlLoader; | |
| 22 | ||
| 23 | /** | |
| 24 | * A service which is responsible for digesting (by delegating to other target services) | |
| 25 | * an xml document loaded at runtime. It exists so that we can apply Spring's automagical | |
| 26 | * transactioning. Ordering of invocations with respect to service dependencies is the | |
| 27 | * caller's responsibility. | |
| 28 | * Pipeline:<br/> | |
| 29 | * <ol> | |
| 30 | * <li>Acquisition: <code>XmlPollerService</code>, <i>Struts upload action</i></li> | |
| 31 | * <li>Ingestion: XmlIngesterService</li> | |
| 32 | * <li>Digestion: XmlDigesterService</li> | |
| 33 | * </ol> | |
| 34 | * @see org.kuali.rice.core.api.impex.xml.batch.XmlIngesterService | |
| 35 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 36 | */ | |
| 37 | public interface XmlDigesterService { | |
| 38 | ||
| 39 | /** | |
| 40 | * Digests an XmlDoc. Workflow User is passed to XmlLoader and the content is routing in a document | |
| 41 | * as that user if the loader supports it. | |
| 42 | * | |
| 43 | * @param xmlLoader | |
| 44 | * @param xmlDocCollection | |
| 45 | * @param principalId | |
| 46 | * @throws IOException | |
| 47 | */ | |
| 48 | public void digest(XmlLoader xmlLoader, XmlDocCollection xmlDocCollection, String principalId) throws IOException; | |
| 49 | } |