/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.shopping.internal.exportimport.data.handler; import com.liferay.exportimport.kernel.lar.BasePortletDataHandler; import com.liferay.exportimport.kernel.lar.PortletDataHandler; import com.liferay.portal.kernel.module.framework.ModuleServiceLifecycle; import com.liferay.shopping.constants.ShoppingConstants; import com.liferay.shopping.constants.ShoppingPortletKeys; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; /** * @author Iván Zaera */ @Component( property = { "javax.portlet.name=" + ShoppingPortletKeys.SHOPPING, "javax.portlet.name=" + ShoppingPortletKeys.SHOPPING_ADMIN }, service = PortletDataHandler.class ) public class ShoppingPortletDataHandler extends BasePortletDataHandler { public static final String SCHEMA_VERSION = "1.0.2"; @Override public String getSchemaVersion() { return SCHEMA_VERSION; } @Override public String getServiceName() { return ShoppingConstants.SERVICE_NAME; } @Reference(target = ModuleServiceLifecycle.PORTAL_INITIALIZED, unbind = "-") protected void setModuleServiceLifecycle( ModuleServiceLifecycle moduleServiceLifecycle) { } }