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 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 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); }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, String type, String mode, int status) { return getService() .getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, type, mode, status); }
/** * 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); }
/** * 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.DDMTemplate getTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTemplate(templateId); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplate copyTemplate( long templateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().copyTemplate(templateId, serviceContext); }
/** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); }
public static void revertTemplate(long templateId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { getService().revertTemplate(templateId, version, serviceContext); }
/** * 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.DDMTemplate getTemplate( long groupId, long classNameId, String templateKey) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTemplate(groupId, classNameId, templateKey); }
/** * 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.DDMTemplate fetchTemplate( long groupId, long classNameId, String templateKey) throws com.liferay.portal.kernel.exception.PortalException { return getService().fetchTemplate(groupId, classNameId, templateKey); }
/** * Returns the number of templates matching the group and structure class * name ID plus the number of generic templates matching the group. * * @param groupId the primary key of the group * @param structureClassNameId the primary key of the class name for the template's related structure (optionally <code>0</code>). Specify <code>0</code> to count generic templates only. * @return the number of matching templates plus the number of matching generic templates */ public static int getTemplatesByStructureClassNameIdCount(long groupId, long structureClassNameId, int status) { return getService() .getTemplatesByStructureClassNameIdCount(groupId, structureClassNameId, status); }
/** * 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 java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplatesByClassPK( long companyId, long groupId, long classPK, long resourceClassNameId, int status) { return getService() .getTemplatesByClassPK(companyId, groupId, 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 java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> getTemplates( long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, String type, int status) { return getService() .getTemplates(companyId, groupId, classNameId, classPK, resourceClassNameId, type, status); }
/** * Copies the template, creating a new template with all the values * extracted from the original one. This method supports defining a new name * and description. * * @param templateId the primary key of the template to be copied * @param nameMap the new template's locales and localized names * @param descriptionMap the new template's locales and localized descriptions * @param serviceContext the service context to be applied. Must have the <code>ddmResource</code> attribute to check permissions. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the template. * @return the new template */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate copyTemplate( long templateId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .copyTemplate(templateId, nameMap, descriptionMap, serviceContext); }
/** * Returns the number of templates matching the group, class name ID, class * PK, type, and mode, and matching the keywords in the template names and * descriptions. * * @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 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 template's resource model * @param keywords the keywords (space separated), which may occur in the template's name or description (optionally <code>null</code>) * @param type the template's type (optionally <code>null</code>). For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @param mode the template's mode (optionally <code>null</code>). For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @return the number of matching templates */ public static int searchCount(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, String keywords, String type, String mode, int status) { return getService() .searchCount(companyId, groupId, classNameId, classPK, resourceClassNameId, keywords, type, mode, status); }
/** * Returns the number of templates matching the group IDs, class name IDs, * class PK, type, and mode, and matching the keywords in the template names * and descriptions. * * @param companyId the primary key of the template's company * @param groupIds the primary keys of the groups * @param classNameIds the primary keys of the entity's instances the templates are related to * @param classPKs the primary keys of the template's related entities * @param resourceClassNameId the primary key of the class name for template's resource model * @param keywords the keywords (space separated), which may occur in the template's name or description (optionally <code>null</code>) * @param type the template's type (optionally <code>null</code>). For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @param mode the template's mode (optionally <code>null</code>). For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @return the number of matching templates */ public static int searchCount(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId, String keywords, String type, String mode, int status) { return getService() .searchCount(companyId, groupIds, classNameIds, classPKs, resourceClassNameId, keywords, type, mode, status); }
int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMTemplate> orderByComparator) { return getService() .getTemplatesByStructureClassNameId(groupId, structureClassNameId, status, start, end, orderByComparator);
/** * Copies all the templates matching the class name ID, class PK, and type. * This method creates new templates, extracting all the values from the old * ones and updating their class PKs. * * @param classNameId the primary key of the class name for template's related model * @param oldClassPK the primary key of the old template's related entity * @param resourceClassNameId the primary key of the class name for template's resource model * @param newClassPK the primary key of the new template's related entity * @param type the template's type. For more information, see DDMTemplateConstants in the dynamic-data-mapping-api module. * @param serviceContext the service context to be applied. Must have the <code>ddmResource</code> attribute to check permissions. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the template. * @return the new template */ public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> copyTemplates( long classNameId, long oldClassPK, long resourceClassNameId, long newClassPK, String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .copyTemplates(classNameId, oldClassPK, resourceClassNameId, newClassPK, type, serviceContext); }
/** * Returns the template matching the group and template key, optionally * searching ancestor sites (that have sharing enabled) and global scoped * sites. * * <p> * This method first searches in the group. If the template is still not * found and <code>includeAncestorTemplates</code> is set to * <code>true</code>, this method searches the group's ancestor sites (that * have sharing enabled) and lastly searches global scoped sites. * </p> * * @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 * @param includeAncestorTemplates whether to include ancestor sites (that have sharing enabled) and include global scoped sites in the search * @return the matching template */ public static com.liferay.dynamic.data.mapping.model.DDMTemplate getTemplate( long groupId, long classNameId, String templateKey, boolean includeAncestorTemplates) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getTemplate(groupId, classNameId, templateKey, includeAncestorTemplates); }