/** * {@inheritDoc} */ public List<String> getUserPublishedSiteIds(String userId){ List<String> siteIds = new ArrayList<String>(); /*all sites for current user*/ List<Site> tempL = siteService.getSites(SiteService.SelectionType.ACCESS, null, null, null, SiteService.SortType.TITLE_ASC, null); for (Iterator iter = tempL.iterator(); iter.hasNext();) { Site element = (Site) iter.next(); // exclude my workspace & admin related sites if (!siteService.isUserSite(element.getId()) && !siteService.isSpecialSite(element.getId())) { // if the tools is not available in the site then don't add it. Collection tools = element.getTools("sakai.signup"); if (tools == null || tools.isEmpty()) continue; if(element.isPublished()){ siteIds.add(element.getId()); } } } return siteIds; }
boolean toolPlacement = !site.getTools(co.myToolIds()).isEmpty(); co.contextDeleted(site.getId(), toolPlacement);
Collection<ToolConfiguration> toolConfs = toSite.getTools(TOOL_ID); if (toolConfs != null && !toolConfs.isEmpty()) { for (ToolConfiguration config: toolConfs) {
Collection<ToolConfiguration> toolConfs = toSite.getTools(TOOL_ID); if (toolConfs != null && !toolConfs.isEmpty()) { for (ToolConfiguration config: toolConfs) {
Collection tools = element.getTools("sakai.signup"); if (tools == null || tools.isEmpty()) continue;