fr.paris.lutece.plugins.jcr.authentication
Class JcrRestrictedOperation
java.lang.Object
fr.paris.lutece.plugins.jcr.authentication.JcrRestrictedOperation
public class JcrRestrictedOperation
- extends java.lang.Object
Wrapper class to use restricted operations
|
Method Summary |
|
doRestrictedOperation(java.security.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 |
JcrRestrictedOperation
public JcrRestrictedOperation(JsrUser user,
AdminWorkspace workspace)
- Parameters:
user - the login to connectstrPassword - the passwordworkspace -
JcrRestrictedOperation
public JcrRestrictedOperation(JsrUser user,
AdminWorkspace workspace,
java.util.Collection<JcrLock> jcrLocks)
- Parameters:
user - the login to connectstrPassword - the passwordworkspace -
doRestrictedOperation
public <T> T doRestrictedOperation(java.security.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 © 2008 Mairie de Paris. All Rights Reserved.