Class ModeHome
java.lang.Object
fr.paris.lutece.portal.business.style.ModeHome
This class provides instances management methods (create, find, ...) for Mode objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModeCreation of an instance of a modestatic ModefindByPrimaryKey(int nKey) Returns an instance of an mode whose identifier is specified in parameterstatic ReferenceListgetModes()Returns a reference list which contains all the modesstatic Collection<Mode>Return the list of all the modesstatic PropertiesgetOuputXslProperties(int nKey) Returns a set of properties used for xsl outputstatic voidremove(int nId) Remove the mode whose identifier is specified in parameterstatic ModeUpdate of the mode which is specified
-
Method Details
-
create
Creation of an instance of a mode- Parameters:
mode- An instance of a mode which contains the informations to store- Returns:
- The instance of a mode which has been created with its primary key.
-
update
Update of the mode which is specified- Parameters:
mode- The instance of the mode which contains the data to store- Returns:
- The instance of the mode which has been updated
-
remove
public static void remove(int nId) Remove the mode whose identifier is specified in parameter- Parameters:
nId- The identifier of the mode to remove
-
findByPrimaryKey
Returns an instance of an mode whose identifier is specified in parameter- Parameters:
nKey- The mode primary key- Returns:
- an instance of a mode
-
getModesList
Return the list of all the modes- Returns:
- A collection of modes objects
-
getModes
Returns a reference list which contains all the modes- Returns:
- a reference list
-
getOuputXslProperties
Returns a set of properties used for xsl output- Parameters:
nKey- The mode primary key- Returns:
- the output properties to use for xsl transformation
-