com.liferay.portal.layoutconfiguration.util.velocity.InitColumnProcessor 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.portal.layoutconfiguration.util.velocity;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.portlet.PortletProvider;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author Ivica Cardic
* @author Brian Wing Shun Chan
*/
public class InitColumnProcessor implements ColumnProcessor {
public List getColumns() {
return _columns;
}
@Override
public String processColumn(String columnId) {
_columns.add(columnId);
return StringPool.BLANK;
}
@Override
public String processColumn(String columnId, String classNames) {
_columns.add(columnId);
return StringPool.BLANK;
}
@Override
public String processMax() {
return StringPool.BLANK;
}
@Override
public String processPortlet(String portletId) {
return StringPool.BLANK;
}
@Override
public String processPortlet(
String portletId, Map defaultSettingsMap) {
return StringPool.BLANK;
}
@Override
public String processPortlet(
String portletProviderClassName,
PortletProvider.Action portletProviderAction) {
return StringPool.BLANK;
}
private final List _columns = new ArrayList<>();
}