Class StyleSheetHome
java.lang.Object
fr.paris.lutece.portal.business.stylesheet.StyleSheetHome
This class provides instances management methods (create, find, ...) for Stylesheet objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic StyleSheetcreate(StyleSheet stylesheet) Creation of an instance of a Stylesheet file in the databasestatic StyleSheetfindByPrimaryKey(int nKey) Returns an instance of a stylesheet file whose identifier is specified in parameterstatic Collection<StyleSheet>getStyleSheetList(int nModeId) Returns a collection of StyleSheet objetstatic intgetStyleSheetNbPerStyleMode(int nStyleId, int nModeId) Returns the number of stylesheets associated to the style and the mode specified in parameterstatic voidremove(int nId) Deletes the StylesSheet whose identifier is specified in parameterstatic voidupdate(StyleSheet stylesheet) Update the StylesSheet whose identifier is specified in parameter
-
Method Details
-
create
Creation of an instance of a Stylesheet file in the database- Parameters:
stylesheet- An instance of a stylesheet which contains the informations to store- Returns:
- The instance of the stylesheet which has been created.
-
remove
public static void remove(int nId) Deletes the StylesSheet whose identifier is specified in parameter- Parameters:
nId- the identifier of the stylesheet to delete
-
update
Update the StylesSheet whose identifier is specified in parameter- Parameters:
stylesheet- the stylesheet to update
-
findByPrimaryKey
Returns an instance of a stylesheet file whose identifier is specified in parameter- Parameters:
nKey- the stylesheet primary key- Returns:
- the instance of the styleSheet whose identifier is the nKey
-
getStyleSheetNbPerStyleMode
public static int getStyleSheetNbPerStyleMode(int nStyleId, int nModeId) Returns the number of stylesheets associated to the style and the mode specified in parameter- Parameters:
nStyleId- the style idnModeId- the mode id- Returns:
- the number of stylesheet associated
-
getStyleSheetList
Returns a collection of StyleSheet objet- Parameters:
nModeId- The mode identifier- Returns:
- A collection of StyleSheet object
-