fr.paris.lutece.plugins.genericattributes.util
Class GenericAttributesUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.genericattributes.util.GenericAttributesUtils

public class GenericAttributesUtils
extends Object

Utility class of plugin generic attributes


Field Summary
static String CONSTANT_EQUAL
           
static int CONSTANT_ID_NULL
           
static String CONSTANT_RESPONSE_VALUE_ANONYMIZED
           
 
Constructor Summary
GenericAttributesUtils()
           
 
Method Summary
static int convertStringToInt(String strParameter)
          Convert a string to int
static Field findFieldByIdInTheList(int nIdField, List<Field> listField)
          return the field which key is specified in parameter
static Field findFieldByTitleInTheList(String strTitle, List<Field> listFields)
          Return the field which title is specified in parameter
static fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
          Gets the generic attributes plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTANT_EQUAL

public static final String CONSTANT_EQUAL
See Also:
Constant Field Values

CONSTANT_ID_NULL

public static final int CONSTANT_ID_NULL
See Also:
Constant Field Values

CONSTANT_RESPONSE_VALUE_ANONYMIZED

public static final String CONSTANT_RESPONSE_VALUE_ANONYMIZED
See Also:
Constant Field Values
Constructor Detail

GenericAttributesUtils

public GenericAttributesUtils()
Method Detail

findFieldByTitleInTheList

public static Field findFieldByTitleInTheList(String strTitle,
                                              List<Field> listFields)
Return the field which title is specified in parameter

Parameters:
strTitle - the title
listFields - the list of fields
Returns:
the field which title is specified in parameter

findFieldByIdInTheList

public static Field findFieldByIdInTheList(int nIdField,
                                           List<Field> listField)
return the field which key is specified in parameter

Parameters:
nIdField - the id of the field who is search
listField - the list of field
Returns:
the field which key is specified in parameter

getPlugin

public static fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Gets the generic attributes plugin

Returns:
the plugin

convertStringToInt

public static int convertStringToInt(String strParameter)
Convert a string to int

Parameters:
strParameter - the string parameter to convert
Returns:
the conversion


Copyright © 2014 Mairie de Paris. All Rights Reserved.