fr.paris.lutece.plugins.pluginwizard.business.model
Class AttributeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.model.AttributeHome

public final class AttributeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Attribute objects


Method Summary
static Attribute create(int nPluginId, Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the attribute class
static Attribute findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a attribute whose identifier is specified in parameter
static java.lang.String findClassDescription(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static java.lang.String findPrimaryKey(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static fr.paris.lutece.util.ReferenceList getAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a reference list of attribute list
static java.util.List<Attribute> getAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the attribute objects and returns them in form of a list
static java.lang.String getAttributeTypeName(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a attribute whose identifier is specified in parameter
static void remove(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the attribute whose identifier is specified in parameter
static void removeAttributesByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static Attribute update(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the attribute which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeAttributesByPlugin

public static void removeAttributesByPlugin(int nIdPlugin,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)

findClassDescription

public static java.lang.String findClassDescription(int nBusinessId,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)

findPrimaryKey

public static java.lang.String findPrimaryKey(int nBusinessId,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)

create

public static Attribute create(int nPluginId,
                               Attribute attribute,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the attribute class

Parameters:
attribute - The instance of the Attribute which contains the informations to store
plugin - the Plugin
Returns:
The instance of attribute which has been created with its primary key.

update

public static Attribute update(Attribute attribute,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the attribute which is specified in parameter

Parameters:
attribute - The instance of the Attribute which contains the data to store
plugin - the Plugin
Returns:
The instance of the attribute which has been updated

remove

public static void remove(int nAttributeId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the attribute whose identifier is specified in parameter

Parameters:
nAttributeId - The attribute Id
plugin - the Plugin

findByPrimaryKey

public static Attribute findByPrimaryKey(int nKey,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a attribute whose identifier is specified in parameter

Parameters:
nKey - The attribute primary key
plugin - the Plugin
Returns:
an instance of Attribute

getAttributeTypeName

public static java.lang.String getAttributeTypeName(int nAttributeId,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a attribute whose identifier is specified in parameter

Parameters:
nAttributeId - The attribute primary key
plugin - the Plugin
Returns:
A representation of the type

getAttributesList

public static java.util.List<Attribute> getAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attribute objects and returns them in form of a list

Parameters:
plugin - the Plugin
Returns:
the list which contains the data of all the attribute objects

getAttributeListCombo

public static fr.paris.lutece.util.ReferenceList getAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a reference list of attribute list

Parameters:
plugin - The plugin
Returns:
The reference list


Copyright © 2009 Mairie de Paris. All Rights Reserved.