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 Object

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


Method Summary
static Attribute create(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 String findClassDescription(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds the class description
static String findPrimaryKey(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Fetches the key of the business class
static fr.paris.lutece.util.ReferenceList getAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a reference list of attribute list
static 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 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

findClassDescription

public static String findClassDescription(int nBusinessId,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds the class description

Parameters:
nBusinessId - The identifier of the business class
plugin - The plugin
Returns:
The class description

findPrimaryKey

public static String findPrimaryKey(int nBusinessId,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fetches the key of the business class

Parameters:
nBusinessId - The business class identifier
plugin - The plugin
Returns:
The primary key of the business class

create

public static Attribute create(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 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

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 © 2013 Mairie de Paris. All Rights Reserved.