Class PortalComponentHome
- java.lang.Object
-
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(PortalComponent portalComponent)Insert a new record in the table.static PortalComponentfindByPrimaryKey(int nPortalComponentId)load the data of PortalComponent from the tablestatic StyleSheetgetXsl(int nPortalComponentId, int nModeId)Returns the stylesheet of the portal component according to the modestatic voidremove(int nPortalComponentId)Delete a record from the tablestatic voidupdate(PortalComponent portalComponent)Update the record in the table
-
-
-
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 componentnModeId- the selected mode- Returns:
- the stylesheet
-
-