Package org.corrib.s3b.sscf.tools.sscf2js

Examples of org.corrib.s3b.sscf.tools.sscf2js.SugDirectoryNode


        }
        //suggested directory
        else if(isDir&&isSuggested)
        {
          nc.setType("sugDirectory");
          SugDirectoryNode sdn = new SugDirectoryNode();
          sdn.setId(resource.getResource().toString());
          sdn.setLevel(level);
          sdn.setLabel(resource.getLabel());
          sdn.setOwnerMbox((issuer != null) ? (issuer.getId()) : "");
          sdn.setOwnerName((issuer != null) ? (issuer.getName()) : "");
         
          sdn.setOpened(onPath);
         
          //check if user select this directory - we can get id or whole uri.
          if(isSelected)
          {
            sdn.setSelected(true);
            sdn.setOpened(false);
          }
          else sdn.setSelected(false);
         
          sdn.setStandalone(standalone);
          nc.setContent(sdn);
        }
        //bookmark
        else
        {
View Full Code Here


        //create the virtual node - "additional suggested directory"
        if(it2!=null&&it2.hasNext()&&afterTheOwner)
        {
          NodeContainer nc = new NodeContainer();
          nc.setType("addDirectory");
          SugDirectoryNode sdn = new SugDirectoryNode();
          sdn.setId(resource.getResource().toString());
          sdn.setLevel(++level);
          sdn.setStandalone(standalone);
          nc.setContent(sdn);
          nc.toJSON(buffer);
        }
        this.bookmarksTree(it2, buffer, viewer, depth, session, level, parentIsOwner, standalone,true,inOwn,serviceAddr,selectedUri,pathsToUri);
       
View Full Code Here

TOP

Related Classes of org.corrib.s3b.sscf.tools.sscf2js.SugDirectoryNode

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.