Examples of SiteType


Examples of org.exoplatform.portal.mop.SiteType

            // Rule #2: Send a warning if navigation.xml <page-reference> doesn't match with siteKey type
            List<String> refPages = new ArrayList<String>();
            if (mopImport.navigationTask != null) {
                PageNavigation pageNavigation = mopImport.navigationTask.getData();
                SiteType siteType = siteKey.getType();
                for (NavigationFragment fragment : pageNavigation.getFragments()) {
                    validateNodeType(siteType, fragment.getNodes(), refPages);
                }
            }
View Full Code Here

Examples of org.exoplatform.portal.mop.SiteType

    protected SiteKey getOriginSiteKey(ControllerContext context) {
        String originSiteName = context.getParameter(PortalRequestHandler.REQUEST_SITE_NAME);
        String originSiteTypeString = context.getParameter(PortalRequestHandler.REQUEST_SITE_TYPE);

        SiteType originSiteType;
        if (originSiteTypeString.equals(SiteType.GROUP.getName())) {
            originSiteType = SiteType.GROUP;
        } else if (originSiteTypeString.equals(SiteType.USER.getName())) {
            originSiteType = SiteType.USER;
        } else {
View Full Code Here

Examples of org.gatein.api.site.SiteType

        ModelObject pageModel = get(nodeModel, ModelObject.class, "page");
        if (pageModel.isDefined()) {
            String pageName = nonNullString(nodeModel, "page", "pageName");
            String siteName = nonNullString(nodeModel, "page", "siteName");
            String siteTypeString = nonNullString(nodeModel, "page", "siteType");
            SiteType siteType = SiteType.forName(siteTypeString);
            if (siteType == null) {
                throw invalidValue(siteTypeString, "page", "siteType");
            }
            return new PageId(new SiteId(siteType, siteName), pageName);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.