com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AccessControlRule



  • public class AccessControlRule
    extends BaseDataObject

    Access control rule.

    • Field Detail

      • ACCESS_CONTROL_RULE_KIND

        public static final String ACCESS_CONTROL_RULE_KIND

        Type of the resource ("calendar#calendar").

    • Constructor Detail

      • AccessControlRule

        public AccessControlRule()

        Initializes a new instance of the AccessControlRule class.

      • AccessControlRule

        public AccessControlRule(AclScope scope,
                         int role)

        Initializes a new instance of the AccessControlRule class.

        Parameters:
        scope - The scope of the rule.
        role - The role assigned to the scope.
      • AccessControlRule

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

        Initializes a new instance of the AccessControlRule class.

        Parameters:
        id - Identifier of the resource.
        scope - The scope of the rule.
        role - The role assigned to the scope.
      • AccessControlRule

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

        Initializes a new instance of the AccessControlRule class.

        Parameters:
        id - Identifier of the resource.
        eTag - An entity tag
        scope - The scope of the rule.
        role - The role assigned to the scope.
    • Method Detail

      • getScope

        public final AclScope getScope()

        The scope of the rule.

      • setScope

        public final void setScope(AclScope value)

        The scope of the rule.

      • getRole

        public final int getRole()

        The role assigned to the scope.

      • setRole

        public final void setRole(int value)

        The role assigned to the scope.

      • toString

        public String toString()

        Returns a string which represents the object instance.

        Overrides:
        toString in class Object
        Returns:
        Returns a string which represents the object instance.