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: 1345 $ Last update: $Date: 2012-01-20 11:25:17 +0100 (Fri, 20 Jan 2012) $ by : $Author: echatellier $
Author:
poussin

Constructor Summary
WikittyLabelUtil()
           
 
Method Summary
static void addLabel(BusinessEntityImpl entity, String label)
          Add label on this entity.
static void addLabel(WikittyClient client, String wikittyId, String label)
          Add new lable to the wikitty object.
static void addLabel(WikittyProxy proxy, String wikittyId, String label)
          Deprecated. since 3.4 use addLabel(org.nuiton.wikitty.WikittyClient, java.lang.String, java.lang.String)
static void addLabel(Wikitty wikitty, String label)
          Add label on this wikitty.
static Set<String> findAllAppliedLabels(WikittyClient proxy, String wikittyId)
          Retrieve all labels applied on a wikitty object.
static Set<String> findAllAppliedLabels(WikittyProxy proxy, String wikittyId)
          Deprecated. since 3.4 use findAllAppliedLabels(org.nuiton.wikitty.WikittyClient, java.lang.String)
static WikittyQueryResult<Wikitty> findAllByLabel(WikittyClient client, String label, int firstIndex, int limit)
          Recherche tous les objets qui ont ce label
static PagedResult<Wikitty> findAllByLabel(WikittyProxy proxy, String label, int firstIndex, int endIndex)
          Deprecated. since 3.4 use findAllByLabel(org.nuiton.wikitty.WikittyClient, java.lang.String, int, int)
static Wikitty findByLabel(WikittyClient proxy, String label)
          Recherche le premier objet qui a ce label
static Wikitty findByLabel(WikittyProxy proxy, String label)
          Deprecated. since 3.4 use findByLabel(org.nuiton.wikitty.WikittyClient, java.lang.String)
 
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

@Deprecated
public static void addLabel(WikittyProxy proxy,
                                       String wikittyId,
                                       String label)
Deprecated. since 3.4 use addLabel(org.nuiton.wikitty.WikittyClient, java.lang.String, java.lang.String)

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

addLabel

public static void addLabel(WikittyClient client,
                            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:
client -
wikittyId - object'id
label - label to add

findAllByLabel

@Deprecated
public static PagedResult<Wikitty> findAllByLabel(WikittyProxy proxy,
                                                             String label,
                                                             int firstIndex,
                                                             int endIndex)
Deprecated. since 3.4 use findAllByLabel(org.nuiton.wikitty.WikittyClient, java.lang.String, int, int)

Recherche tous les objets qui ont ce label

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

findAllByLabel

public static WikittyQueryResult<Wikitty> findAllByLabel(WikittyClient client,
                                                         String label,
                                                         int firstIndex,
                                                         int limit)
Recherche tous les objets qui ont ce label

Parameters:
client -
label -
first -
limit -
Returns:

findByLabel

@Deprecated
public static Wikitty findByLabel(WikittyProxy proxy,
                                             String label)
Deprecated. since 3.4 use findByLabel(org.nuiton.wikitty.WikittyClient, java.lang.String)

Recherche le premier objet qui a ce label

Parameters:
proxy -
label -
Returns:

findByLabel

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

Parameters:
proxy -
label -
Returns:

findAllAppliedLabels

@Deprecated
public static Set<String> findAllAppliedLabels(WikittyProxy proxy,
                                                          String wikittyId)
Deprecated. since 3.4 use findAllAppliedLabels(org.nuiton.wikitty.WikittyClient, java.lang.String)

Retrieve all labels applied on a wikitty object.

Parameters:
proxy -
wikittyId -
Returns:
set of label

findAllAppliedLabels

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

Parameters:
client -
wikittyId -
Returns:
set of label


Copyright © 2009-2012 CodeLutin. All Rights Reserved.