OpenAFS
OpenAFS distributed network file system
DBCellElement Class Reference

Public Member Functions

(id) - init
 init
(void) - dealloc
 dealloc
(void) - setCellName:
 setCellName Set the cel name Release the old cell name andretain the new one
(NSString *) - getCellName
 getCellName Return the cell name Return the cell name
(void) - setCellComment:
 setCellComment Set the comment of the cell Release the old cell comment and retain the new one
(NSString *) - getCellComment
 getCellComment Get the comment of the cell Get the comment of the cell
(void) - setUserDefaultForToken:
 setUserDefaultForToken Set the userde fault for tokens for the cell If this cell is a cell used by user this flag will be true, for multi cell authentication will be more cell with this flag on true.
(BOOL) - userDefaultForToken
 userDefault Return the user request for token flag
(void) - setUserDefaultCell:
 setUserDefaultCell set the user default cell state
(BOOL) - userDefaultForCell
 userDefaultForCell Return the user default cell state
(void) - addIpToCell:
 addIpToCell Add an ipcell description to this cell Add a new IpCell class to this cell to specify the server ip
(NSMutableArray *) - getIp
 getIp Return the array containing all ip for thi cell
(NSString *) - description
 description Return the description of this cell The description is the same stile used in CellServDB file(for a single cell) so calling thi method for all cell will be reconstructed the entire afs configuration file for CellSerDB
(BOOL) - isEqual:
 isEqual Compare this object with anoter of the same type Compare this object with the ine passed to the function
(BOOL) - isEqualToString:

Protected Attributes

BOOL userDefaultForToken
BOOL userDefaultCell
NSString * cellName
NSString * cellComment
NSMutableArray * ipCellList

Member Function Documentation

- (void) addIpToCell: (CellIp*)  ip

addIpToCell Add an ipcell description to this cell Add a new IpCell class to this cell to specify the server ip

Parameters:
ip- CellIP class representing the ip of one server of the cell
- (NSString *) description

description Return the description of this cell The description is the same stile used in CellServDB file(for a single cell) so calling thi method for all cell will be reconstructed the entire afs configuration file for CellSerDB

Returns:
The string description of the cell with all the ip
- (NSString *) getCellComment

getCellComment Get the comment of the cell Get the comment of the cell

Returns:
comment of the cell
- (NSString *) getCellName

getCellName Return the cell name Return the cell name

Returns:
Name of the cell
- (NSMutableArray *) getIp

getIp Return the array containing all ip for thi cell

Returns:
The array containing all the cell ip decription class
- (BOOL) isEqual: (id)  anObject

isEqual Compare this object with anoter of the same type Compare this object with the ine passed to the function

Parameters:
anObject- An object to compare with this.
Returns:
true if the two object are the same.
- (void) setCellComment: (NSString *)  comment

setCellComment Set the comment of the cell Release the old cell comment and retain the new one

Parameters:
comment- Comment of the cell
- (void) setCellName: (NSString *)  name

setCellName Set the cel name Release the old cell name andretain the new one

Parameters:
name- Name of the cell
- (void) setUserDefaultCell: (BOOL)  isDefault

setUserDefaultCell set the user default cell state

Returns:
set this cell as default user cell
- (void) setUserDefaultForToken: (BOOL)  isDefault

setUserDefaultForToken Set the userde fault for tokens for the cell If this cell is a cell used by user this flag will be true, for multi cell authentication will be more cell with this flag on true.

Parameters:
isDefault- true if the this cell is default which the user want to ge token for
- (BOOL) userDefaultForCell

userDefaultForCell Return the user default cell state

Returns:
is true if this cell is the default cell
- (BOOL) userDefaultForToken

userDefault Return the user request for token flag

Returns:
if true this cell is used to get the tokens

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