Examples of TaggingDbLogic


Examples of org.corrib.jonto.tagging.db.logic.TaggingDbLogic

  public static List<String> listTags(String _uri) {
    List<String> result = new ArrayList<String>();
    try {
      //result = Document.get(_uri, Repository.JOINED_REPOSITORY).getTags();
      //USE new Jonto-tagging
      TaggingDbLogic tdbl = new TaggingDbLogic();
      List<Tagging> tagList = tdbl.getTaggingsForDocument(new URIImpl(_uri));
     
      for(Tagging tagging:tagList)
      {
        for(Term term:tagging.getTerms())
          result.add(term.getTag());
View Full Code Here

Examples of org.corrib.jonto.tagging.db.logic.TaggingDbLogic

    try {
      //TODO: use new tagging lib
      //result = Tagger.get(_uri, Repository.JOINED_REPOSITORY).getTags();
     
      TaggingDbLogic tdbl = new TaggingDbLogic();
      List<Tagging> tagList = tdbl.getTaggingsForTagger(new URIImpl(_uri));
     
      for(Tagging tagging:tagList)
      {
        for(Term term:tagging.getTerms())
          result.add(term.getTag());
View Full Code Here

Examples of org.corrib.jonto.tagging.db.logic.TaggingDbLogic

          if (tags != null) {
         
            Tagging tagging = new Tagging(wbr.getURI(),viewer.getURI());
            List<Term> terms = tagging.addTerms(tags);
           
            TaggingDbLogic tdbl = new TaggingDbLogic();
            tdbl.addTagging(tagging, serviceAddr);
           
            List<String> atags = new ArrayList<String>();
            for(Term term:terms)
              atags.add(term.getTag());
            wbr.setTags(atags);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.