KiiAnonymousUser Class Reference
Inherits from | NSObject |
Declared in | KiiAnonymousUser.h |
Overview
Represent an anonymous user for setting the ACL of an object. This will include anyone using the application but have not signed up or authenticated as registered user.
When retrieving ACL from an object, test for this class to determine the subject type. Example:
if([acl.subject isKindOfClass:[KiiAnonymousUser class]]) {
// the ACL is set for anonymous users
}
Class Methods
aclSubject
Represent an anonymous user when setting an ACL
+ (nonnull KiiAnonymousUser *)aclSubject
Discussion
Represent an anonymous user when setting an ACL
KiiACLEntry *entryAnon = [KiiACLEntry entryWithSubject:[KiiAnonymousUser aclSubject] andAction:KiiACLFileActionRead];
entryAnon.grant = TRUE;
[objACL putACLEntry:entryAnon];
Declared In
KiiAnonymousUser.h