/** * 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 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 */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate getTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.getTemplate(templateId); }
com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.addTemplate(userId, groupId, classNameId, classPK, resourceClassNameId, nameMap, descriptionMap, type, mode, language, script, serviceContext);
@Override public void updatedPermission(String primKey) { DDMTemplate ddmTemplate = _ddmTemplateLocalService.fetchDDMTemplate( GetterUtil.getLong(primKey)); if (ddmTemplate == null) { return; } ddmTemplate.setModifiedDate(new Date()); _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate); }
/** * Deletes the template and its resources. * * @param templateId the primary key of the template to be deleted * @throws PortalException if a portal exception occurred */ @Override public void deleteTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplate(templateId); }
_ddmTemplateLocalService.fetchDDMTemplate( GetterUtil.getLong(typeId)); template = _ddmTemplateLocalService.fetchTemplate( webDAVRequest.getGroupId(), classNameId, typeId);
/** * 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 */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate getDDMTemplate( long templateId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.getDDMTemplate(templateId); }
@Override public com.liferay.dynamic.data.mapping.model.DDMTemplate copyTemplate( long userId, long templateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.copyTemplate(userId, templateId, serviceContext); }
/** * @throws PortalException */ @Override public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException { return ddmTemplateLocalService.deleteDDMTemplate((DDMTemplate)persistedModel); }
@Override public void deleteTemplates(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplates(groupId, classNameId); }
/** * 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 userId the primary key of the template's creator/owner * @param classNameId the primary key of the class name for the template's related model * @param oldClassPK the primary key of the old template's related entity * @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. Can set the creation date, modification date, guest permissions, and group permissions for the new templates. * @return the new templates * @throws PortalException if a portal exception occurred */ @Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> copyTemplates( long userId, long classNameId, long oldClassPK, long newClassPK, String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.copyTemplates(userId, classNameId, oldClassPK, newClassPK, type, serviceContext); }
@Override public com.liferay.dynamic.data.mapping.model.DDMTemplate fetchDDMTemplate( long templateId) { return _ddmTemplateLocalService.fetchDDMTemplate(templateId); }
/** * Deletes the template and its resources. * * @param template the template to be deleted * @throws PortalException if a portal exception occurred */ @Override public void deleteTemplate( com.liferay.dynamic.data.mapping.model.DDMTemplate template) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplate(template); }
/** * 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); }
/** * 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 userId the primary key of the template's creator/owner * @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. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the template. * @return the new template * @throws PortalException if a portal exception occurred */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate copyTemplate( long userId, 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 _ddmTemplateLocalService.copyTemplate(userId, templateId, nameMap, descriptionMap, serviceContext); }
/** * 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 */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate deleteDDMTemplate( com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) { return _ddmTemplateLocalService.deleteDDMTemplate(ddmTemplate); }
/** * Deletes all the templates of the group. * * @param groupId the primary key of the group * @throws PortalException if a portal exception occurred */ @Override public void deleteTemplates(long groupId) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplates(groupId); }
/** * 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 userId the primary key of the template's creator/owner * @param classNameId the primary key of the class name for the template's related model * @param oldClassPK the primary key of the old template's related entity * @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. Can set the creation date, modification date, guest permissions, and group permissions for the new templates. * @return the new templates * @throws PortalException if a portal exception occurred */ public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> copyTemplates( long userId, long classNameId, long oldClassPK, long newClassPK, String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .copyTemplates(userId, classNameId, oldClassPK, newClassPK, type, serviceContext); }
public static com.liferay.dynamic.data.mapping.model.DDMTemplate fetchDDMTemplate( long templateId) { return getService().fetchDDMTemplate(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 * @throws PortalException if a portal exception occurred */ @Override public com.liferay.dynamic.data.mapping.model.DDMTemplate getTemplate( long groupId, long classNameId, String templateKey) throws com.liferay.portal.kernel.exception.PortalException { return _ddmTemplateLocalService.getTemplate(groupId, classNameId, templateKey); }