KiiACLEntry Class Reference
Inherits from | NSObject |
Declared in | KiiACLEntry.h |
Overview
Entry of ACL.
This KiiACLEntry is used to control permissions on an object, file or topic at a user or group level.
Properties
action
The action that is being permitted/restricted.
@property (nonatomic, assign) KiiACLAction action
Discussion
The action that is being permitted/restricted.
Possible values are defined in KiiACLAction.
See Also
Declared In
KiiACLEntry.h
grant
When TRUE, the associated action is granted (enabled). When FALSE, the action is not granted (disabled).
@property (nonatomic, assign) BOOL grant
Discussion
When TRUE, the associated action is granted (enabled). When FALSE, the action is not granted (disabled).
Declared In
KiiACLEntry.h
subject
A KiiUser, KiiGroup, KiiAnyAuthenticatedUser or KiiAnonymousUser that is being permitted/restricted.
@property (nonatomic, strong, nonnull) id subject
Discussion
A KiiUser, KiiGroup, KiiAnyAuthenticatedUser or KiiAnonymousUser that is being permitted/restricted.
Declared In
KiiACLEntry.h
Class Methods
entryWithSubject:andAction:
+ (nullable KiiACLEntry *)entryWithSubject:(nonnull id)subject andAction:(KiiACLAction)action
Parameters
- subject
A KiiUser, KiiGroup, KiiThing, KiiAnyAuthenticatedUser or KiiAnonymousUser object to which the action/grant is being applied.
- action
One of the specified KiiACLAction values the permissions is being applied to.
Return Value
A KiiACLEntry object with the specified attributes. nil if the subject is not an accepted type.
Discussion
Create a KiiACLEntry object with a subject and action
The entry will not be applied on the server until the KiiACL object is explicitly saved. This method simply returns a working KiiACLEntry with a specified subject and action.
Declared In
KiiACLEntry.h