|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.model.AttributeHome
public final class AttributeHome
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)
Finds the class description |
static java.lang.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 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)
Removes all the attibutes of the specified 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 |
---|
public static void removeAttributesByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdPlugin
- The id of the pluginplugin
- The pluginpublic static java.lang.String findClassDescription(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nBusinessId
- The identifier of the business classplugin
- The plugin
public static java.lang.String findPrimaryKey(int nBusinessId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nBusinessId
- The business class identifierplugin
- The plugin
public static Attribute create(int nPluginId, Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId
- The identifier of the pluginattribute
- The instance of the Attribute which contains the informations to storeplugin
- the Plugin
public static Attribute update(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
attribute
- The instance of the Attribute which contains the data to storeplugin
- the Plugin
public static void remove(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAttributeId
- The attribute Idplugin
- the Pluginpublic static Attribute findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The attribute primary keyplugin
- the Plugin
public static java.lang.String getAttributeTypeName(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAttributeId
- The attribute primary keyplugin
- the Plugin
public static java.util.List<Attribute> getAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the Plugin
public static fr.paris.lutece.util.ReferenceList getAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |