/** * 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 */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate fetchTemplate( long templateId) { return _ddmTemplateLocalService.fetchTemplate(templateId); }
/** * 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 the 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 */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate fetchTemplate( long groupId, long classNameId, String templateKey) { return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId, templateKey); }
/** * 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 given 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 the 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 in the search * @return the matching template, or <code>null</code> if a matching template could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate fetchTemplate( long groupId, long classNameId, String templateKey, boolean includeAncestorTemplates) { return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId, templateKey, includeAncestorTemplates); }
/** * 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); }
@Override public DDMTemplate fetchTemplate( long groupId, long classNameId, String templateKey) { com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate = _ddmTemplateLocalService.fetchTemplate( groupId, classNameId, templateKey); if (ddmTemplate == null) { return null; } return new DDMTemplateImpl(ddmTemplate); }
/** * 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 the 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) { return getService().fetchTemplate(groupId, classNameId, templateKey); }
/** * 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 given 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 the 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 in the search * @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, boolean includeAncestorTemplates) { return getService() .fetchTemplate(groupId, classNameId, templateKey, includeAncestorTemplates); }
protected void verifyTemplateLink(DDMTemplateLink ddmTemplateLink) throws PortalException { DDMTemplate ddmTemplate = _ddmTemplateLocalService.fetchTemplate( ddmTemplateLink.getTemplateId()); if (ddmTemplate == null) { _ddmTemplateLinkLocalService.deleteTemplateLink( ddmTemplateLink.getTemplateId()); } }
/** * 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 */ @Override public DDMTemplate fetchTemplate( long groupId, long classNameId, String templateKey) throws PortalException { DDMTemplate ddmTemplate = ddmTemplateLocalService.fetchTemplate( groupId, classNameId, templateKey); if (ddmTemplate != null) { _ddmTemplateModelResourcePermission.check( getPermissionChecker(), ddmTemplate, ActionKeys.VIEW); } return ddmTemplate; }
template = _ddmTemplateLocalService.fetchTemplate( webDAVRequest.getGroupId(), classNameId, typeId);
DDMTemplate ddmTemplate = _ddmTemplateLocalService.fetchTemplate( _portal.getSiteGroupId(groupId), classNameId, ddmTemplateKey, true);
DDMTemplate ddmTemplate = _ddmTemplateLocalService.fetchTemplate( feed.getGroupId(), _portal.getClassNameId(DDMStructure.class), feed.getDDMTemplateKey()); _ddmTemplateLocalService.fetchTemplate( feed.getGroupId(), _portal.getClassNameId(DDMStructure.class), feed.getDDMRendererTemplateKey());