public class FedoraUserSecurityContext extends Object implements org.modeshape.jcr.security.SecurityContext, org.modeshape.jcr.security.AdvancedAuthorizationProvider
Modifier | Constructor and Description |
---|---|
protected |
FedoraUserSecurityContext(Principal userPrincipal,
FedoraAuthorizationDelegate fad)
Constructs a new security context.
|
Modifier and Type | Method and Description |
---|---|
Principal |
getEffectiveUserPrincipal()
Get the user principal associated with this context.
|
String |
getUserName() |
boolean |
hasPermission(org.modeshape.jcr.security.AdvancedAuthorizationProvider.Context context,
org.modeshape.jcr.value.Path absPath,
String... actions) |
boolean |
hasRole(String roleName) |
boolean |
isAnonymous() |
void |
logout() |
protected FedoraUserSecurityContext(Principal userPrincipal, FedoraAuthorizationDelegate fad)
userPrincipal
- the user principal associated with this security
contextfad
- the authorization delegatepublic boolean isAnonymous()
isAnonymous
in interface org.modeshape.jcr.security.SecurityContext
SecurityContext.isAnonymous()
public final String getUserName()
getUserName
in interface org.modeshape.jcr.security.SecurityContext
SecurityContext.getUserName()
public final boolean hasRole(String roleName)
hasRole
in interface org.modeshape.jcr.security.SecurityContext
SecurityContext.hasRole(String)
public Principal getEffectiveUserPrincipal()
public void logout()
logout
in interface org.modeshape.jcr.security.SecurityContext
SecurityContext.logout()
public boolean hasPermission(org.modeshape.jcr.security.AdvancedAuthorizationProvider.Context context, org.modeshape.jcr.value.Path absPath, String... actions)
hasPermission
in interface org.modeshape.jcr.security.AdvancedAuthorizationProvider
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.