Package org.gatein.api.site

Examples of org.gatein.api.site.SiteQuery$Builder


        Map<String, NodeBean> navNodes = new HashMap<String, NodeBean>();

        PortalRequest portalRequest = PortalRequest.getInstance();

        SiteQuery.Builder siteQueryBulder = new SiteQuery.Builder();
        SiteQuery siteQuery = siteQueryBulder.withSiteTypes(SiteType.SPACE).includeEmptySites(false).build();
        List<Site> groupSites = PortalRequest.getInstance().getPortal().findSites(siteQuery);

        for (Site site : groupSites) {
            // check permissions and handle the special 'guest' site
            if (portalRequest.getPortal().hasPermission(portalRequest.getUser(), site.getAccessPermission())
View Full Code Here


     * Fetches the full list of sites using GateIn API.
     *
     * @return
     */
    public List<Site> getSites() {
        SiteQuery sq = new SiteQuery.Builder().withSiteTypes(SiteType.SITE).build();
        List<Site> s = PortalRequest.getInstance().getPortal().findSites(sq);
        return s;
    }
View Full Code Here

     * Fetches the full list of spaces using GateIn API.
     *
     * @return
     */
    public List<Site> getSpaces() {
        SiteQuery sq = new SiteQuery.Builder().withSiteTypes(SiteType.SPACE).build();
        List<Site> s = PortalRequest.getInstance().getPortal().findSites(sq);
        return s;
    }
View Full Code Here

TOP

Related Classes of org.gatein.api.site.SiteQuery$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.