Package org.gatein.mop.api.workspace.link

Examples of org.gatein.mop.api.workspace.link.PageLink


         Attributes attrs = src.getAttributes();
         String pageReference = null;
         Link link = src.getLink();
         if (link instanceof PageLink)
         {
            PageLink pageLink = (PageLink)link;
            org.gatein.mop.api.workspace.Page target = pageLink.getPage();
            if (target != null)
            {
               Site site = target.getSite();
               ObjectType<? extends Site> siteType = site.getObjectType();
               pageReference = getOwnerType(siteType) + "::" + site.getName() + "::" + target.getName();
View Full Code Here


         {
            String[] pageChunks = split("::", reference);
            ObjectType<? extends Site> siteType = parseSiteType(pageChunks[0]);
            Site site = workspace.getSite(siteType, pageChunks[1]);
            org.gatein.mop.api.workspace.Page target = site.getRootPage().getChild("pages").getChild(pageChunks[2]);
            PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
            link.setPage(target);
         }
         else
         {
            PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
            link.setPage(null);
         }

         //
         Described described = dst.adapt(Described.class);
         described.setName(node.getLabel());
View Full Code Here

TOP

Related Classes of org.gatein.mop.api.workspace.link.PageLink

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.