fr.paris.lutece.plugins.ods.business.fichier
Class AbstractFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GFichierDAO extends IFichierDAO<GFichier,GFichierFilter,GTypeDocument,GSeance>,GSeance extends ISeance>

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.business.fichier.AbstractFichierHome<GFichier,GFichierFilter,GTypeDocument,GFichierDAO,GSeance>
Type Parameters:
GFichier - IFichier
GFichierFilter - IFichierFilter
GTypeDocument - ITypeDocument
GFichierDAO - IFichierDAO
GSeance - ISeance
All Implemented Interfaces:
IFichierHome<GFichier,GFichierFilter,GTypeDocument,GSeance>, IBusinessHome

public abstract class AbstractFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GFichierDAO extends IFichierDAO<GFichier,GFichierFilter,GTypeDocument,GSeance>,GSeance extends ISeance>
extends java.lang.Object
implements IBusinessHome, IFichierHome<GFichier,GFichierFilter,GTypeDocument,GSeance>

AbstractFichierHome


Field Summary
protected  GFichierDAO _fichierDAO
           
 
Constructor Summary
AbstractFichierHome()
           
 
Method Summary
 int create(GFichier fichier, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Crée un nouveau fichier à partir de l’objet fichier passé en paramètre
 java.util.List<GFichier> findByFilter(GFichierFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          récupère la liste des fichiers correspondant au filtre donné
 GFichier findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie le Fichier ayant comme identifiant nKey
 java.util.List<GTypeDocument> findTypeDocumentsAvalList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des Types de documents aval
 GTypeDocument findTypeDocumentsById(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne le type de document en fonction de l'id passé en parametre
 java.util.List<GTypeDocument> findTypeDocumentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des Types de documents
 java.util.List<GTypeDocument> findTypeDocumentsProchaineSeanceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des Types de documents pour la prochaine séance
abstract  GFichierFilter newFichierFilterInstance()
          Crée une nouvelle instance du filtre
 void publication(int nKey, java.sql.Timestamp datePublication, int version, boolean isPublier, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Permet de publier ou de dépublier un fichier Publication d'un fichier Si isPublier égale à TRUE, alors la méthode publie le fichier et incrémente la version
Sinon la méthode change le statut enLigne d'un fichier a FALSE
 void remove(GFichier fichier, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime le fichier correspondant à l’objet fichier passé en paramètre
 void update(GFichier fichier, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modifie le fichier correspondant à l’objet fichier passé en paramètre
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fichierDAO

protected GFichierDAO extends IFichierDAO<GFichier,GFichierFilter,GTypeDocument,GSeance> _fichierDAO
Constructor Detail

AbstractFichierHome

public AbstractFichierHome()
Method Detail

newFichierFilterInstance

public abstract GFichierFilter newFichierFilterInstance()
Crée une nouvelle instance du filtre

Specified by:
newFichierFilterInstance in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Returns:
une nouvelle instance du filtre

create

public int create(GFichier fichier,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Crée un nouveau fichier à partir de l’objet fichier passé en paramètre

Specified by:
create in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
fichier - le fichier à insérer
plugin - le Plugin actif
Returns:
int primaryKey

update

public void update(GFichier fichier,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modifie le fichier correspondant à l’objet fichier passé en paramètre

Specified by:
update in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
fichier - le fichier à modifier
plugin - le Plugin actif

remove

public void remove(GFichier fichier,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Supprime le fichier correspondant à l’objet fichier passé en paramètre

Specified by:
remove in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
fichier - le fichier à supprimer
plugin - le Plugin actif

findByPrimaryKey

public GFichier findByPrimaryKey(int nKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie le Fichier ayant comme identifiant nKey

Specified by:
findByPrimaryKey in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Specified by:
findByPrimaryKey in interface IBusinessHome
Parameters:
nKey - idenfiant du Fichier à supprimer
plugin - le Plugin actif
Returns:
un fichier

findByFilter

public java.util.List<GFichier> findByFilter(GFichierFilter filter,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
récupère la liste des fichiers correspondant au filtre donné

Specified by:
findByFilter in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
filter - le filtre
plugin - le Plugin actif
Returns:
uen liste de fichiers

findTypeDocumentsList

public java.util.List<GTypeDocument> findTypeDocumentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des Types de documents

Specified by:
findTypeDocumentsList in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
plugin - le Plugin actif
Returns:
liste d'objets TypeDocument

findTypeDocumentsProchaineSeanceList

public java.util.List<GTypeDocument> findTypeDocumentsProchaineSeanceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des Types de documents pour la prochaine séance

Specified by:
findTypeDocumentsProchaineSeanceList in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
plugin - le Plugin actif
Returns:
liste d'objets TypeDocument

findTypeDocumentsAvalList

public java.util.List<GTypeDocument> findTypeDocumentsAvalList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des Types de documents aval

Specified by:
findTypeDocumentsAvalList in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
plugin - le Plugin actif
Returns:
liste d'objets TypeDocument

findTypeDocumentsById

public GTypeDocument findTypeDocumentsById(int nKey,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne le type de document en fonction de l'id passé en parametre

Specified by:
findTypeDocumentsById in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
nKey - id dy type de document que l'on souhaite
plugin - le Plugin actif
Returns:
TypeDocument

publication

public void publication(int nKey,
                        java.sql.Timestamp datePublication,
                        int version,
                        boolean isPublier,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Permet de publier ou de dépublier un fichier Publication d'un fichier Si isPublier égale à TRUE, alors la méthode publie le fichier et incrémente la version
Sinon la méthode change le statut enLigne d'un fichier a FALSE

Specified by:
publication in interface IFichierHome<GFichier extends IFichier<GSeance,GFichier>,GFichierFilter extends IFichierFilter,GTypeDocument extends ITypeDocument,GSeance extends ISeance>
Parameters:
nKey - id du fichier
datePublication - TimeStamp date de publication
version - verssion
isPublier - enLigne
plugin - le Plugin actif


Copyright © 2010 Mairie de Paris. All Rights Reserved.