Class MCRFixedUserCallable<V>

java.lang.Object
org.mycore.util.concurrent.MCRTransactionableCallable<V>
org.mycore.util.concurrent.MCRFixedUserCallable<V>
All Implemented Interfaces:
Callable<V>, MCRDecorator<Callable<V>>

public class MCRFixedUserCallable<V> extends MCRTransactionableCallable<V>
Encapsulates a Callable with a mycore session belonging to a specific user and a database transaction.
Author:
Matthias Eichner
  • Constructor Details

    • MCRFixedUserCallable

      public MCRFixedUserCallable(Callable<V> callable, MCRUserInformation userInfo)
      Creates a new Callable encapsulating the call() method with a new SYSTEM MCRSession and a database transaction. Afterwards the transaction will be committed and the session will be released and closed.
      Parameters:
      callable - the callable to execute within a SYSTEM session and transaction
      userInfo - specify the user this callable should run
  • Method Details