Acl
public final class Acl : Object, BuilderType
extension Acl: JSONDecodable
extension Acl: Decodable
extension Acl: Encodable
extension Acl: Mappable
This class represents the ACL (Access Control List) for a record.
-
The
userId
of theUser
used to create the record.Declaration
Swift
@objc public dynamic var creator: String?
-
The
userId
of theUser
used to create the record.Declaration
Swift
public let globalRead: RealmOptional<Bool>
-
The
userId
of theUser
used to create the record.Declaration
Swift
public let globalWrite: RealmOptional<Bool>
-
Specifies the list of user _ids that are explicitly allowed to read the entity.
Declaration
Swift
public var readers: [String]? { get set }
-
Specifies the list of user _ids that are explicitly allowed to modify the entity.
Declaration
Swift
public var writers: [String]? { get set }
-
Constructs an Acl instance with the
userId
of theUser
used to create the record.Declaration
Swift
public convenience init( creator: String, globalRead: Bool? = nil, globalWrite: Bool? = nil, readers: [String]? = nil, writers: [String]? = nil )
-
Undocumented
Declaration
Swift
public class func decode<T>(from data: Data) throws -> T where T : JSONDecodable
-
Undocumented
Declaration
Swift
public class func decodeArray<T>(from data: Data) throws -> [T] where T : JSONDecodable
-
Undocumented
Declaration
Swift
public class func decode<T>(from dictionary: [String : Any]) throws -> T where T : JSONDecodable
-
Undocumented
Declaration
Swift
public func refresh(from dictionary: [String : Any]) throws
-
Declaration
Swift
public convenience init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Constructor that validates if the map contains at least the creator.
Declaration
Swift
public convenience init?(map: Map)
-
This function is where all variable mappings should occur. It is executed by Mapper during the mapping (serialization and deserialization) process.
Declaration
Swift
public func mapping(map: Map)
-
Property names for Acl
Declaration
Swift
@available(*, deprecated, message: "Deprecated in version 3.17.0. Please use Acl.CodingKeys instead") public struct Key
-
Property names for Acl
See moreDeclaration
Swift
public enum CodingKeys : String, CodingKey