-
- All Implemented Interfaces:
public final class PermissionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePermissionService.ConsistencyOrBuilderpublic final classPermissionService.Consistency
Protobuf typeConsistency will define how a request is handled by the backend. By defining a consistency requirement, and a token at which those requirements should be applied, where applicable.authzed.api.v1.Consistencypublic interfacePermissionService.RelationshipFilterOrBuilderpublic final classPermissionService.RelationshipFilter
Protobuf typeRelationshipFilter is a collection of filters which when applied to a relationship will return relationships that have exactly matching fields. resource_type is required. All other fields are optional and if left unspecified will not filter relationships.authzed.api.v1.RelationshipFilterpublic interfacePermissionService.SubjectFilterOrBuilderpublic final classPermissionService.SubjectFilter
Protobuf typeSubjectFilter specifies a filter on the subject of a relationship. subject_type is required and all other fields are optional, and will not impose any additional requirements if left unspecified.authzed.api.v1.SubjectFilterpublic interfacePermissionService.ReadRelationshipsRequestOrBuilderpublic final classPermissionService.ReadRelationshipsRequest
Protobuf typeReadRelationshipsRequest specifies one or more filters used to read matching relationships within the system.authzed.api.v1.ReadRelationshipsRequestpublic interfacePermissionService.ReadRelationshipsResponseOrBuilderpublic final classPermissionService.ReadRelationshipsResponse
Protobuf typeReadRelationshipsResponse contains a Relationship found that matches the specified relationship filter(s). A instance of this response message will be streamed to the client for each relationship found.authzed.api.v1.ReadRelationshipsResponsepublic interfacePermissionService.PreconditionOrBuilderpublic final classPermissionService.Precondition
Protobuf typePrecondition specifies how and the existence or absence of certain relationships as expressed through the accompanying filter should affect whether or not the operation proceeds. MUST_NOT_MATCH will fail the parent request if any relationships match the relationships filter. MUST_MATCH will fail the parent request if there are no relationships that match the filter.authzed.api.v1.Preconditionpublic interfacePermissionService.WriteRelationshipsRequestOrBuilderpublic final classPermissionService.WriteRelationshipsRequest
Protobuf typeWriteRelationshipsRequest contains a list of Relationship mutations that should be applied to the service. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the write will be committed.authzed.api.v1.WriteRelationshipsRequestpublic interfacePermissionService.WriteRelationshipsResponseOrBuilderpublic final classPermissionService.WriteRelationshipsResponseProtobuf type
authzed.api.v1.WriteRelationshipsResponsepublic interfacePermissionService.DeleteRelationshipsRequestOrBuilderpublic final classPermissionService.DeleteRelationshipsRequest
Protobuf typeDeleteRelationshipsRequest specifies which Relationships should be deleted, requesting the delete of *ALL* relationships that match the specified filters. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the delete will be executed.authzed.api.v1.DeleteRelationshipsRequestpublic interfacePermissionService.DeleteRelationshipsResponseOrBuilderpublic final classPermissionService.DeleteRelationshipsResponseProtobuf type
authzed.api.v1.DeleteRelationshipsResponsepublic interfacePermissionService.CheckPermissionRequestOrBuilderpublic final classPermissionService.CheckPermissionRequest
Protobuf typeCheckPermissionRequest issues a check on whether a subject has a permission or is a member of a relation, on a specific resource.authzed.api.v1.CheckPermissionRequestpublic interfacePermissionService.CheckPermissionResponseOrBuilderpublic final classPermissionService.CheckPermissionResponseProtobuf type
authzed.api.v1.CheckPermissionResponsepublic interfacePermissionService.ExpandPermissionTreeRequestOrBuilderpublic final classPermissionService.ExpandPermissionTreeRequest
Protobuf typeExpandPermissionTreeRequest returns a tree representing the expansion of all relationships found accessible from a permission or relation on a particular resource. ExpandPermissionTreeRequest is typically used to determine the full set of subjects with a permission, along with the relationships that grant said access.authzed.api.v1.ExpandPermissionTreeRequestpublic interfacePermissionService.ExpandPermissionTreeResponseOrBuilderpublic final classPermissionService.ExpandPermissionTreeResponseProtobuf type
authzed.api.v1.ExpandPermissionTreeResponsepublic interfacePermissionService.LookupResourcesRequestOrBuilderpublic final classPermissionService.LookupResourcesRequest
Protobuf typeLookupResourcesRequest performs a lookup of all resources of a particular kind on which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those resources.authzed.api.v1.LookupResourcesRequestpublic interfacePermissionService.LookupResourcesResponseOrBuilderpublic final classPermissionService.LookupResourcesResponse
Protobuf typeLookupResourcesResponse contains a single matching resource object ID for the requested object type, permission, and subject.authzed.api.v1.LookupResourcesResponsepublic interfacePermissionService.LookupSubjectsRequestOrBuilderpublic final classPermissionService.LookupSubjectsRequest
Protobuf typeLookupSubjectsRequest performs a lookup of all subjects of a particular kind for which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those subjects.authzed.api.v1.LookupSubjectsRequestpublic interfacePermissionService.LookupSubjectsResponseOrBuilderpublic final classPermissionService.LookupSubjectsResponse
Protobuf typeLookupSubjectsResponse contains a single matching subject object ID for the requested subject object type on the permission or relation.authzed.api.v1.LookupSubjectsResponse
-
Field Summary
Fields Modifier and Type Field Description public static Descriptors.FileDescriptordescriptor
-
Method Summary
Modifier and Type Method Description static Descriptors.FileDescriptorgetDescriptor()static voidregisterAllExtensions(ExtensionRegistryLite registry)static voidregisterAllExtensions(ExtensionRegistry registry)-
-
Method Detail
-
getDescriptor
static Descriptors.FileDescriptor getDescriptor()
-
registerAllExtensions
static void registerAllExtensions(ExtensionRegistryLite registry)
-
registerAllExtensions
static void registerAllExtensions(ExtensionRegistry registry)
-
-
-
-