cbr.service
Class PrivilegedUpdateAction

java.lang.Object
  extended bycbr.service.PrivilegedUpdateAction
All Implemented Interfaces:
PrivilegedExceptionAction

public class PrivilegedUpdateAction
extends Object
implements PrivilegedExceptionAction

Used to make privileged calls to the update() method of a PicsStore.

Version:
"$Id: PrivilegedUpdateAction.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Field Summary
private  Iterator i_
          The iterator that iterates over the picture entries that shall be inserted into or deleted from the index of a PicsStore.
private  int mode_
          The mode, either MODE_INSERT MODE_DELETE.
private  PicsStore store_
          The PicsStore that is called.
 
Constructor Summary
PrivilegedUpdateAction(PicsStore store, Iterator entries, int mode)
          Creates an instance that calls the given PicsStore.
 
Method Summary
 Object run()
          Executes the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store_

private PicsStore store_
The PicsStore that is called.


i_

private Iterator i_
The iterator that iterates over the picture entries that shall be inserted into or deleted from the index of a PicsStore.


mode_

private int mode_
The mode, either MODE_INSERT MODE_DELETE.

Constructor Detail

PrivilegedUpdateAction

public PrivilegedUpdateAction(PicsStore store,
                              Iterator entries,
                              int mode)
Creates an instance that calls the given PicsStore.

Parameters:
store - The PicsStore to call.
entries - The iterator that iterates over the picture entries.
mode - The mode to use, either MODE_INSERT MODE_DELETE.
Method Detail

run

public Object run()
           throws Exception
Executes the action.

Specified by:
run in interface PrivilegedExceptionAction
Throws:
Exception


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.