com.memority.citadel.shared.api.context.RoleAssignmentOperationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of citadel-api Show documentation
Show all versions of citadel-api Show documentation
This artifact provides the API classes that are necessary to implement general configuration Rules on the Memority IM platform.
/*
* Copyright (c) 2016-2023 Memority. All Rights Reserved.
*
* This file is part of Memority Citadel API , a Memority project.
*
* This file is released under the Memority Public Artifacts End-User License Agreement,
* see
* Unauthorized copying of this file, via any medium is strictly prohibited.
*/
package com.memority.citadel.shared.api.context;
import lombok.AllArgsConstructor;
import lombok.Getter;
import com.memority.citadel.shared.api.im.ApiObject;
import com.memority.citadel.shared.api.im.identity.RoleAssignment;
import com.memority.citadel.shared.api.im.operation.RoleAssignmentChangesApiRepresentation;
import com.memority.citadel.shared.api.im.role.RoleAssignmentOperationName;
import java.util.Map;
@Getter
@AllArgsConstructor(staticName = "of")
public class RoleAssignmentOperationContext {
private final ApiObject role;
private final RoleAssignmentChangesApiRepresentation changes;
/**
* The current RoleAssignment operation
*/
private final RoleAssignmentOperationName operation;
/**
* The current RoleAssignment.
*/
private final RoleAssignment currentRoleAssignment;
/**
* The fields associated to the current Role Assignment Operation. Nullable.
*/
private final Map fields;
public static RoleAssignmentOperationContext of(ApiObject role,
RoleAssignmentChangesApiRepresentation changes,
RoleAssignmentOperationName operation,
RoleAssignment currentRoleAssignment) {
return of(role, changes, operation, currentRoleAssignment, null);
}
}