DBSHARINGAclUpdatePolicy

Objective-C

@interface DBSHARINGAclUpdatePolicy : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGAclUpdatePolicy : NSObject, DBSerializable, NSCopying

The AclUpdatePolicy union.

Who can change a shared folder’s access control list (ACL). In other words, who can add, remove, or change the privileges of members.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “owner”.

    Description of the “owner” tag state: Only the owner can update the ACL.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOwner;

    Swift

    init(owner: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “editors”.

    Description of the “editors” tag state: Any editor can update the ACL. This may be further restricted to editors on the same team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEditors;

    Swift

    init(editors: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “other”.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOther;

    Swift

    init(other: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “owner”.

    Declaration

    Objective-C

    - (BOOL)isOwner;

    Swift

    func isOwner() -> Bool

    Return Value

    Whether the union’s current tag state has value “owner”.

  • Retrieves whether the union’s current tag state has value “editors”.

    Declaration

    Objective-C

    - (BOOL)isEditors;

    Swift

    func isEditors() -> Bool

    Return Value

    Whether the union’s current tag state has value “editors”.

  • Retrieves whether the union’s current tag state has value “other”.

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return Value

    Whether the union’s current tag state has value “other”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.