Class ConfluencePermissionEnforcer

  • All Implemented Interfaces:
    com.atlassian.sal.api.permission.PermissionEnforcer

    public class ConfluencePermissionEnforcer
    extends Object
    implements com.atlassian.sal.api.permission.PermissionEnforcer
    • 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 interface com.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 interface com.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 interface com.atlassian.sal.api.permission.PermissionEnforcer
        Throws:
        com.atlassian.sal.api.permission.AuthorisationException
      • isAdmin

        public boolean isAdmin()
        Specified by:
        isAdmin in interface com.atlassian.sal.api.permission.PermissionEnforcer
      • isAuthenticated

        public boolean isAuthenticated()
        Specified by:
        isAuthenticated in interface com.atlassian.sal.api.permission.PermissionEnforcer
      • isSystemAdmin

        public boolean isSystemAdmin()
        Specified by:
        isSystemAdmin in interface com.atlassian.sal.api.permission.PermissionEnforcer