All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aeontronix.enhancedmule.tools.role.RoleAssignmentDeletion Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2019
 */

package com.aeontronix.enhancedmule.tools.role;

import com.aeontronix.enhancedmule.tools.anypoint.Environment;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.HashMap;
import java.util.Map;

public class RoleAssignmentDeletion {
    private final Map contextParams = new HashMap<>();
    private String roleGroupId;
    private String roleId;

    public RoleAssignmentDeletion(String roleGroupId, String roleId, Environment environment) {
        this.roleGroupId = roleGroupId;
        this.roleId = roleId;
        contextParams.put("org", environment.getParent().getId());
        contextParams.put("envId", environment.getId());
    }

    @JsonProperty("role_group_id")
    public String getRoleGroupId() {
        return roleGroupId;
    }

    @JsonProperty("role_id")
    public String getRoleId() {
        return roleId;
    }

    @JsonProperty("context_params")
    public Map getContextParams() {
        return contextParams;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy