fr.paris.lutece.plugins.dila.service.impl
Class DilaStyleSheetService

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.service.impl.DilaStyleSheetService
All Implemented Interfaces:
IDilaStyleSheetService, Serializable

public class DilaStyleSheetService
extends Object
implements IDilaStyleSheetService, Serializable

Implements the access methods of a DilaStyleSheet

See Also:
Serialized Form

Constructor Summary
DilaStyleSheetService()
           
 
Method Summary
 void create(DilaStyleSheet stylesheet)
          Creation of an instance of a Dila Stylesheet file in the database
 void doDeleteStyleSheet(Integer nIdStyleSheet)
          Delete a styleSheet.
 DilaStyleSheet findByPrimaryKey(Integer nIdStyleSheet)
          Return the dila style sheet by his id
 List<DilaStyleSheet> getDilaStyleSheetList(Integer nTypeContenuId, String strStyleSheetName)
          Returns a collection of Dila StyleSheet object
 byte[] getSourceByStyleSheetId(Integer nIdStyleSheet)
          Return the source for specific stylesheet
 Integer getStyleSheetNbPerTypeContenu(int nTypeContenuId)
          Returns the number of dila stylesheets associated to the typeContenu specified in parameter
 void update(DilaStyleSheet stylesheet)
          Update the dila stylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DilaStyleSheetService

public DilaStyleSheetService()
Method Detail

getDilaStyleSheetList

public List<DilaStyleSheet> getDilaStyleSheetList(Integer nTypeContenuId,
                                                  String strStyleSheetName)
Returns a collection of Dila StyleSheet object

Specified by:
getDilaStyleSheetList in interface IDilaStyleSheetService
Parameters:
nTypeContenuId - The typeContenu identifier
strStyleSheetName - The Dila StyleSheet name
Returns:
A list of Dila StyleSheet object

getStyleSheetNbPerTypeContenu

public Integer getStyleSheetNbPerTypeContenu(int nTypeContenuId)
Returns the number of dila stylesheets associated to the typeContenu specified in parameter

Specified by:
getStyleSheetNbPerTypeContenu in interface IDilaStyleSheetService
Parameters:
nTypeContenuId - the typeContenu id
Returns:
the number of dila stylesheet associated

create

public void create(DilaStyleSheet stylesheet)
Creation of an instance of a Dila Stylesheet file in the database

Specified by:
create in interface IDilaStyleSheetService
Parameters:
stylesheet - An instance of a dila stylesheet which contains the informations to store

findByPrimaryKey

public DilaStyleSheet findByPrimaryKey(Integer nIdStyleSheet)
Return the dila style sheet by his id

Specified by:
findByPrimaryKey in interface IDilaStyleSheetService
Parameters:
nIdStyleSheet - the stylesheet id
Returns:
DilaStyleSheet

update

public void update(DilaStyleSheet stylesheet)
Update the dila stylesheet

Specified by:
update in interface IDilaStyleSheetService
Parameters:
stylesheet - the stylesheet

doDeleteStyleSheet

public void doDeleteStyleSheet(Integer nIdStyleSheet)
Delete a styleSheet.

Specified by:
doDeleteStyleSheet in interface IDilaStyleSheetService
Parameters:
nIdStyleSheet - this "dilaStyleSheet" id

getSourceByStyleSheetId

public byte[] getSourceByStyleSheetId(Integer nIdStyleSheet)
Return the source for specific stylesheet

Specified by:
getSourceByStyleSheetId in interface IDilaStyleSheetService
Parameters:
nIdStyleSheet - stylesheet id
Returns:
byte[] source


Copyright © 2014 Mairie de Paris. All Rights Reserved.