Class ConfluencePermissionEnforcer
- java.lang.Object
-
- com.atlassian.sal.confluence.permission.ConfluencePermissionEnforcer
-
- All Implemented Interfaces:
com.atlassian.sal.api.permission.PermissionEnforcer
public class ConfluencePermissionEnforcer extends Object implements com.atlassian.sal.api.permission.PermissionEnforcer
-
-
Constructor Summary
Constructors Constructor Description ConfluencePermissionEnforcer(com.atlassian.sal.api.message.I18nResolver i18nResolver, PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enforceAdmin()
void
enforceAuthenticated()
void
enforceSystemAdmin()
boolean
isAdmin()
boolean
isAuthenticated()
boolean
isSystemAdmin()
-
-
-
Constructor Detail
-
ConfluencePermissionEnforcer
public ConfluencePermissionEnforcer(com.atlassian.sal.api.message.I18nResolver i18nResolver, PermissionManager permissionManager)
-
-
Method Detail
-
enforceAdmin
public void enforceAdmin() throws com.atlassian.sal.api.permission.AuthorisationException
- Specified by:
enforceAdmin
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
- Throws:
com.atlassian.sal.api.permission.AuthorisationException
-
enforceAuthenticated
public void enforceAuthenticated() throws com.atlassian.sal.api.permission.NotAuthenticatedException
- Specified by:
enforceAuthenticated
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
- Throws:
com.atlassian.sal.api.permission.NotAuthenticatedException
-
enforceSystemAdmin
public void enforceSystemAdmin() throws com.atlassian.sal.api.permission.AuthorisationException
- Specified by:
enforceSystemAdmin
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
- Throws:
com.atlassian.sal.api.permission.AuthorisationException
-
isAdmin
public boolean isAdmin()
- Specified by:
isAdmin
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticated
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
-
isSystemAdmin
public boolean isSystemAdmin()
- Specified by:
isSystemAdmin
in interfacecom.atlassian.sal.api.permission.PermissionEnforcer
-
-