com.liferay.portlet.dynamicdatamapping.util
Class DDMXSDImpl
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMXSDImpl
- All Implemented Interfaces:
- DDMXSD
public class DDMXSDImpl
- extends Object
- implements DDMXSD
Method Summary |
protected Map<String,Object> |
getFieldContext(Element dynamicElementElement,
Locale locale)
|
protected FreeMarkerContext |
getFreeMarkerContext(Element dynamicElementElement,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
DDMStructure ddmStructure,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
DDMTemplate ddmTemplate,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Locale locale)
|
JSONArray |
getJSONArray(Document document)
|
JSONArray |
getJSONArray(Element element)
|
JSONArray |
getJSONArray(String xml)
|
protected String |
processFTL(javax.servlet.jsp.PageContext pageContext,
FreeMarkerContext freeMarkerContext,
String resourcePath,
String defaultResourcePath)
|
protected void |
putMetadataValue(JSONObject jsonObject,
String attributeName,
String attributeValue,
String type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMXSDImpl
public DDMXSDImpl()
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
DDMStructure ddmStructure,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
DDMTemplate ddmTemplate,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Locale locale)
throws Exception
- Specified by:
getHTML
in interface DDMXSD
- Throws:
Exception
getJSONArray
public JSONArray getJSONArray(Document document)
throws JSONException
- Specified by:
getJSONArray
in interface DDMXSD
- Throws:
JSONException
getJSONArray
public JSONArray getJSONArray(Element element)
throws JSONException
- Specified by:
getJSONArray
in interface DDMXSD
- Throws:
JSONException
getJSONArray
public JSONArray getJSONArray(String xml)
throws DocumentException,
JSONException
- Specified by:
getJSONArray
in interface DDMXSD
- Throws:
DocumentException
JSONException
getFieldContext
protected Map<String,Object> getFieldContext(Element dynamicElementElement,
Locale locale)
getFreeMarkerContext
protected FreeMarkerContext getFreeMarkerContext(Element dynamicElementElement,
Locale locale)
processFTL
protected String processFTL(javax.servlet.jsp.PageContext pageContext,
FreeMarkerContext freeMarkerContext,
String resourcePath,
String defaultResourcePath)
throws Exception
- Throws:
Exception
- See Also:
ThemeUtil.includeFTL(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.jsp.PageContext, java.lang.String, com.liferay.portal.model.Theme, boolean)
putMetadataValue
protected void putMetadataValue(JSONObject jsonObject,
String attributeName,
String attributeValue,
String type)