AccessControlRule

Inheritance: java.lang.Object, com.aspose.email.BaseDataObject

public class AccessControlRule extends BaseDataObject

Access control rule.

Constructors

Constructor 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.

Fields

Field Description
ACCESS_CONTROL_RULE_KIND Type of the resource (“calendar#calendar”).

Methods

Method Description
getScope() The scope of the rule.
setScope(AclScope value) The scope of the rule.
getRole() The role assigned to the scope.
setRole(int value) The role assigned to the scope.
toString() Returns a string which represents the object instance.

AccessControlRule()

public AccessControlRule()

Initializes a new instance of the AccessControlRule class.

AccessControlRule(AclScope scope, int role)

public AccessControlRule(AclScope scope, int role)

Initializes a new instance of the AccessControlRule class.

Parameters:

Parameter Type Description
scope AclScope The scope of the rule.
role int The role assigned to the scope.

AccessControlRule(String id, AclScope scope, int role)

public AccessControlRule(String id, AclScope scope, int role)

Initializes a new instance of the AccessControlRule class.

Parameters:

Parameter Type Description
id java.lang.String Identifier of the resource.
scope AclScope The scope of the rule.
role int The role assigned to the scope.

AccessControlRule(String id, String eTag, AclScope scope, int role)

public AccessControlRule(String id, String eTag, AclScope scope, int role)

Initializes a new instance of the AccessControlRule class.

Parameters:

Parameter Type Description
id java.lang.String Identifier of the resource.
eTag java.lang.String An entity tag
scope AclScope The scope of the rule.
role int The role assigned to the scope.

ACCESS_CONTROL_RULE_KIND

public static final String ACCESS_CONTROL_RULE_KIND

Type of the resource (“calendar#calendar”).

getScope()

public final AclScope getScope()

The scope of the rule.

Returns: AclScope

setScope(AclScope value)

public final void setScope(AclScope value)

The scope of the rule.

Parameters:

Parameter Type Description
value AclScope

getRole()

public final int getRole()

The role assigned to the scope.

Returns: int

setRole(int value)

public final void setRole(int value)

The role assigned to the scope.

Parameters:

Parameter Type Description
value int

toString()

public String toString()

Returns a string which represents the object instance.

Returns: java.lang.String - Returns a string which represents the object instance.