fr.paris.lutece.plugins.mylutece.business.attribute
Interface IAttributeDAO

All Known Implementing Classes:
AttributeDAO

public interface IAttributeDAO

IAttributeDAO


Method Summary
 void delete(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an attribute
 int insert(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new attribute
 IAttribute load(int nIdAttribute, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load attribute
 java.util.List<IAttribute> selectAll(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes
 java.util.List<IAttribute> selectMyLuteceAttributes(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes that do not come from a plugin
 java.util.List<IAttribute> selectPluginAttributes(java.lang.String strPluginName, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load every attributes from plugin name
 void store(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an attribute
 

Method Detail

load

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

Parameters:
nIdAttribute - ID
locale - Locale
Returns:
Attribute

insert

int insert(IAttribute attribute,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new attribute

Parameters:
attribute - the attribute
Returns:
new PK

store

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

Parameters:
attribute - the attribute

delete

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

Parameters:
nIdAttribute - the ID of the attribute

selectAll

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

Parameters:
locale - locale
Returns:
list of attributes

selectPluginAttributes

java.util.List<IAttribute> selectPluginAttributes(java.lang.String strPluginName,
                                                  java.util.Locale locale,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes from plugin name

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

selectMyLuteceAttributes

java.util.List<IAttribute> selectMyLuteceAttributes(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.