com.liferay.portlet.dynamicdatamapping.util
Class DDMUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMUtil
public class DDMUtil
- extends Object
|
Method Summary |
static DDM |
getDDM()
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
|
static String |
getFileUploadPath(BaseModel<?> baseModel)
|
static OrderByComparator |
getStructureOrderByComparator(String orderByCol,
String orderByType)
|
static OrderByComparator |
getTemplateOrderByComparator(String orderByCol,
String orderByType)
|
static Fields |
mergeFields(Fields newFields,
Fields existingFields)
|
static void |
sendFieldFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Field field,
int valueIndex)
|
void |
setDDM(DDM ddm)
|
static void |
uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
ServiceContext serviceContext)
|
static 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 |
DDMUtil
public DDMUtil()
getDDM
public static DDM getDDM()
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileUploadPath
public static String getFileUploadPath(BaseModel<?> baseModel)
getStructureOrderByComparator
public static OrderByComparator getStructureOrderByComparator(String orderByCol,
String orderByType)
getTemplateOrderByComparator
public static OrderByComparator getTemplateOrderByComparator(String orderByCol,
String orderByType)
mergeFields
public static Fields mergeFields(Fields newFields,
Fields existingFields)
sendFieldFile
public static void sendFieldFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Field field,
int valueIndex)
throws Exception
- Throws:
Exception
uploadFieldFile
public static void uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
uploadFieldFile
public static void uploadFieldFile(long structureId,
long storageId,
BaseModel<?> baseModel,
String fieldName,
String fieldNamespace,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
setDDM
public void setDDM(DDM ddm)