fr.paris.lutece.plugins.jcr.authentication
Class JcrRestrictedOperation

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.authentication.JcrRestrictedOperation

public class JcrRestrictedOperation
extends Object

Wrapper class to use restricted operations


Constructor Summary
JcrRestrictedOperation(JsrUser user, AdminWorkspace workspace)
           
JcrRestrictedOperation(JsrUser user, AdminWorkspace workspace, Collection<JcrLock> jcrLocks)
           
 
Method Summary
<T> T
doRestrictedOperation(PrivilegedAction<T> action)
          Runs a PrivilegedAction by instantiation of a new Subject with _strLogin/_strPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRestrictedOperation

public JcrRestrictedOperation(JsrUser user,
                              AdminWorkspace workspace)
Parameters:
user - the login to connect
strPassword - the password
workspace -

JcrRestrictedOperation

public JcrRestrictedOperation(JsrUser user,
                              AdminWorkspace workspace,
                              Collection<JcrLock> jcrLocks)
Parameters:
user - the login to connect
strPassword - the password
workspace -
Method Detail

doRestrictedOperation

public <T> T doRestrictedOperation(PrivilegedAction<T> action)
Runs a PrivilegedAction by instantiation of a new Subject with _strLogin/_strPassword

Type Parameters:
T - the return type of the action
Parameters:
action - the PrivilegedAction to run
Returns:
the result of the action
See Also:
PrivilegedAction


Copyright © 2014 Mairie de Paris. All Rights Reserved.