fr.paris.lutece.plugins.ods.business.indexer.action
Class IndexerActionHome

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.business.indexer.action.IndexerActionHome

public final class IndexerActionHome
extends java.lang.Object

IndexerActionHome : appelle le DAO pour gérer les actions d'indexation


Method Summary
 void create(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Créé une nouvelle action d'indexation dans la base
 IndexerAction findActionOnObject(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> findActionsByIndexer(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 remove(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime une action d'indexation
 void removeForIndexer(Indexer indexer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retire toutes les actions d'indexation pour cet indexer
 void update(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Met à jour une action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public void create(IndexerAction action,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Créé une nouvelle action d'indexation dans la base

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

remove

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

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

update

public void update(IndexerAction action,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Met à jour une action

Parameters:
action - action
plugin - plugin

findActionsByIndexer

public java.util.List<IndexerAction> findActionsByIndexer(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 - indique si l'action porte sur l'index archive ou non
plugin - plugin
Returns:
la liste des actions

findActionOnObject

public IndexerAction findActionOnObject(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 concerné
plugin - plugin
Returns:
une action d'indexation si elle existe, null sinon

removeForIndexer

public void removeForIndexer(Indexer indexer,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retire toutes les actions d'indexation pour cet indexer

Parameters:
indexer - l'indexer à supprimer
plugin - le plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.