Public Member Functions | Properties

AccessControl Class Reference

Used for access control. More...

#import <AccessControl.h>

List of all members.

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.

Detailed Description

Used for access control.


Member Function Documentation

- (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).

Parameters:
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.

Returns:
Boolean value corresponding to the fact that causally-ready request found or not
- (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

Parameters:
adminRequestthe 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.

Parameters:
requestFromRequestLogOne request from the request log with which it checks whether it should be undone or not
adminRequestToBeUndoneThe admin request with which to check
Returns:
YES if it should be undone or NO if it should not be undone
- (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.

Parameters:
adminRequestToBeUndonethe adminRequest against which we check if there is some request which should be undone.

Property Documentation

- (NSMutableArray *) remoteAdminRequestBuffer [read, write, retain]

The buffer to store remote admin requests.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties