/** * Deletes the ddm template from the database. Also notifies the appropriate model listeners. * * @param ddmTemplate the ddm template * @return the ddm template that was removed */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate deleteDDMTemplate( com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) { return getService().deleteDDMTemplate(ddmTemplate); }
/** * @throws PortalException */ public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return getService().deletePersistedModel(persistedModel); }
/** * Returns all the templates with the class PK. * * @param classPK the primary key of the template's related entity * @return the templates with the class PK */ public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long classPK) { return getService().getTemplates(classPK); }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long groupId, long classNameId, long classPK, boolean includeAncestorTemplates) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getTemplates(groupId, classNameId, classPK, includeAncestorTemplates); }
/** * Returns the number of templates belonging to the group. * * @param groupId the primary key of the group * @return the number of templates belonging to the group */ public static int getTemplatesCount(long groupId) { return getService().getTemplatesCount(groupId); }
/** * Returns the number of templates matching the group and class name ID. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the template's related model * @return the number of matching templates */ public static int getTemplatesCount(long groupId, long classNameId) { return getService().getTemplatesCount(groupId, classNameId); }
public static void revertTemplate(long userId, long templateId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { getService().revertTemplate(userId, templateId, version, serviceContext); }
/** * Creates a new ddm template with the primary key. Does not add the ddm template to the database. * * @param templateId the primary key for the new ddm template * @return the new ddm template */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate createDDMTemplate( long templateId) { return getService().createDDMTemplate(templateId); }
/** * Deletes the ddm template with the primary key from the database. Also notifies the appropriate model listeners. * * @param templateId the primary key of the ddm template * @return the ddm template that was removed * @throws PortalException if a ddm template with the primary key could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate deleteDDMTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return getService().deleteDDMTemplate(templateId); }
/** * Deletes the template and its resources. * * @param templateId the primary key of the template to be deleted * @throws PortalException if a portal exception occurred */ public static void deleteTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTemplate(templateId); }
/** * Deletes all the templates of the group. * * @param groupId the primary key of the group * @throws PortalException if a portal exception occurred */ public static void deleteTemplates(long groupId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTemplates(groupId); }
/** * Returns the template with the primary key. * * @param templateId the primary key of 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.DDMTemplate fetchTemplate( long templateId) { return getService().fetchTemplate(templateId); }
/** * Returns the ddm template with the primary key. * * @param templateId the primary key of the ddm template * @return the ddm template * @throws PortalException if a ddm template with the primary key could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate getDDMTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getDDMTemplate(templateId); }
/** * Returns all the ddm templates matching the UUID and company. * * @param uuid the UUID of the ddm templates * @param companyId the primary key of the company * @return the matching ddm templates, or an empty list if no matches were found */ public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getDDMTemplatesByUuidAndCompanyId( String uuid, long companyId) { return getService().getDDMTemplatesByUuidAndCompanyId(uuid, companyId); }
/** * Returns the number of ddm templates. * * @return the number of ddm templates */ public static int getDDMTemplatesCount() { return getService().getDDMTemplatesCount(); }
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException { return getService().getPersistedModel(primaryKeyObj); }
/** * Returns the template with the primary key. * * @param templateId the primary key of the template * @return the template with the primary key * @throws PortalException if a portal exception occurred */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate getTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTemplate(templateId); }
/** * Updates the ddm template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param ddmTemplate the ddm template * @return the ddm template that was updated */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate updateDDMTemplate( com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) { return getService().updateDDMTemplate(ddmTemplate); }
/** * Returns the ddm template matching the UUID and group. * * @param uuid the ddm template's UUID * @param groupId the primary key of the group * @return the matching ddm template, or <code>null</code> if a matching ddm template could not be found */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate fetchDDMTemplateByUuidAndGroupId( String uuid, long groupId) { return getService().fetchDDMTemplateByUuidAndGroupId(uuid, groupId); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplate getTemplateBySmallImageId( long smallImageId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTemplateBySmallImageId(smallImageId); }