public class AccessControlRule extends BaseDataObject
Access control rule.
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_CONTROL_RULE_KIND
Type of the resource ("calendar#calendar").
|
Constructor and Description |
---|
AccessControlRule()
Initializes a new instance of the AccessControlRule class.
|
AccessControlRule(AclScope scope,
int role)
Initializes a new instance of the AccessControlRule class.
|
AccessControlRule(String id,
AclScope scope,
int role)
Initializes a new instance of the AccessControlRule class.
|
AccessControlRule(String id,
String eTag,
AclScope scope,
int role)
Initializes a new instance of the AccessControlRule class.
|
Modifier and Type | Method and Description |
---|---|
int |
getRole()
The role assigned to the scope.
|
AclScope |
getScope()
The scope of the rule.
|
void |
setRole(int value)
The role assigned to the scope.
|
void |
setScope(AclScope value)
The scope of the rule.
|
String |
toString()
Returns a string which represents the object instance.
|
public static final String ACCESS_CONTROL_RULE_KIND
Type of the resource ("calendar#calendar").
public AccessControlRule()
Initializes a new instance of the AccessControlRule class.
public AccessControlRule(AclScope scope, int role)
Initializes a new instance of the AccessControlRule class.
scope
- The scope of the rule.role
- The role assigned to the scope.public AccessControlRule(String id, AclScope scope, int role)
Initializes a new instance of the AccessControlRule class.
id
- Identifier of the resource.scope
- The scope of the rule.role
- The role assigned to the scope.