PCKRoleable
public protocol PCKRoleable : ParseRole
Objects that conform to the PCKRoleable protocol are ParseRole‘s .
-
appendStringDefault implementationThe default string to be appended to the
name. It is expected for eachParseRoleto implement it’s ownappendString.Default Implementation
Declaration
Swift
static var appendString: String { get } -
The owner of this
ParseRole.Declaration
Swift
var owner: RoleUser? { get set } -
roleName(owner:Extension method) Creates a name for the role by using appending
appendStringto theobjectId.Declaration
Swift
static func roleName(owner: RoleUser?) throws -> StringParameters
ownerThe owner of the
ParseRole.Return Value
The concatenated
objectIdandappendString. -
create(with:Extension method) Creates a new private
ParseRolewith the owner having read/write permission.Throws
AnErrorif theParseRolecannot be created.Declaration
Swift
static func create(with owner: RoleUser) throws -> SelfParameters
withThe owner of the
ParseRole.Return Value
The new
ParseRole. -
merge(with:Extension method) Declaration
Swift
func merge(with object: Self) throws -> Self
View on GitHub
Install in Dash
PCKRoleable Protocol Reference