com.liferay.portlet.dynamicdatamapping.util.DDM Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 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.portlet.dynamicdatamapping.util;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portlet.dynamicdatamapping.storage.Field;
import com.liferay.portlet.dynamicdatamapping.storage.Fields;
import java.io.Serializable;
/**
* @author Eduardo Lundgren
* @author Marcellus Tavares
*/
public interface DDM {
public DDMDisplay getDDMDisplay(ServiceContext serviceContext);
public Serializable getDisplayFieldValue(
ThemeDisplay themeDisplay, Serializable fieldValue, String type)
throws Exception;
public Fields getFields(
long ddmStructureId, long ddmTemplateId,
ServiceContext serviceContext)
throws PortalException, SystemException;
public Fields getFields(
long ddmStructureId, long ddmTemplateId, String fieldNamespace,
ServiceContext serviceContext)
throws PortalException, SystemException;
public Fields getFields(long ddmStructureId, ServiceContext serviceContext)
throws PortalException, SystemException;
public Fields getFields(
long ddmStructureId, String fieldNamespace,
ServiceContext serviceContext)
throws PortalException, SystemException;
public String[] getFieldsDisplayValues(Field fieldsDisplayField)
throws Exception;
public Serializable getIndexedFieldValue(
Serializable fieldValue, String type)
throws Exception;
public OrderByComparator getStructureOrderByComparator(
String orderByCol, String orderByType);
public OrderByComparator getTemplateOrderByComparator(
String orderByCol, String orderByType);
public Fields mergeFields(Fields newFields, Fields existingFields);
}