com.liferay.portlet.dynamicdatamapping.lar
Class DDMTemplateStagedModelDataHandler
java.lang.Object
com.liferay.portal.kernel.lar.BaseStagedModelDataHandler<DDMTemplate>
com.liferay.portlet.dynamicdatamapping.lar.DDMTemplateStagedModelDataHandler
- All Implemented Interfaces:
- StagedModelDataHandler<DDMTemplate>
public class DDMTemplateStagedModelDataHandler
- extends BaseStagedModelDataHandler<DDMTemplate>
|
Method Summary |
protected DDMTemplate |
addTemplate(long userId,
long groupId,
DDMTemplate template,
long classPK,
File smallFile,
ServiceContext serviceContext)
|
void |
deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
|
protected void |
doExportStagedModel(PortletDataContext portletDataContext,
DDMTemplate template)
|
protected void |
doImportStagedModel(PortletDataContext portletDataContext,
DDMTemplate template)
|
String[] |
getClassNames()
|
String |
getDisplayName(DDMTemplate template)
|
Map<String,String> |
getReferenceAttributes(PortletDataContext portletDataContext,
DDMTemplate template)
|
void |
importCompanyStagedModel(PortletDataContext portletDataContext,
Element element)
|
protected boolean |
validateMissingReference(String uuid,
long companyId,
long groupId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
DDMTemplateStagedModelDataHandler
public DDMTemplateStagedModelDataHandler()
deleteStagedModel
public void deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
throws PortalException,
SystemException
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<DDMTemplate>- Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<DDMTemplate>
- Throws:
PortalException
SystemException
getClassNames
public String[] getClassNames()
- Specified by:
getClassNames in interface StagedModelDataHandler<DDMTemplate>- Specified by:
getClassNames in class BaseStagedModelDataHandler<DDMTemplate>
getDisplayName
public String getDisplayName(DDMTemplate template)
- Specified by:
getDisplayName in interface StagedModelDataHandler<DDMTemplate>- Overrides:
getDisplayName in class BaseStagedModelDataHandler<DDMTemplate>
getReferenceAttributes
public Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
DDMTemplate template)
- Specified by:
getReferenceAttributes in interface StagedModelDataHandler<DDMTemplate>- Overrides:
getReferenceAttributes in class BaseStagedModelDataHandler<DDMTemplate>
importCompanyStagedModel
public void importCompanyStagedModel(PortletDataContext portletDataContext,
Element element)
throws PortletDataException
- Specified by:
importCompanyStagedModel in interface StagedModelDataHandler<DDMTemplate>- Overrides:
importCompanyStagedModel in class BaseStagedModelDataHandler<DDMTemplate>
- Throws:
PortletDataException
addTemplate
protected DDMTemplate addTemplate(long userId,
long groupId,
DDMTemplate template,
long classPK,
File smallFile,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
doExportStagedModel
protected void doExportStagedModel(PortletDataContext portletDataContext,
DDMTemplate template)
throws Exception
- Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<DDMTemplate>
- Throws:
Exception
doImportStagedModel
protected void doImportStagedModel(PortletDataContext portletDataContext,
DDMTemplate template)
throws Exception
- Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<DDMTemplate>
- Throws:
Exception
validateMissingReference
protected boolean validateMissingReference(String uuid,
long companyId,
long groupId)
throws Exception
- Overrides:
validateMissingReference in class BaseStagedModelDataHandler<DDMTemplate>
- Throws:
Exception