Class StyleDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.style.StyleDAO
-
-
Constructor Summary
Constructors Constructor Description StyleDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckStylePortalComponent(int nPortalComponentId)Checks if a style has been created in the database with the given portal componenetvoiddelete(int nStyleId)Delete a record from the tablevoidinsert(Style style)Insert a new record in the table.Styleload(int nStyleId)load the data of the Style whose identifier is specified in parameter from the tableReferenceListselectPortalComponentList()Returns the list of the portal component in form of a ReferenceListjava.util.Collection<StyleSheet>selectStyleSheetList(int nStyleId)load the data of the StyleSheet which re associated to the given stylejava.util.Collection<Style>selectStylesList()Load the list of styles stored in the databasevoidstore(Style style)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Style style)
Insert a new record in the table.
-
load
public Style load(int nStyleId)
load the data of the Style whose identifier is specified in parameter from the table
-
delete
public void delete(int nStyleId)
Delete a record from the table
-
store
public void store(Style style)
Update the record in the table
-
selectStylesList
public java.util.Collection<Style> selectStylesList()
Load the list of styles stored in the database- Specified by:
selectStylesListin interfaceIStyleDAO- Returns:
- The styles list in form of a Collection object
-
selectPortalComponentList
public ReferenceList selectPortalComponentList()
Returns the list of the portal component in form of a ReferenceList- Specified by:
selectPortalComponentListin interfaceIStyleDAO- Returns:
- the list of the portal component
-
selectStyleSheetList
public java.util.Collection<StyleSheet> selectStyleSheetList(int nStyleId)
load the data of the StyleSheet which re associated to the given style- Specified by:
selectStyleSheetListin interfaceIStyleDAO- Parameters:
nStyleId- The identifier of the Style- Returns:
- an instance of the Style which has been created
-
checkStylePortalComponent
public boolean checkStylePortalComponent(int nPortalComponentId)
Checks if a style has been created in the database with the given portal componenet- Specified by:
checkStylePortalComponentin interfaceIStyleDAO- Parameters:
nPortalComponentId- The identifier of the portal component- Returns:
- true if a style has been created for this portal component, false otherwise
-
-