AccessControlRule

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

public class AccessControlRule extends BaseDataObject

Access control rule.

Constructors

ConstructorDescription
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

FieldDescription
ACCESS_CONTROL_RULE_KINDType of the resource (“calendar#calendar”).

Methods

MethodDescription
equals(Object arg0)
getClass()
getETag()An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
getId()Identifier of the resource.
getKind()Type of the resource
getRole()The role assigned to the scope.
getScope()The scope of the rule.
hashCode()
notify()
notifyAll()
setETag(String value)An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
setId(String value)Identifier of the resource.
setRole(int value)The role assigned to the scope.
setScope(AclScope value)The scope of the rule.
toString()Returns a string which represents the object instance.
wait()
wait(long arg0)
wait(long arg0, int arg1)

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:

ParameterTypeDescription
scopeAclScopeThe scope of the rule.
roleintThe 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:

ParameterTypeDescription
idjava.lang.StringIdentifier of the resource.
scopeAclScopeThe scope of the rule.
roleintThe 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:

ParameterTypeDescription
idjava.lang.StringIdentifier of the resource.
eTagjava.lang.StringAn entity tag
scopeAclScopeThe scope of the rule.
roleintThe role assigned to the scope.

ACCESS_CONTROL_RULE_KIND

public static final String ACCESS_CONTROL_RULE_KIND

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

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getETag()

public String getETag()

An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.

Returns: java.lang.String

getId()

public String getId()

Identifier of the resource.

Returns: java.lang.String

getKind()

public String getKind()

Type of the resource

Returns: java.lang.String

getRole()

public final int getRole()

The role assigned to the scope.

Returns: int

getScope()

public final AclScope getScope()

The scope of the rule.

Returns: AclScope

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setETag(String value)

public void setETag(String value)

An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setId(String value)

public void setId(String value)

Identifier of the resource.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setRole(int value)

public final void setRole(int value)

The role assigned to the scope.

Parameters:

ParameterTypeDescription
valueint

setScope(AclScope value)

public final void setScope(AclScope value)

The scope of the rule.

Parameters:

ParameterTypeDescription
valueAclScope

toString()

public String toString()

Returns a string which represents the object instance.

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

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int