/** * 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 com.liferay.dynamic.data.mapping.model.DDMTemplateSoap[] getTemplatesByClassPK( long companyId, long groupId, long classPK, long resourceClassNameId, int status) throws RemoteException { try { java.util.List<com.liferay.dynamic.data.mapping.model.DDMTemplate> returnValue = DDMTemplateServiceUtil.getTemplatesByClassPK(companyId, groupId, classPK, resourceClassNameId, status); return com.liferay.dynamic.data.mapping.model.DDMTemplateSoap.toSoapModels(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }