"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.QUERY_HANDLERS_RBAC = exports.COMMAND_HANDLERS_RBAC = void 0;
const Tokens_1 = require("../Tokens");
const HasRoleQueryHandler_1 = require("../../../app/usecase/query/security/roles/hasRole/HasRoleQueryHandler");
const GetRoleCountForQueryHandler_1 = require("../../../app/usecase/query/security/roles/getRoleCountFor/GetRoleCountForQueryHandler");
const GetRolesForQueryHandler_1 = require("../../../app/usecase/query/security/roles/getRolesFor/GetRolesForQueryHandler");
const RevokeRoleCommandHandler_1 = require("../../../app/usecase/command/security/roles/revokeRole/RevokeRoleCommandHandler");
const ApplyRolesCommandHandler_1 = require("../../../app/usecase/command/security/roles/applyRoles/ApplyRolesCommandHandler");
const GrantRoleCommandHandler_1 = require("../../../app/usecase/command/security/roles/grantRole/GrantRoleCommandHandler");
const GetRoleMemberCountQueryHandler_1 = require("../../../app/usecase/query/security/roles/getRoleMemberCount/GetRoleMemberCountQueryHandler");
const GetRoleMembersQueryHandler_1 = require("../../../app/usecase/query/security/roles/getRoleMembers/GetRoleMembersQueryHandler");
exports.COMMAND_HANDLERS_RBAC = [
    {
        token: Tokens_1.TOKENS.COMMAND_HANDLER,
        useClass: GrantRoleCommandHandler_1.GrantRoleCommandHandler,
    },
    {
        token: Tokens_1.TOKENS.COMMAND_HANDLER,
        useClass: ApplyRolesCommandHandler_1.ApplyRolesCommandHandler,
    },
    {
        token: Tokens_1.TOKENS.COMMAND_HANDLER,
        useClass: RevokeRoleCommandHandler_1.RevokeRoleCommandHandler,
    },
];
exports.QUERY_HANDLERS_RBAC = [
    {
        token: Tokens_1.TOKENS.QUERY_HANDLER,
        useClass: HasRoleQueryHandler_1.HasRoleQueryHandler,
    },
    {
        token: Tokens_1.TOKENS.QUERY_HANDLER,
        useClass: GetRoleCountForQueryHandler_1.GetRoleCountForQueryHandler,
    },
    {
        token: Tokens_1.TOKENS.QUERY_HANDLER,
        useClass: GetRolesForQueryHandler_1.GetRolesForQueryHandler,
    },
    {
        token: Tokens_1.TOKENS.QUERY_HANDLER,
        useClass: GetRoleMemberCountQueryHandler_1.GetRoleMemberCountQueryHandler,
    },
    {
        token: Tokens_1.TOKENS.QUERY_HANDLER,
        useClass: GetRoleMembersQueryHandler_1.GetRoleMembersQueryHandler,
    },
];
