Package org.corrib.s3b.sscf.manage.sioc

Examples of org.corrib.s3b.sscf.manage.sioc.SiocSiteResource


    if(type!=null&&!"".equals(type))
    {
      SiocResourceDescription srd = new SiocResourceDescription();
      if(type.equals("site"))
      {
        SiocSiteResource ssr = SiocSiteResource.getInstance(uri);
       
        srd.setName(ssr.getTitle());
        srd.setDescription(ssr.getDescription());
        if(ssr.getLink()!=null&&!"".equals(ssr.getLink()))
          srd.setLink(ssr.getLink());
        else srd.setLink(ssr.getStringURI());
      }
      if(type.equals("forum"))
      {
        SiocForumResource sfr = SiocForumResource.getInstance(uri);
        if(sfr.getName()!=null&&!"".equals(sfr.getName()))
View Full Code Here


                contentDirs.add(xfoafres);
              }
            }
            if(type.toString().equals(SIOC.Site))
            {
              SiocSiteResource siocSite = SiocSiteResource.getInstance(res);
              if(siocSite != null)
                contentDirs.add(siocSite);
            }
            if(type.toString().equals(SIOC.Forum))
            {
View Full Code Here

      //need to get a type.
      if(type!=null)
      {
        if(type.equals(SIOC.Site))
        {
          SiocSiteResource site = SiocSiteResource.getInstance(resource.getStringURI());
          bookmarksTreeSiocData(site, viewer, buffer, depth, session, null, initialLevel, true,standalone,true,selectedUri,null);
        }
        if(type.equals(SIOC.Forum))
        {
          SiocForumResource forum = SiocForumResource.getInstance(resource.getStringURI());
View Full Code Here

      dn.setStandalone(standalone);
      nc.setContent(dn);

    }
    else if (resource instanceof SiocSiteResource) {
      SiocSiteResource ssr = SiocSiteResource.getInstance(resource.getStringURI());
     
      hasContent = ssr.hasContent();

      nc.setType("siocSite");
   
      DirectoryNode dn = new DirectoryNode();
      dn.setId(resource.getResource().toString());
      dn.setLevel(level);
      dn.setLabel("Site: "+ssr.getTitle());
      dn.setOwn(isOwner);
      //TODO - get owner from this tags
      //dn.setOwnerMbox((owner != null) ? (owner.getMbox().toString()) : "");
      //dn.setOwnerName((owner != null) ? (owner.getName()) : "");
      dn.setOwnerMbox("");
View Full Code Here

TOP

Related Classes of org.corrib.s3b.sscf.manage.sioc.SiocSiteResource

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.