/** * * OpenOLAT - Online Learning and Training
*

* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at the * Apache homepage *

* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. *

* Initial code contributed and copyrighted by
* frentix GmbH, http://www.frentix.com *

*/ package org.olat.modules.portfolio.manager; import org.olat.core.util.xml.XStreamHelper; import com.thoughtworks.xstream.XStream; /** * For XStream * * Initial date: 21.07.2016
* @author srosse, stephane.rosse@frentix.com, http://www.frentix.com * */ public class MetadataXStream { private static final XStream xstream = XStreamHelper.createXStreamInstance(); static { XStreamHelper.allowDefaultPackage(xstream); xstream.alias("citation", org.olat.modules.portfolio.model.CitationXml.class); xstream.aliasType("citation", org.olat.modules.portfolio.model.CitationXml.class); } public static final XStream get() { return xstream; } }