fr.paris.lutece.portal.business.portalcomponent
Class PortalComponentHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.portalcomponent.PortalComponentHome

public final class PortalComponentHome
extends Object

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


Method Summary
static void create(PortalComponent portalComponent)
          Insert a new record in the table.
static PortalComponent findByPrimaryKey(int nPortalComponentId)
          load the data of PortalComponent from the table
static StyleSheet getXsl(int nPortalComponentId, int nModeId)
          Returns the stylesheet of the portal component according to the mode
static void remove(int nPortalComponentId)
          Delete a record from the table
static void update(PortalComponent portalComponent)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(PortalComponent portalComponent)
Insert a new record in the table.

Parameters:
portalComponent - component The Instance of the object PortalComponent

remove

public static void remove(int nPortalComponentId)
Delete a record from the table

Parameters:
nPortalComponentId - The indentifier of the object PortalComponent

findByPrimaryKey

public static PortalComponent findByPrimaryKey(int nPortalComponentId)
load the data of PortalComponent from the table

Parameters:
nPortalComponentId - The indentifier of the object PortalComponent
Returns:
The Instance of the object PortalComponent

update

public static void update(PortalComponent portalComponent)
Update the record in the table

Parameters:
portalComponent - The instance of the PortalComponent to update

getXsl

public static StyleSheet getXsl(int nPortalComponentId,
                                int nModeId)
Returns the stylesheet of the portal component according to the mode

Parameters:
nPortalComponentId - the identifier of the portal component
nModeId - the selected mode
Returns:
the stylesheet


Copyright © 2014 Mairie de Paris. All Rights Reserved.