DBSHARINGAccessInheritance

Objective-C

@interface DBSHARINGAccessInheritance : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGAccessInheritance : NSObject, DBSerializable, NSCopying

The AccessInheritance union.

Information about the inheritance policy of a shared folder.

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 “inherit”.

    Description of the “inherit” tag state: The shared folder inherits its members from the parent folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInherit;

    Swift

    init(inherit: ())

    Return Value

    An initialized instance.

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

    Description of the “no_inherit” tag state: The shared folder does not inherit its members from the parent folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNoInherit;

    Swift

    init(noInherit: ())

    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 “inherit”.

    Declaration

    Objective-C

    - (BOOL)isInherit;

    Swift

    func isInherit() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isNoInherit;

    Swift

    func isNoInherit() -> Bool

    Return Value

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

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