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

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


          srd.setLink(sfr.getLink());
        srd.setSeeAlso(sfr.getSeeAlso());
      }
      if(type.equals("post"))
      {
        SiocPostResource spr = SiocPostResource.getInstance(uri);
       
        srd.setName(spr.getTitle());
        if(spr.getLink()!=null)
          srd.setLink(spr.getLink());
        srd.setSeeAlso(spr.getStringURI());
       
        srd.setCreatedWhen(spr.getCreatedWhen());
       
        if(spr.getTopics().size()>0)
          srd.setTopics(spr.getTopics());
        if(spr.getLinksTo().size()>0)
          srd.setLinksTo(spr.getLinksTo());
         
      }
     
      return srd.toJSON();
    }
View Full Code Here


          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());
          bookmarksTreeSiocData(post, viewer, buffer, depth, session, null, initialLevel, true,standalone,true,selectedUri,null);
       
        if(type.equals(S3B_SSCF.WebResource))
        {
          WebBookmarkResource wbr = WebBookmarkResource.getWebBookmarkResource(resource.getStringURI());
View Full Code Here

   
    //set dynamic load
    //nc.setDyn(false);
   
    if (resource instanceof SiocPostResource) {
      SiocPostResource spr = SiocPostResource.getInstance(resource.getStringURI());
     
      owner = spr.getMaker();
      isOwner = viewer.equals(owner);
     
      nc.setType("siocPost");
   
      BookmarkNode bn = new BookmarkNode();
      bn.setId(spr.getStringURI());
     
      if(spr.getTitle()!=null&&!"".equals(spr.getTitle().trim()))
        bn.setLabel("Post:"+spr.getTitle());
      else
        bn.setLabel("Post:"+spr.getStringURI());
       
      //check if this bookmark is selected this directory        
      if(resource.getStringURI().equals(selectedUri))
      {
        bn.setSelected(true);
View Full Code Here

              if(siocForum != null)
                contentDirs.add(siocForum);
            }
            if(type.toString().equals(SIOC.Post))
            {
              SiocPostResource siocPost = SiocPostResource.getInstance(res);
              if(siocPost != null)
                content.add(siocPost);
            }
            if(type.toString().equals(S3B_SSCF.WebResource)||type.toString().equals(S3B_SSCF.HexResource))
            {
View Full Code Here

TOP

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

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.