com.liferay.journal.web.internal.info.item.provider.JournalArticleInfoItemCapabilitiesProvider Maven / Gradle / Ivy
/**
* 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.journal.web.internal.info.item.provider;
import com.liferay.info.item.capability.InfoItemCapability;
import com.liferay.info.item.provider.InfoItemCapabilitiesProvider;
import com.liferay.journal.model.JournalArticle;
import com.liferay.layout.page.template.info.item.capability.DisplayPageInfoItemCapability;
import com.liferay.portal.kernel.util.ListUtil;
import com.liferay.template.info.item.capability.TemplateInfoItemCapability;
import java.util.List;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Jorge Ferrer
*/
@Component(service = InfoItemCapabilitiesProvider.class)
public class JournalArticleInfoItemCapabilitiesProvider
implements InfoItemCapabilitiesProvider {
@Override
public List getInfoItemCapabilities() {
return ListUtil.fromArray(
_displayPageInfoItemCapability, _templatePageInfoItemCapability);
}
@Reference
private DisplayPageInfoItemCapability _displayPageInfoItemCapability;
@Reference
private TemplateInfoItemCapability _templatePageInfoItemCapability;
}