Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil Maven / Gradle / Ivy
/**
* 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.json.JSONArray;
import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
import com.liferay.portal.kernel.xml.Document;
import com.liferay.portal.kernel.xml.Element;
import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
import com.liferay.portlet.dynamicdatamapping.storage.Field;
import com.liferay.portlet.dynamicdatamapping.storage.Fields;
import java.util.Locale;
import javax.servlet.jsp.PageContext;
/**
* @author Eduardo Lundgren
* @author Brian Wing Shun Chan
*/
public class DDMXSDUtil {
public static DDMXSD getDDMXSD() {
PortalRuntimePermission.checkGetBeanProperty(DDMXSDUtil.class);
return _ddmXSD;
}
public static String getFieldHTMLByName(
PageContext pageContext, long classNameId, long classPK,
String fieldName, Fields fields, String portletNamespace,
String namespace, String mode, boolean readOnly, Locale locale)
throws Exception {
return getDDMXSD().getFieldHTMLByName(
pageContext, classNameId, classPK, fieldName, fields,
portletNamespace, namespace, mode, readOnly, locale);
}
public static String getHTML(
PageContext pageContext, DDMStructure ddmStructure, Fields fields,
String portletNamespace, String namespace, boolean readOnly,
Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, ddmStructure, fields, portletNamespace, namespace,
readOnly, locale);
}
public static String getHTML(
PageContext pageContext, DDMTemplate ddmTemplate, Fields fields,
String portletNamespace, String namespace, boolean readOnly,
Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, ddmTemplate, fields, portletNamespace, namespace,
readOnly, locale);
}
public static String getHTML(
PageContext pageContext, String xml, Fields fields,
String portletNamespace, Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, xml, fields, portletNamespace, locale);
}
public static String getHTML(
PageContext pageContext, String xml, Fields fields,
String portletNamespace, String namespace, boolean readOnly,
Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, xml, fields, portletNamespace, namespace, readOnly,
locale);
}
public static String getHTML(
PageContext pageContext, String xml, Fields fields,
String portletNamespace, String namespace, Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, xml, fields, portletNamespace, namespace, locale);
}
public static String getHTML(
PageContext pageContext, String xml, Fields fields,
String portletNamespace, String namespace, String mode,
boolean readOnly, Locale locale)
throws Exception {
return getDDMXSD().getHTML(
pageContext, xml, fields, portletNamespace, namespace, mode,
readOnly, locale);
}
public static String getHTML(
PageContext pageContext, String xml, String portletNamespace,
Locale locale)
throws Exception {
return getDDMXSD().getHTML(pageContext, xml, portletNamespace, locale);
}
public static JSONArray getJSONArray(DDMStructure structure, String xsd)
throws PortalException, SystemException {
return getDDMXSD().getJSONArray(structure, xsd);
}
public static JSONArray getJSONArray(Document document)
throws PortalException {
return getDDMXSD().getJSONArray(document);
}
public static JSONArray getJSONArray(Element element)
throws PortalException {
return getDDMXSD().getJSONArray(element);
}
public static JSONArray getJSONArray(String xml)
throws PortalException, SystemException {
return getDDMXSD().getJSONArray(xml);
}
public static String getSimpleFieldHTML(
PageContext pageContext, Element element, Field field,
String portletNamespace, String namespace, String mode,
boolean readOnly, Locale locale)
throws Exception {
return getDDMXSD().getSimpleFieldHTML(
pageContext, element, field, portletNamespace, namespace, mode,
readOnly, locale);
}
public static String getSimpleFieldHTMLByName(
PageContext pageContext, long classNameId, long classPK,
Field field, String portletNamespace, String namespace, String mode,
boolean readOnly, Locale locale)
throws Exception {
return getDDMXSD().getSimpleFieldHTMLByName(
pageContext, classNameId, classPK, field, portletNamespace,
namespace, mode, readOnly, locale);
}
public static String getXSD(long classNameId, long classPK)
throws PortalException, SystemException {
return getDDMXSD().getXSD(classNameId, classPK);
}
public void setDDMXSD(DDMXSD ddmXSD) {
PortalRuntimePermission.checkSetBeanProperty(getClass());
_ddmXSD = ddmXSD;
}
private static DDMXSD _ddmXSD;
}