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

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


          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()))
          srd.setName(sfr.getName());
        if(sfr.getTitle()!=null&&!"".equals(sfr.getTitle()))
          srd.setName(sfr.getTitle());
        //srd.setDescription();
        if(sfr.getLink()!=null)
          srd.setLink(sfr.getLink());
        srd.setSeeAlso(sfr.getSeeAlso());
      }
      if(type.equals("post"))
      {
        SiocPostResource spr = SiocPostResource.getInstance(uri);
       
View Full Code Here


          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());
          bookmarksTreeSiocData(forum, viewer, buffer, depth, session, null, initialLevel, true,standalone,true,selectedUri,null);
        }
        if(type.equals(SIOC.Post))
        {
          SiocPostResource post = SiocPostResource.getInstance(resource.getStringURI());
View Full Code Here

      bn.setOwn(parentIsOwner)
      bn.setStandalone(standalone);
      nc.setContent(bn);
    }
    else if (resource instanceof SiocForumResource) {
      SiocForumResource sfr = SiocForumResource.getInstance(resource.getStringURI());
     
      hasContent = sfr.hasContent();
   
      nc.setType("siocForum");
     
      DirectoryNode dn = new DirectoryNode();
      dn.setId(sfr.getStringURI());
      dn.setLevel(level);
     
      if(sfr.getName()!=null&&!"".equals(sfr.getName()))
        dn.setLabel("Forum: "+sfr.getName());
      else if(sfr.getTitle()!=null&&!"".equals(sfr.getTitle()))
        dn.setLabel("Forum: "+sfr.getTitle());
      else dn.setLabel("Forum: "+sfr.getStringURI());
      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

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

TOP

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

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.