public class ConfluencePermissionEnforcer extends Object implements com.atlassian.sal.api.permission.PermissionEnforcer
Constructor and Description |
---|
ConfluencePermissionEnforcer(com.atlassian.sal.api.message.I18nResolver i18nResolver,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
void |
enforceAdmin() |
void |
enforceAuthenticated() |
void |
enforceSystemAdmin() |
boolean |
isAdmin() |
boolean |
isAuthenticated() |
boolean |
isSystemAdmin() |
public ConfluencePermissionEnforcer(com.atlassian.sal.api.message.I18nResolver i18nResolver, PermissionManager permissionManager)
public void enforceAdmin() throws com.atlassian.sal.api.permission.AuthorisationException
enforceAdmin
in interface com.atlassian.sal.api.permission.PermissionEnforcer
com.atlassian.sal.api.permission.AuthorisationException
public void enforceAuthenticated() throws com.atlassian.sal.api.permission.NotAuthenticatedException
enforceAuthenticated
in interface com.atlassian.sal.api.permission.PermissionEnforcer
com.atlassian.sal.api.permission.NotAuthenticatedException
public void enforceSystemAdmin() throws com.atlassian.sal.api.permission.AuthorisationException
enforceSystemAdmin
in interface com.atlassian.sal.api.permission.PermissionEnforcer
com.atlassian.sal.api.permission.AuthorisationException
public boolean isAdmin()
isAdmin
in interface com.atlassian.sal.api.permission.PermissionEnforcer
public boolean isAuthenticated()
isAuthenticated
in interface com.atlassian.sal.api.permission.PermissionEnforcer
public boolean isSystemAdmin()
isSystemAdmin
in interface com.atlassian.sal.api.permission.PermissionEnforcer
Copyright © 2003–2020 Atlassian. All rights reserved.