Used for access control. More...
#import <AccessControl.h>
Public Member Functions | |
| (void) | - generateAdminRequest: |
| This method is invoked whenever a peer adds/deletes (modifies) his/her policy (Obviously, on events owned by him/her) This method is also invoked when an administrator of some event receives a remote request (Validation request). | |
| (void) | - receiveAdminRequest: |
| This method is called whenever we receive an admin request from the network (other peers). | |
| (BOOL) | - integrateRemoteAdminRequest |
| This method is called by receiveAdminRequest method till we find a causally-ready request in remoteAdminRequest buffer It reallly deals with the remote admin request received from other peers. | |
| (void) | - undo: |
| This method is called in integrateAdminRequest: method when we receive restrictive admin request. | |
| (BOOL) | - shouldBeUndoneRequest:withAdminRequest: |
| This method is called when we receive a restrictive request from remote peer in method integrateRemoteAdminRequest and when we call undo: method. | |
Properties | |
| NSMutableArray * | remoteAdminRequestBuffer |
| The buffer to store remote admin requests. | |
Used for access control.
| - (void) generateAdminRequest: | (id) | adminOperation |
This method is invoked whenever a peer adds/deletes (modifies) his/her policy (Obviously, on events owned by him/her) This method is also invoked when an administrator of some event receives a remote request (Validation request).
| adminOperation | (AddAuth/DelAuth/Validate(q)) |
| - (BOOL) integrateRemoteAdminRequest |
This method is called by receiveAdminRequest method till we find a causally-ready request in remoteAdminRequest buffer It reallly deals with the remote admin request received from other peers.
| - (void) receiveAdminRequest: | (AdminRequest*) | adminRequest |
This method is called whenever we receive an admin request from the network (other peers).
It, in turn, calls integrateRemoteAdminRequest: method to really deal with that remote admin request
| adminRequest | the request received from the network |
| - (BOOL) shouldBeUndoneRequest: | (Request*) | requestFromRequestLog | |
| withAdminRequest: | (AdminRequest*) | adminRequestToBeUndone | |
This method is called when we receive a restrictive request from remote peer in method integrateRemoteAdminRequest and when we call undo: method.
It's called in undo: method just to check each and every request whether it needs to be undone or not.
| requestFromRequestLog | One request from the request log with which it checks whether it should be undone or not |
| adminRequestToBeUndone | The admin request with which to check |
| - (void) undo: | (AdminRequest*) | adminRequestToBeUndone |
This method is called in integrateAdminRequest: method when we receive restrictive admin request.
It searches for the requests which should be undone and do the needful.
| adminRequestToBeUndone | the adminRequest against which we check if there is some request which should be undone. |
- (NSMutableArray *) remoteAdminRequestBuffer [read, write, retain] |
The buffer to store remote admin requests.
1.7.2