anvil.server.simple
Class SimpleTribe

java.lang.Object
  |
  +--anvil.server.simple.SimpleTribe
All Implemented Interfaces:
Entity, Namespace, Tribe

public class SimpleTribe
extends java.lang.Object
implements Tribe

interface SimpleTribe


Constructor Summary
SimpleTribe(SimpleRealm realm, java.lang.String name)
           
 
Method Summary
 void addPermission(java.security.Permission perm)
           
 void attach(Citizen citizen)
           
 void attach(Tribe tribe)
           
 Any checkVariable(java.lang.String name)
           
 void commit()
           
 boolean deleteVariable(java.lang.String name)
           
 void detach(Citizen citizen)
           
 void detach(Tribe tribe)
           
 Tribe[] getChilds()
           
 Citizen[] getCitizens()
           
 java.security.PermissionCollection getCombinedPermissions()
           
 java.lang.String getName()
           
 Tribe[] getParents()
           
 java.security.PermissionCollection getPermissions()
           
 Realm getRealm()
           
 Any getVariable(java.lang.String name)
           
 BindingIterator getVariables()
           
 boolean hasChilds()
           
 java.util.Iterator listPermissions()
           
 void remove()
           
 void removePermission(java.security.Permission perm)
           
 Any setVariable(java.lang.String name, Any value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleTribe

public SimpleTribe(SimpleRealm realm,
                   java.lang.String name)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

attach

public void attach(Citizen citizen)
Specified by:
attach in interface Tribe

attach

public void attach(Tribe tribe)
Specified by:
attach in interface Tribe

detach

public void detach(Citizen citizen)
Specified by:
detach in interface Tribe

detach

public void detach(Tribe tribe)
Specified by:
detach in interface Tribe

getVariables

public BindingIterator getVariables()
Specified by:
getVariables in interface Namespace

setVariable

public Any setVariable(java.lang.String name,
                       Any value)
Specified by:
setVariable in interface Namespace

getVariable

public Any getVariable(java.lang.String name)
Specified by:
getVariable in interface Namespace

checkVariable

public Any checkVariable(java.lang.String name)
Specified by:
checkVariable in interface Namespace

deleteVariable

public boolean deleteVariable(java.lang.String name)
Specified by:
deleteVariable in interface Namespace

getRealm

public Realm getRealm()
Specified by:
getRealm in interface Entity

getParents

public Tribe[] getParents()
Specified by:
getParents in interface Entity

hasChilds

public boolean hasChilds()
Specified by:
hasChilds in interface Tribe

getChilds

public Tribe[] getChilds()
Specified by:
getChilds in interface Tribe

getCitizens

public Citizen[] getCitizens()
Specified by:
getCitizens in interface Tribe

getName

public java.lang.String getName()
Specified by:
getName in interface Entity

remove

public void remove()
Specified by:
remove in interface Tribe

getPermissions

public java.security.PermissionCollection getPermissions()
Specified by:
getPermissions in interface Entity

getCombinedPermissions

public java.security.PermissionCollection getCombinedPermissions()
Specified by:
getCombinedPermissions in interface Entity

addPermission

public void addPermission(java.security.Permission perm)
Specified by:
addPermission in interface Entity

removePermission

public void removePermission(java.security.Permission perm)
Specified by:
removePermission in interface Entity

listPermissions

public java.util.Iterator listPermissions()
Specified by:
listPermissions in interface Entity

commit

public void commit()
Specified by:
commit in interface Entity