/** * {@inheritDoc} */ @Override public boolean isUserMyWorkspace(final String siteId) { return this.siteService.isUserSite(siteId); }
public boolean isUserSite(String siteId) { return siteService.isUserSite(siteId); }
public static boolean isUserSite(java.lang.String param0) { org.sakaiproject.site.api.SiteService service = getInstance(); if (service == null) return false; return service.isUserSite(param0); }
public static boolean isUserSite(java.lang.String param0) { org.sakaiproject.site.api.SiteService service = getInstance(); if (service == null) return false; return service.isUserSite(param0); }
/** * {@inheritDoc} */ public String getSiteCollection(String siteId) { String rv = null; if (m_siteService.isUserSite(siteId)) { rv = COLLECTION_USER + m_siteService.getSiteUserId(siteId) + "/"; } else if (!m_siteService.isSpecialSite(siteId)) { rv = COLLECTION_SITE + siteId + "/"; } else { // ??? rv = "/"; } return rv; }
/** * Determine whether the default dropbox collection id for this user in some site is the site's entire dropbox collection or just the current user's collection within the site's dropbox. * * @return True if user sees all dropboxes in the site, false otherwise. */ public boolean isDropboxMaintainer(String siteId) { // make sure we are in a worksite, not a workspace if (m_siteService.isUserSite(siteId) || m_siteService.isSpecialSite(siteId)) { return false; } // if the user has dropbox maintain in the site, they are the dropbox maintainer // (dropbox maintain in their myWorkspace just gives them access to their own dropbox) return m_securityService.unlock(AUTH_DROPBOX_MAINTAIN, m_siteService.siteReference(siteId)); }
if (siteService.isUserSite(siteId)) { user++; continue;
/** * Determine whether the user has the dropbox.groups permission * * @return True if user has dropbox.groups permission, false otherwise. */ public boolean isDropboxGroups(String siteId) { String dropboxId = null; // make sure we are in a worksite, not a workspace if (m_siteService.isUserSite(siteId) || m_siteService.isSpecialSite(siteId)) { return false; } // if the user has dropbox maintain in the site, they are the dropbox maintainer // (dropbox maintain in their myWorkspace just gives them access to their own dropbox) return m_securityService.unlock(AUTH_DROPBOX_GROUPS, m_siteService.siteReference(siteId)); }
/** * {@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; }
if (siteService.isUserSite(siteId)) { user++; continue;
/** * Access the default dropbox collection display name for the site. If the current user has permission to modify the site's dropbox collection, this is returned. Otherwise, the current user's collection within the site's dropbox is returned. * * @param siteId * the Site id. * @return The default dropbox collection display name for the site. */ public String getDropboxDisplayName(String siteId) { // make sure we are in a worksite, not a workspace if (m_siteService.isUserSite(siteId) || m_siteService.isSpecialSite(siteId)) { return null; } // form the site's dropbox collection String id = COLLECTION_DROPBOX + siteId + "/"; // for maintainers, use the site level dropbox if (isDropboxMaintainer(siteId)) { // return the site's dropbox collection return siteId + DROPBOX_ID; } // return the current user's sort name return getDisplayName(null); }
if (siteService.isUserSite(siteId)) { user++; if (skipUserSites) {
if (siteService.isUserSite(siteId)) { user++; if (skipUserSites) {
/** * Check if a site is considered as indexable based on the current server configuration. * <p> * Not indexable sites are: * <ul> * <li>Special sites</li> * <li>Sites without the search tool (if the option is enabled)</li> * <li>User sites (if the option is enabled)</li> * <li>Any sites included in the ignoreSitesList (~admin and !admin are the default ignored sites)</li> * </ul> * </p> * * @param site site which may be indexable * @return true if the site can be index, false otherwise */ protected boolean isSiteIndexable(Site site) { getLog().debug("Check if '" + site + "' is indexable."); return !(siteService.isSpecialSite(site.getId()) || (isOnlyIndexSearchToolSites() && site.getToolForCommonId(SEARCH_TOOL_ID) == null) || (isExcludeUserSites() && siteService.isUserSite(site.getId())) || (ignoredSitesList.contains(site.getId()))); }
/** * @inheritDoc */ public String getDropboxCollection(String siteId) { String rv = null; // make sure we are in a worksite, not a workspace if (m_siteService.isUserSite(siteId) || m_siteService.isSpecialSite(siteId)) { return rv; } // form the site's dropbox collection rv = COLLECTION_DROPBOX + siteId + "/"; // for maintainers or users with groups access, use the site level if ((isDropboxMaintainer(siteId))||(isDropboxGroups(siteId))) { // return the site's dropbox collection return rv; } // Anonymous users do not get drop boxes String userId = sessionManager.getCurrentSessionUserId(); if ( userId == null ) return rv; // form the current user's dropbox collection within this site's rv += StringUtil.trimToZero(userId) + "/"; return rv; }
if ((SiteService.APPLICATION_ID.equals(ref.getType())) && SiteService.SITE_SUBTYPE.equals(ref.getSubType()) && !siteService.isSpecialSite(ref.getId()) && (!siteService.isUserSite(ref.getId()) || userId.equals(siteService.getSiteUserId(ref.getId())))) if ((SiteService.APPLICATION_ID.equals(ref.getType())) && SiteService.SITE_SUBTYPE.equals(ref.getSubType()) && !siteService.isSpecialSite(ref.getId()) && (!siteService.isUserSite(ref.getId()) || userId.equals(siteService.getSiteUserId(ref.getId())))) if ((SiteService.APPLICATION_ID.equals(ref.getType())) && SiteService.SITE_SUBTYPE.equals(ref.getSubType()) && !siteService.isSpecialSite(ref.getId()) && (!siteService.isUserSite(ref.getId()) || userId.equals(siteService.getSiteUserId(ref.getId()))))
Site element = (Site) iter.next(); if (!siteService.isUserSite(element.getId()) && !siteService.isSpecialSite(element.getId())) {
if (m_siteService.isUserSite(siteId) || m_siteService.isSpecialSite(siteId))
if(siteId == null || M_ss.isUserSite(siteId) || M_ss.isSpecialSite(siteId)){ return;