fr.paris.lutece.plugins.mylutece.business.attribute
Class AttributeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.business.attribute.AttributeHome

public class AttributeHome
extends java.lang.Object

AttributeHome


Constructor Summary
AttributeHome()
           
 
Method Summary
static int create(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert an new attribute
static java.util.List<IAttribute> findAll(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes
static IAttribute findByPrimaryKey(int nIdAttribute, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load attribute
static java.util.List<IAttribute> findMyLuteceAttributes(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes that do not come from a plugin
static java.util.List<IAttribute> findPluginAttributes(java.lang.String strPluginName, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes associated to a plugin
static void remove(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an attribute
static void update(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeHome

public AttributeHome()
Method Detail

findByPrimaryKey

public static IAttribute findByPrimaryKey(int nIdAttribute,
                                          java.util.Locale locale,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute

Parameters:
nIdAttribute - ID Attribute
locale - Locale
Returns:
Attribute

create

public static int create(IAttribute attribute,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert an new attribute

Parameters:
attribute - attribute
Returns:
new PK

update

public static void update(IAttribute attribute,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute

Parameters:
attribute - the attribute

remove

public static void remove(int nIdAttribute,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an attribute

Parameters:
nIdAttribute - The id of the attribute

findAll

public static java.util.List<IAttribute> findAll(java.util.Locale locale,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes

Parameters:
locale - locale
Returns:
list of attributes

findPluginAttributes

public static java.util.List<IAttribute> findPluginAttributes(java.lang.String strPluginName,
                                                              java.util.Locale locale,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes associated to a plugin

Parameters:
strPluginName - plugin name
locale - locale
Returns:
list of attributes

findMyLuteceAttributes

public static java.util.List<IAttribute> findMyLuteceAttributes(java.util.Locale locale,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin

Parameters:
locale - locale
Returns:
list of attributes


Copyright © 2011 Mairie de Paris. All Rights Reserved.