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 JSONArray |
addStructureFieldAttributes(DDMStructure structure,
JSONArray jsonArray)
|
protected Map<String,Object> |
getFieldContext(Element dynamicElementElement,
Locale locale)
|
String |
getFieldHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getFieldHTMLByName(javax.servlet.jsp.PageContext pageContext,
long classNameId,
long classPK,
String fieldName,
int repeatableIndex,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
protected Map<String,Object> |
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(DDMStructure structure,
String xsd)
|
JSONArray |
getJSONArray(Document document)
|
JSONArray |
getJSONArray(Element element)
|
JSONArray |
getJSONArray(String xml)
|
protected URL |
getResource(String name)
|
protected JSONArray |
getStructureFieldReadOnlyAttributes(DDMStructure structure,
String fieldName)
|
String |
getXSD(long classNameId,
long classPK)
|
protected String |
processFTL(javax.servlet.jsp.PageContext pageContext,
Element element,
String mode,
boolean readOnly,
Map<String,Object> freeMarkerContext)
|
protected String |
processFTL(javax.servlet.jsp.PageContext pageContext,
Template template)
|
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()
getFieldHTML
public String getFieldHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getFieldHTML in interface DDMXSD
- Throws:
Exception
getFieldHTMLByName
public String getFieldHTMLByName(javax.servlet.jsp.PageContext pageContext,
long classNameId,
long classPK,
String fieldName,
int repeatableIndex,
Fields fields,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getFieldHTMLByName in interface DDMXSD
- Throws:
Exception
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(DDMStructure structure,
String xsd)
throws PortalException,
SystemException
- Specified by:
getJSONArray in interface DDMXSD
- Throws:
PortalException
SystemException
getJSONArray
public JSONArray getJSONArray(Document document)
throws PortalException
- Specified by:
getJSONArray in interface DDMXSD
- Throws:
PortalException
getJSONArray
public JSONArray getJSONArray(Element element)
throws PortalException
- Specified by:
getJSONArray in interface DDMXSD
- Throws:
PortalException
getJSONArray
public JSONArray getJSONArray(String xml)
throws PortalException,
SystemException
- Specified by:
getJSONArray in interface DDMXSD
- Throws:
PortalException
SystemException
getXSD
public String getXSD(long classNameId,
long classPK)
throws PortalException,
SystemException
- Specified by:
getXSD in interface DDMXSD
- Throws:
PortalException
SystemException
addStructureFieldAttributes
protected JSONArray addStructureFieldAttributes(DDMStructure structure,
JSONArray jsonArray)
getFieldContext
protected Map<String,Object> getFieldContext(Element dynamicElementElement,
Locale locale)
getFreeMarkerContext
protected Map<String,Object> getFreeMarkerContext(Element dynamicElementElement,
Locale locale)
getResource
protected URL getResource(String name)
getStructureFieldReadOnlyAttributes
protected JSONArray getStructureFieldReadOnlyAttributes(DDMStructure structure,
String fieldName)
processFTL
protected String processFTL(javax.servlet.jsp.PageContext pageContext,
Element element,
String mode,
boolean readOnly,
Map<String,Object> freeMarkerContext)
throws Exception
- Throws:
Exception
processFTL
protected String processFTL(javax.servlet.jsp.PageContext pageContext,
Template template)
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)