org.nuiton.wikitty.addons
Class WikittyLabelUtil

java.lang.Object
  extended by org.nuiton.wikitty.addons.WikittyLabelUtil

public class WikittyLabelUtil
extends Object

Util method to manage Label (add and find)

Version:
$Revision: 1136 $ Last update: $Date: 2011-08-12 16:24:03 +0200 (Fri, 12 Aug 2011) $ by : $Author: tchemit $
Author:
poussin

Constructor Summary
WikittyLabelUtil()
           
 
Method Summary
static void addLabel(BusinessEntityImpl entity, String label)
          Add label on this entity.
static void addLabel(WikittyProxy proxy, String wikittyId, String label)
          Add new lable to the wikitty object.
static void addLabel(Wikitty wikitty, String label)
          Add label on this wikitty.
static Set<String> findAllAppliedLabels(WikittyProxy proxy, String wikittyId)
          Retrieve all labels applied on a wikitty object.
static PagedResult<Wikitty> findAllByLabel(WikittyProxy proxy, String label, int firstIndex, int endIndex)
          Recherche tous les objets qui ont ce label
static Wikitty findByLabel(WikittyProxy proxy, String label)
          Recherche le premier objet qui a ce label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikittyLabelUtil

public WikittyLabelUtil()
Method Detail

addLabel

public static void addLabel(Wikitty wikitty,
                            String label)
Add label on this wikitty. You must store your wikitty after

Parameters:
wikitty -
label -

addLabel

public static void addLabel(BusinessEntityImpl entity,
                            String label)
Add label on this entity. You must store your entiry after

Parameters:
entity -
label -

addLabel

public static void addLabel(WikittyProxy proxy,
                            String wikittyId,
                            String label)
Add new lable to the wikitty object. You must only used this method, if you don't have the Wikitty Object because this method restore and save version in WikittyService. If you have Wikitty present in your space, your wikitty become obsolete and you lose your change :( If you have wikitty or business entity you must used #

Parameters:
proxy -
wikittyId - object'id
label - label to add

findAllByLabel

public static PagedResult<Wikitty> findAllByLabel(WikittyProxy proxy,
                                                  String label,
                                                  int firstIndex,
                                                  int endIndex)
Recherche tous les objets qui ont ce label

Parameters:
proxy -
label -
firstIndex -
endIndex -
Returns:

findByLabel

public static Wikitty findByLabel(WikittyProxy proxy,
                                  String label)
Recherche le premier objet qui a ce label

Parameters:
proxy -
label -
Returns:

findAllAppliedLabels

public static Set<String> findAllAppliedLabels(WikittyProxy proxy,
                                               String wikittyId)
Retrieve all labels applied on a wikitty object.

Parameters:
proxy -
wikittyId -
Returns:
set of label


Copyright © 2009-2011 CodeLutin. All Rights Reserved.