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

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

public class JcrRestrictedOperation
extends java.lang.Object

Wrapper class to use restricted operations


Constructor Summary
JcrRestrictedOperation(java.lang.String strLogin, java.lang.String strPassword)
           
 
Method Summary
 java.lang.Object doRestrictedOperation(java.security.PrivilegedAction 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(java.lang.String strLogin,
                              java.lang.String strPassword)
Parameters:
strLogin - the login to connect
strPassword - the password
Method Detail

doRestrictedOperation

public java.lang.Object doRestrictedOperation(java.security.PrivilegedAction action)
Runs a PrivilegedAction by instantiation of a new Subject with _strLogin/_strPassword

Parameters:
action - the PrivilegedAction to run
Returns:
the result of the action
See Also:
PrivilegedAction


Copyright © 2007 Mairie de Paris. All Rights Reserved.