/*
 * Copyright (C) 2018 the original author or authors.
 *
 * This file is part of jBB Application Project.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  You may obtain a copy of the License at
 *        http://www.apache.org/licenses/LICENSE-2.0
 */

package org.jbb.lib.restful.domain;

public enum Scopes {
    BOARD_READ("board_read", "Read board structure"),
    BOARD_READ_WRITE("board_read_write", "Read & write board structure"),
    BOARD_SETTINGS_READ("board_settings_read", "Read board settings"),
    BOARD_SETTINGS_READ_WRITE("board_settings_read_write", "Read & write board settings");

    private final String name;
    private final String description;

    Scopes(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }
}

@@ -333,16 +333,36 @@
 copes %7B%0A
+    // board scopes%0A
     BOAR
@@ -641,16 +641,1854 @@
 ttings%22)
+,%0A%0A    // frontend scopes%0A    FAQ_READ(%22faq_read%22, %22Read FAQ%22),%0A    FAQ_READ_WRITE(%22faq_read_write%22, %22Read & write FAQ%22),%0A    FORMAT_SETTINGS_READ(%22format_settings_read%22, %22Read format settings%22),%0A    FORMAT_SETTINGS_READ_WRITE(%22format_settings_read_write%22, %22Read & write format settings%22),%0A%0A    // member scopes%0A    MEMBER_READ(%22member_read%22, %22Read members%22),%0A    MEMBER_READ_WRITE(%22member_read_write%22, %22Read & write members%22),%0A    MEMBER_PROFILE_READ(%22member_profile_read%22, %22Read member profiles%22),%0A    MEMBER_PROFILE_READ_WRITE(%22member_profile_read_write%22, %22Read & write member profiles%22),%0A    MEMBER_ACCOUNT_READ(%22member_account_read%22, %22Read member accounts%22),%0A    MEMBER_ACCOUNT_READ_WRITE(%22member_account_read_write%22, %22Read & write member accounts%22),%0A    REGISTRATION_SETTINGS_READ(%22registration_settings_read%22, %22Read registration settings%22),%0A    REGISTRATION_SETTINGS_READ_WRITE(%22registration_settings_read_write%22, %22Read & write registration settings%22),%0A%0A    // security scopes%0A    MEMBER_LOCK_READ(%22member_lock_read%22, %22Read member locks%22),%0A    MEMBER_LOCK_READ_WRITE(%22member_lock_read_write%22, %22Read & write member locks%22),%0A    LOCKOUT_SETTINGS_READ(%22lockout_settings_read%22, %22Read lockout settings%22),%0A    LOCKOUT_SETTINGS_READ_WRITE(%22lockout_settings_read_write%22, %22Read & write lockout settings%22),%0A    PASSWORD_POLICY_READ(%22password_policy_read%22, %22Read password policy%22),%0A    PASSWORD_POLICY_READ_WRITE(%22password_policy_read_write%22, %22Read & write password policy%22),%0A    ADMINISTRATOR_PRIVILEGE_READ(%22administrator_privilege_read%22, %22Read administrator privileges%22),%0A    ADMINISTRATOR_PRIVILEGE_READ_WRITE(%22administrator_privilege_read_write%22, %22Read & write administrator privileges%22),%0A%0A    // system scopes%0A    HEALTH_READ(%22health_read%22, %22Read health status%22),%0A    API_ERROR_CODES_READ(%22api_error_codes_read%22, %22Read API error codes%22)
 ;%0A%0A    p

Define all OAuth application scopes