@Stability.Volatile public class Role extends Object
Constructor and Description |
---|
Role(String roleName)
Creates a new system-wide role (not specific to a bucket)
|
Role(String roleName,
String bucket)
Creates a new role.
|
Role(String roleName,
String bucket,
String scope,
String collection)
Creates a new role.
|
public Role(String roleName)
roleName
- symbolic name of the rolepublic Role(String roleName, String bucket)
roleName
- symbolic name of the rolebucket
- (nullable) target of the role, or null for a system-wide role.
The special value "*" refers to all buckets.public Role(String roleName, String bucket, String scope, String collection)
roleName
- symbolic name of the rolebucket
- (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.Copyright © 2021 Couchbase, Inc.. All rights reserved.