Role
public Role(String roleName,
String bucket,
String scope,
String collection)
Creates a new role. If all of the nullable parameters are null, a system-wide role is created.
Otherwise, the role applies to the specified bucket / scope / collection.
- Parameters:
roleName
- symbolic name of the role
bucket
- (nullable) The bucket this role applies to, or "*" if it applies to all buckets, or null if not applicable.
scope
- (nullable) The scope within the bucket, or null or "*" if the role applies to all scopes within the bucket.
collection
- (nullable) The collection within the scope, or null or "*" if the role applies to all collections within the scope.