/** * 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) throws RemoteException { try { int returnValue = DDMTemplateServiceUtil.getTemplatesByStructureClassNameIdCount(groupId, structureClassNameId, status); return returnValue; } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }