public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap copyTemplate( long templateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.copyTemplate(templateId, serviceContext); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Deletes the template and its resources. * * @param templateId the primary key of the template to be deleted */ public static void deleteTemplate(long templateId) throws RemoteException { try { DDMTemplateServiceUtil.deleteTemplate(templateId); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, boolean includeAncestorTemplates, int status) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, includeAncestorTemplates, status); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Returns the template with the ID. * * @param templateId the primary key of the template * @return the template with the ID */ public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap getTemplate( long templateId) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.getTemplate(templateId); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Returns the template matching the group and template key. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for template's related model * @param templateKey the unique string identifying the template * @return the matching template, or <code>null</code> if a matching template could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap fetchTemplate( long groupId, long classNameId, String templateKey) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.fetchTemplate(groupId, classNameId, templateKey); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Returns all the templates matching the group, class PK, and resource * class name ID. * * @param companyId the primary key of the template's company * @param groupId the primary key of the group * @param classPK the primary key of the template's related entity * @param resourceClassNameId the primary key of the class name for the template's resource model * @return the matching templates */ public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplatesByClassPK( long companyId, long groupId, long classPK, long resourceClassNameId, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplatesByClassPK(companyId, groupId, classPK, resourceClassNameId, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.copyTemplates(classNameId, oldClassPK, resourceClassNameId, newClassPK, type, serviceContext);
try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplatesByStructureClassNameId(groupId, structureClassNameId, status, start, end, orderByComparator);
descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.addTemplate(groupId, classNameId, classPK, resourceClassNameId, nameMap, descriptionMap, type, mode, language, script, serviceContext);
public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplates( long companyId, long groupId, long classNameId, long resourceClassNameId, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplates(companyId, groupId, classNameId, resourceClassNameId, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Returns the template matching the group and template key. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for template's related model * @param templateKey the unique string identifying the template * @return the matching template */ public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap getTemplate( long groupId, long classNameId, String templateKey) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.getTemplate(groupId, classNameId, templateKey); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Deletes the template and its resources. * * @param templateId the primary key of the template to be deleted */ public static void deleteTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTemplate(templateId); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, boolean includeAncestorTemplates, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, includeAncestorTemplates, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
boolean includeAncestorTemplates) throws RemoteException { try { com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.getTemplate(groupId, classNameId, templateKey, includeAncestorTemplates);
descriptionMapValues); com.liferay.dynamic.data.mapping.model.DDMTemplate returnValue = DDMTemplateServiceUtil.copyTemplate(templateId, nameMap, descriptionMap, serviceContext);
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long companyId, long groupId, long classNameId, long resourceClassNameId, int status) { return getService() .getTemplates(companyId, groupId, classNameId, resourceClassNameId, status); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, String type, String mode, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, type, mode, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, int status) { return getService() .getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, status); }
/** * Returns all the templates matching the group, class name ID, class PK, * resource class name ID, and type. * * @param companyId the primary key of the template's company * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the template's related model * @param classPK the primary key of the template's related entity * @param resourceClassNameId the primary key of the class name for the template's resource model * @param type the template's type. For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @return the matching templates */ public static com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, String type, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, type, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }