@Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance addFormInstance( long userId, long groupId, long ddmStructureId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, String serializedSettingsDDMFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmFormInstanceLocalService.addFormInstance(userId, groupId, ddmStructureId, nameMap, descriptionMap, serializedSettingsDDMFormValues, serviceContext); }
/** * Deletes the ddm form instance from the database. Also notifies the appropriate model listeners. * * @param ddmFormInstance the ddm form instance * @return the ddm form instance that was removed */ @Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance deleteDDMFormInstance( com.liferay.dynamic.data.mapping.model.DDMFormInstance ddmFormInstance) { return _ddmFormInstanceLocalService.deleteDDMFormInstance(ddmFormInstance); }
@Override public void deleteFormInstance(long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { _ddmFormInstanceLocalService.deleteFormInstance(ddmFormInstanceId); }
/** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ @Override public <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return _ddmFormInstanceLocalService.dynamicQuery(dynamicQuery); }
@Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance getFormInstance( long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmFormInstanceLocalService.getFormInstance(ddmFormInstanceId); }
@Override public void deleteStagedModels(PortletDataContext portletDataContext) throws PortalException { Set<Long> formInstanceDDMStructureIds = new HashSet<>(); List<DDMFormInstance> formInstances = _ddmFormInstanceLocalService.search( portletDataContext.getCompanyId(), portletDataContext.getScopeGroupId(), null, QueryUtil.ALL_POS, QueryUtil.ALL_POS, new DDMFormInstanceNameComparator()); for (DDMFormInstance formInstance : formInstances) { formInstanceDDMStructureIds.add(formInstance.getStructureId()); _ddmFormInstanceLocalService.deleteFormInstance(formInstance); } deleteDDMStructures(formInstanceDDMStructureIds); }
/** * Returns all the ddm form instances matching the UUID and company. * * @param uuid the UUID of the ddm form instances * @param companyId the primary key of the company * @return the matching ddm form instances, or an empty list if no matches were found */ @Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMFormInstance> getDDMFormInstancesByUuidAndCompanyId( String uuid, long companyId) { return _ddmFormInstanceLocalService.getDDMFormInstancesByUuidAndCompanyId(uuid, companyId); }
@Override public DDMFormInstance fetchStagedModelByUuidAndGroupId( String uuid, long groupId) { return _ddmFormInstanceLocalService. fetchDDMFormInstanceByUuidAndGroupId(uuid, groupId); }
@Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance fetchFormInstance( long ddmFormInstanceId) { return _ddmFormInstanceLocalService.fetchFormInstance(ddmFormInstanceId); }
@Override public DDMFormInstance getStagedModel(long ddmFormInstanceId) throws PortalException { return _ddmFormInstanceLocalService.getDDMFormInstance( ddmFormInstanceId); }
@Override public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) { return _ddmFormInstanceLocalService.getExportActionableDynamicQuery(portletDataContext); }
@Override public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { return _ddmFormInstanceLocalService.dynamicQuery(); }
@Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance getFormInstance( String uuid, long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmFormInstanceLocalService.getFormInstance(uuid, ddmFormInstanceId); }
/** * Returns a range of ddm form instances matching the UUID and company. * * @param uuid the UUID of the ddm form instances * @param companyId the primary key of the company * @param start the lower bound of the range of ddm form instances * @param end the upper bound of the range of ddm form instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the range of matching ddm form instances, or an empty list if no matches were found */ @Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMFormInstance> getDDMFormInstancesByUuidAndCompanyId( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMFormInstance> orderByComparator) { return _ddmFormInstanceLocalService.getDDMFormInstancesByUuidAndCompanyId(uuid, companyId, start, end, orderByComparator); }
/** * Returns the ddm form instance matching the UUID and group. * * @param uuid the ddm form instance's UUID * @param groupId the primary key of the group * @return the matching ddm form instance, or <code>null</code> if a matching ddm form instance could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance fetchDDMFormInstanceByUuidAndGroupId( String uuid, long groupId) { return _ddmFormInstanceLocalService.fetchDDMFormInstanceByUuidAndGroupId(uuid, groupId); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstance fetchFormInstance( long ddmFormInstanceId) { return getService().fetchFormInstance(ddmFormInstanceId); }
/** * Returns the ddm form instance with the primary key. * * @param formInstanceId the primary key of the ddm form instance * @return the ddm form instance * @throws PortalException if a ddm form instance with the primary key could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMFormInstance getDDMFormInstance( long formInstanceId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmFormInstanceLocalService.getDDMFormInstance(formInstanceId); }
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) { return getService().getExportActionableDynamicQuery(portletDataContext); }
/** * Performs a dynamic query on the database and returns a range of the matching rows. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows */ @Override public <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) { return _ddmFormInstanceLocalService.dynamicQuery(dynamicQuery, start, end); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstance getFormInstance( long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getFormInstance(ddmFormInstanceId); }