fr.paris.lutece.plugins.jcr.authentication
Class JcrRestrictedOperation
java.lang.Object
fr.paris.lutece.plugins.jcr.authentication.JcrRestrictedOperation
public class JcrRestrictedOperation
- extends Object
Wrapper class to use restricted operations
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,
Collection<JcrLock> jcrLocks)
- Parameters:
user
- the login to connectstrPassword
- the passwordworkspace
-
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.