Libraries anvil net Tribe

class Tribe
extends anvil.lang.object

Methods

void addPermission(permission)
Adds permission to tribe's security policy. You may have to call commit() for the tribe to save modification to persistent store (depenging on realm implementation)
Throws OperationFailed -  If error occured file saving to persistent

void attach(tribe, ..)
void attach(citizen, ..)
Attaches given citizens and tribes into this tribe.
Throws AccessDenied -  If security policy denies this operation

boolean commit()
Commits the changes made to this tribe.
Throws OperationFailed -  If operation failed
AccessDenied -  If security policy denies this operation

void detach(tribe, ..)
void detach(citizen, ..)
Detaches citizens or tribes from this tribe.
Throws AccessDenied -  If security policy denies this operation

Tribe find(int identity)
Recursively searches for tribe with given identity.

list getChilds()
Returns a list of children tribes.

list getCitizens()
Returns a list of citizens belonging to this tribe.
Throws AccessDenied -  If security policy denies this operation

iterator getCombinedPermissions()
Returns permissions that this tribe has (including permissions inherited from groups).
Throws AccessDenied -  If security policy denies this operation

int getIdentity()
Returns identity (memoery address) for this tribe.

string getName()
Returns the name of this tribe.

list getParents()
Returns a list of parent tribes.

iterator getPermissions()
Returns permissions that this tribe has.
Throws AccessDenied -  If security policy denies this operation

Realm getRealm()
Returns the realm into which this tribe belongs to.
Throws AccessDenied -  If security policy denies this operation

boolean hasChilds()
Checks if this tribe has children tribes.

iterator listPermissions()
Returns iterator of permissions held by this tribe.

void remove()
Removes this tribe.
Throws AccessDenied -  If security policy denies this operation

void removePermission(permission)
Removes permission from tribe's security policy. You may have to call commit() for the tribe to save modification to persistent store (depenging on realm implementation)
Throws OperationFailed -  If error occured file removing from persistent