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 int |
countFieldRepetition(String[] fieldsDisplayValues,
String parentFieldName,
int offset)
|
protected Map<String,Object> |
getFieldContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace,
Element dynamicElementElement,
Locale locale)
|
String |
getFieldHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getFieldHTMLByName(javax.servlet.jsp.PageContext pageContext,
long classNameId,
long classPK,
String fieldName,
Fields fields,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
protected String |
getFieldNamespace(String fieldDisplayValue,
DDMFieldsCounter ddmFieldsCounter,
int offset)
|
protected int |
getFieldOffset(String[] fieldsDisplayValues,
String name,
int index)
|
protected Map<String,Map<String,Object>> |
getFieldsContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace)
|
protected DDMFieldsCounter |
getFieldsCounter(javax.servlet.jsp.PageContext pageContext,
Fields fields,
String portletNamespace,
String namespace)
|
protected String |
getFieldsDisplayValue(javax.servlet.jsp.PageContext pageContext,
Fields fields)
|
protected String[] |
getFieldsDisplayValues(String fieldDisplayValue)
|
protected Map<String,Object> |
getFreeMarkerContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace,
Element dynamicElementElement,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
DDMStructure ddmStructure,
Fields fields,
String portletNamespace,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
DDMTemplate ddmTemplate,
Fields fields,
String portletNamespace,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String portletNamespace,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
String portletNamespace,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String portletNamespace,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String portletNamespace,
String namespace,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String portletNamespace,
String namespace,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
String portletNamespace,
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)
|
String |
getSimpleFieldHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Field field,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
String |
getSimpleFieldHTMLByName(javax.servlet.jsp.PageContext pageContext,
long classNameId,
long classPK,
Field field,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
|
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 portletNamespace,
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,
Fields fields,
String portletNamespace,
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 portletNamespace,
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 portletNamespace,
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,
String portletNamespace,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Fields fields,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
String portletNamespace,
Locale locale)
throws Exception
- Throws:
Exception
getHTML
public String getHTML(javax.servlet.jsp.PageContext pageContext,
String xml,
Fields fields,
String portletNamespace,
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 portletNamespace,
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 portletNamespace,
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 portletNamespace,
String namespace,
String mode,
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,
String portletNamespace,
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
getSimpleFieldHTML
public String getSimpleFieldHTML(javax.servlet.jsp.PageContext pageContext,
Element element,
Field field,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getSimpleFieldHTML
in interface DDMXSD
- Throws:
Exception
getSimpleFieldHTMLByName
public String getSimpleFieldHTMLByName(javax.servlet.jsp.PageContext pageContext,
long classNameId,
long classPK,
Field field,
String portletNamespace,
String namespace,
String mode,
boolean readOnly,
Locale locale)
throws Exception
- Specified by:
getSimpleFieldHTMLByName
in interface DDMXSD
- Throws:
Exception
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)
countFieldRepetition
protected int countFieldRepetition(String[] fieldsDisplayValues,
String parentFieldName,
int offset)
getFieldContext
protected Map<String,Object> getFieldContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace,
Element dynamicElementElement,
Locale locale)
getFieldOffset
protected int getFieldOffset(String[] fieldsDisplayValues,
String name,
int index)
getFieldNamespace
protected String getFieldNamespace(String fieldDisplayValue,
DDMFieldsCounter ddmFieldsCounter,
int offset)
getFieldsContext
protected Map<String,Map<String,Object>> getFieldsContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace)
getFieldsCounter
protected DDMFieldsCounter getFieldsCounter(javax.servlet.jsp.PageContext pageContext,
Fields fields,
String portletNamespace,
String namespace)
getFieldsDisplayValue
protected String getFieldsDisplayValue(javax.servlet.jsp.PageContext pageContext,
Fields fields)
getFieldsDisplayValues
protected String[] getFieldsDisplayValues(String fieldDisplayValue)
getFreeMarkerContext
protected Map<String,Object> getFreeMarkerContext(javax.servlet.jsp.PageContext pageContext,
String portletNamespace,
String namespace,
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)