com.liferay.portlet.dynamicdatamapping.util
Class DDMImpl
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMImpl
- All Implemented Interfaces:
- DDM
public class DDMImpl
- extends Object
- implements DDM
|
Method Summary |
protected DDMStructure |
getDDMStructure(long ddmStructureId,
long ddmTemplateId)
|
protected List<String> |
getFieldNames(DDMStructure ddmStructure,
String fieldName,
String fieldNamespace,
JSONObject repeatableFieldsMapJSONObject)
|
protected List<String> |
getFieldNames(long structureId,
String fieldNamespace,
String fieldName,
ServiceContext serviceContext)
|
Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
|
Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
|
Fields |
getFields(long ddmStructureId,
ServiceContext serviceContext)
|
Fields |
getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
|
protected List<Serializable> |
getFieldValues(DDMStructure ddmStructure,
JSONObject repeatabaleFieldsMapJSONObject,
String fieldName,
String fieldNamespace,
ServiceContext serviceContext)
|
String |
getFileUploadPath(BaseModel<?> baseModel)
|
protected JSONObject |
getRepeatableFieldsMapJSONObject(ServiceContext serviceContext)
|
OrderByComparator |
getStructureOrderByComparator(String orderByCol,
String orderByType)
|
OrderByComparator |
getTemplateOrderByComparator(String orderByCol,
String orderByType)
|
Fields |
mergeFields(Fields newFields,
Fields existingFields)
|
void |
sendFieldFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Field field,
int valueIndex)
|
protected String |
storeFieldFile(BaseModel<?> baseModel,
String fieldName,
InputStream inputStream,
ServiceContext serviceContext)
|
void |
uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
ServiceContext serviceContext)
|
void |
uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
String fieldNamespace,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_CHECKBOX
public static final String TYPE_CHECKBOX
- See Also:
- Constant Field Values
TYPE_DDM_DOCUMENTLIBRARY
public static final String TYPE_DDM_DOCUMENTLIBRARY
- See Also:
- Constant Field Values
TYPE_DDM_FILEUPLOAD
public static final String TYPE_DDM_FILEUPLOAD
- See Also:
- Constant Field Values
TYPE_RADIO
public static final String TYPE_RADIO
- See Also:
- Constant Field Values
TYPE_SELECT
public static final String TYPE_SELECT
- See Also:
- Constant Field Values
DDMImpl
public DDMImpl()
getFields
public Fields getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
getFields in interface DDM
- Throws:
PortalException
SystemException
getFields
public Fields getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
getFields in interface DDM
- Throws:
PortalException
SystemException
getFields
public Fields getFields(long ddmStructureId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
getFields in interface DDM
- Throws:
PortalException
SystemException
getFields
public Fields getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
getFields in interface DDM
- Throws:
PortalException
SystemException
getFileUploadPath
public String getFileUploadPath(BaseModel<?> baseModel)
- Specified by:
getFileUploadPath in interface DDM
getStructureOrderByComparator
public OrderByComparator getStructureOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getStructureOrderByComparator in interface DDM
getTemplateOrderByComparator
public OrderByComparator getTemplateOrderByComparator(String orderByCol,
String orderByType)
- Specified by:
getTemplateOrderByComparator in interface DDM
mergeFields
public Fields mergeFields(Fields newFields,
Fields existingFields)
- Specified by:
mergeFields in interface DDM
sendFieldFile
public void sendFieldFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Field field,
int valueIndex)
throws Exception
- Specified by:
sendFieldFile in interface DDM
- Throws:
Exception
uploadFieldFile
public void uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
ServiceContext serviceContext)
throws Exception
- Specified by:
uploadFieldFile in interface DDM
- Throws:
Exception
uploadFieldFile
public void uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
String fieldNamespace,
ServiceContext serviceContext)
throws Exception
- Specified by:
uploadFieldFile in interface DDM
- Throws:
Exception
getDDMStructure
protected DDMStructure getDDMStructure(long ddmStructureId,
long ddmTemplateId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldNames
protected List<String> getFieldNames(DDMStructure ddmStructure,
String fieldName,
String fieldNamespace,
JSONObject repeatableFieldsMapJSONObject)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldNames
protected List<String> getFieldNames(long structureId,
String fieldNamespace,
String fieldName,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldValues
protected List<Serializable> getFieldValues(DDMStructure ddmStructure,
JSONObject repeatabaleFieldsMapJSONObject,
String fieldName,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRepeatableFieldsMapJSONObject
protected JSONObject getRepeatableFieldsMapJSONObject(ServiceContext serviceContext)
storeFieldFile
protected String storeFieldFile(BaseModel<?> baseModel,
String fieldName,
InputStream inputStream,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception