PCKRoleable
public protocol PCKRoleable : ParseRole
Objects that conform to the PCKRoleable
protocol are ParseRole
‘s .
-
appendString
Default implementationThe default string to be appended to the
name
. It is expected for eachParseRole
to 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
appendString
to theobjectId
.Declaration
Swift
static func roleName(owner: RoleUser?) throws -> String
Parameters
owner
The owner of the
ParseRole
.Return Value
The concatenated
objectId
andappendString
. -
create(with:
Extension method) Creates a new private
ParseRole
with the owner having read/write permission.Throws
AnError
if theParseRole
cannot be created.Declaration
Swift
static func create(with owner: RoleUser) throws -> Self
Parameters
with
The owner of the
ParseRole
.Return Value
The new
ParseRole
. -
merge(with:
Extension method) Declaration
Swift
func merge(with object: Self) throws -> Self