fr.paris.lutece.plugins.wrapper.business
Class WrapperHome

java.lang.Object
  extended by fr.paris.lutece.plugins.wrapper.business.WrapperHome

public class WrapperHome
extends java.lang.Object

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

Author:
lenaini

Method Summary
static Wrapper create(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of wrapper
static java.util.Collection<Wrapper> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of wrappers objects
static Wrapper findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a wrapper whose identifier is specified in parameter
static Wrapper findEnabledWrapper(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns wrapper object with valid status
static java.util.Collection<Wrapper> findEnabledWrapperList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of wrappers objects with valid status
static void remove(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the Htmlpage whose identifier is specified in parameter
static Wrapper update(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the wrapper 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

create

public static Wrapper create(Wrapper wrapper,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of wrapper

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

update

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

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

remove

public static void remove(Wrapper wrapper,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Htmlpage whose identifier is specified in parameter

Parameters:
wrapper - The Htmlpage object to remove
plugin - The Plugin object

findByPrimaryKey

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

Parameters:
nKey - The Primary key of the wrapper
plugin - The Plugin object
Returns:
An instance of wrapper

findAll

public static java.util.Collection<Wrapper> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of wrappers objects

Parameters:
plugin - The Plugin object
Returns:
A collection of wrappers

findEnabledWrapper

public static Wrapper findEnabledWrapper(int nKey,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns wrapper object with valid status

Parameters:
nKey - the page id
plugin - The Plugin object
Returns:
A wrapper

findEnabledWrapperList

public static java.util.Collection<Wrapper> findEnabledWrapperList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of wrappers objects with valid status

Parameters:
plugin - The Plugin object
Returns:
A collection of wrappers


Copyright © 2011 Mairie de Paris. All Rights Reserved.