io.permit.sdk.enforcement.ObjectPermissions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permit-sdk-java Show documentation
Show all versions of permit-sdk-java Show documentation
Java SDK for Permit.io: fullstack permissions for cloud native applications
package io.permit.sdk.enforcement;
import java.util.List;
/**
* The {@code ObjectPermissions} class represents a single object (tenant or resource instance) that the queried user can access.
*/
public class ObjectPermissions {
public final TenantDetails tenant;
public final ResourceDetails resource;
public final List permissions;
public final List roles;
public ObjectPermissions(TenantDetails tenant, ResourceDetails resource, List permissions, List roles) {
this.tenant = tenant;
this.resource = resource;
this.permissions = permissions;
this.roles = roles;
}
}