fr.paris.lutece.plugins.ods.business.indexer.action
Interface IIndexerActionDAO

All Known Implementing Classes:
IndexerActionDAO

public interface IIndexerActionDAO

Cette interface fournit les fonctions d'interaction avec la base de données pour gérer les actions d'indexations.


Method Summary
 void delete(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime une action d'indexation
 void deleteForIndexer(Indexer indexer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime toutes les actions d'indexation pour cet indexer;
 void insert(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Créé une nouvelle action d'indexation
 IndexerAction selectActionOnObject(int nIdIndexer, int nAction, java.lang.Object object, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne l'action d'indexation voulue sur le fichier, si elle existe
 java.util.List<IndexerAction> selectIndexerActions(int nIdIndexer, int nAction, boolean bDelete, boolean bArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne la liste des actions pour un indexer, selon le type d'action voulu: IndexAction.ACTION_CREATE,IndexAction.ACTION_DELETE, IndexAction.ACTION_MODIFY
 void store(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Met à jour une action d'indexation
 

Method Detail

insert

void insert(IndexerAction action,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Créé une nouvelle action d'indexation

Parameters:
action - l'action à ajouter
plugin - plugin

delete

void delete(IndexerAction action,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Supprime une action d'indexation

Parameters:
action - l'action à supprimer
plugin - plugin

store

void store(IndexerAction action,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Met à jour une action d'indexation

Parameters:
action - l'action à modifier
plugin - plugin

selectIndexerActions

java.util.List<IndexerAction> selectIndexerActions(int nIdIndexer,
                                                   int nAction,
                                                   boolean bDelete,
                                                   boolean bArchive,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne la liste des actions pour un indexer, selon le type d'action voulu: IndexAction.ACTION_CREATE,IndexAction.ACTION_DELETE, IndexAction.ACTION_MODIFY

Parameters:
nIdIndexer - l'identifiant de l'indexer
nAction - le type d'action voulu
bDelete - indique si on supprime les actions chargées ou non
bArchive - l'action concerne-t-elle archives ?
plugin - plugin
Returns:
la liste des actions

selectActionOnObject

IndexerAction selectActionOnObject(int nIdIndexer,
                                   int nAction,
                                   java.lang.Object object,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne l'action d'indexation voulue sur le fichier, si elle existe

Parameters:
nIdIndexer - l'indexer sélectionné
nAction - l'action sur le fichier
object - l'objet
plugin - plugin
Returns:
une action d'indexation si elle existe, null sinon

deleteForIndexer

void deleteForIndexer(Indexer indexer,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Supprime toutes les actions d'indexation pour cet indexer;

Parameters:
indexer - l'indexer
plugin - le plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.