no.inspera.services.pedal.services
Class TaggingService

java.lang.Object
  extended by no.inspera.services.pedal.services.TaggingService

public class TaggingService
extends java.lang.Object

Service class for tagging learning objects. This class contains methods to tag an object and retrieve a set of tags related to a specific object or metadata.

Since:
23.02.2008
Version:
$Id: TaggingService.java 44417 2008-04-21 18:53:36Z naimdjon $
Author:
Naimdjon Takhirov

Constructor Summary
TaggingService()
           
 
Method Summary
static java.lang.Iterable<java.lang.Long> getObjects(java.lang.String label, long taggerId)
          Retrievs objects specified the label for the user.
static java.lang.Iterable<Tag> getTagsByTaggerId(long taggerId)
          Retrievs tags made by the specified user.
static void tagObject(Tag tag)
          Tags object with the specified label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggingService

public TaggingService()
Method Detail

tagObject

public static void tagObject(Tag tag)
Tags object with the specified label.

Parameters:
tag - the tag object

getTagsByTaggerId

public static java.lang.Iterable<Tag> getTagsByTaggerId(long taggerId)
Retrievs tags made by the specified user.

Parameters:
taggerId - the id of tagger.
Returns:
an iterable of Tag objects.

getObjects

public static java.lang.Iterable<java.lang.Long> getObjects(java.lang.String label,
                                                            long taggerId)
Retrievs objects specified the label for the user.

Parameters:
label - the label of tags
taggerId - the id of tagger
Returns:


Copyright © 2008 Naimdjon Takhirov (naimdjon@gmail.com). All Rights Reserved.