/** * Method getSiteName. * * @param id int * @return String * @see com.percussion.pso.restservice.support.IImportItemSystemInfo#getSiteName(int) */ public String getSiteName(int id) { initServices(); log.debug("Getting site name"); String siteName = String.valueOf(id); // if (siteNameMap.containsKey(id)) { // siteName=siteNameMap.get(id); // } else { // IPSSite site = null; try { site = sitemgr.loadSite(new PSGuid(PSTypeEnum.SITE, id)); siteName = site.getName(); siteNameMap.put(id, siteName); } catch (Exception e) { // TODO Auto-generated catch block log.error("Cannot load site", e); } // } return siteName; }
/** @return the siteName */ public String getSiteName() { return site.getName(); }