com.liferay.portlet.dynamicdatalists.util
Class DDLUtil
java.lang.Object
com.liferay.portlet.dynamicdatalists.util.DDLUtil
public class DDLUtil
- extends java.lang.Object
- Author:
- Eduardo Lundgren
|
Method Summary |
static void |
addAllReservedEls(Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
DDLRecordSet recordSet)
|
static DDL |
getDDL()
|
static void |
getRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DDLRecord record,
java.lang.String fieldName)
|
static JSONObject |
getRecordJSONObject(DDLRecord record)
|
static JSONObject |
getRecordJSONObject(DDLRecord record,
boolean latestRecordVersion)
|
static JSONArray |
getRecordSetJSONArray(DDLRecordSet recordSet)
|
static JSONArray |
getRecordsJSONArray(java.util.List<DDLRecord> records)
|
static JSONArray |
getRecordsJSONArray(java.util.List<DDLRecord> records,
boolean latestRecordVersion)
|
static java.lang.String |
getTemplateContent(long ddmTemplateId,
DDLRecordSet recordSet,
ThemeDisplay themeDisplay,
javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
|
static void |
sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DDLRecord record,
java.lang.String fieldName)
|
static void |
sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long recordId,
java.lang.String fieldName)
|
void |
setDDL(DDL ddl)
|
static DDLRecord |
updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
boolean checkPermission,
ServiceContext serviceContext)
|
static DDLRecord |
updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
ServiceContext serviceContext)
|
static java.lang.String |
uploadRecordFieldFile(DDLRecord record,
java.lang.String fieldName,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDLUtil
public DDLUtil()
addAllReservedEls
public static void addAllReservedEls(Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
DDLRecordSet recordSet)
getDDL
public static DDL getDDL()
getRecordFileUpload
public static void getRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DDLRecord record,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecordJSONObject
public static JSONObject getRecordJSONObject(DDLRecord record)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecordJSONObject
public static JSONObject getRecordJSONObject(DDLRecord record,
boolean latestRecordVersion)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecordSetJSONArray
public static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecordsJSONArray
public static JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecordsJSONArray
public static JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records,
boolean latestRecordVersion)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTemplateContent
public static java.lang.String getTemplateContent(long ddmTemplateId,
DDLRecordSet recordSet,
ThemeDisplay themeDisplay,
javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendRecordFileUpload
public static void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DDLRecord record,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendRecordFileUpload
public static void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long recordId,
java.lang.String fieldName)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateRecord
public static DDLRecord updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
boolean checkPermission,
ServiceContext serviceContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateRecord
public static DDLRecord updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
ServiceContext serviceContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
uploadRecordFieldFile
public static java.lang.String uploadRecordFieldFile(DDLRecord record,
java.lang.String fieldName,
ServiceContext serviceContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
setDDL
public void setDDL(DDL ddl)