|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.nkernel.FeKeyMaster
A KeyMaster provides the authority, or "holds the keys", for a client`s activities on the
BackEnd. A client can have any number of different KeyMasters, each with different
authority. FeServer_login (if successful) gives you back a KeyMaster with the authority of
a single Club (along with all the Clubs of which it is a member, directly or indirectly).
This will give you appropriate authority to do anything permitted to that Club. You can
incorporate the authority of other KeyMasters into it, so that it will additionally enable
you to do anything the other KeyMasters would have enabled.
| Field Summary | |
protected IDRegion |
myActualAuthority
|
protected IDRegion |
myLoginAuthority
|
protected PrimSet |
myRegisteredWorks
|
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
FeKeyMaster(IDRegion loginAuthority,
IDRegion actualAuthority)
|
|
| Method Summary | |
IDRegion |
actualAuthority()
Essential. |
int |
actualHashForEqual()
|
static void |
assertAdminAuthority()
Blast if the CurrentKeyMaster doesn't have Admin authority. |
static void |
assertSignatureAuthority()
Blast if the CurrentKeyMaster doesn't have signature authority for the CurrentAuthor. |
static void |
assertSponsorship()
If there is a currentSponsor, then the CurrentKeyMaster must have authority for it. |
void |
authorityChanged()
Notify all my dependents of a change in authority |
FeKeyMaster |
copy()
Essential. |
boolean |
hasAuthority(ID clubID)
Whether this KeyMaster is currently holding the authority of the given Club. |
boolean |
hasSignatureAuthority(ID club)
Whether this KeyMaster has signature authority for the given Club |
void |
incorporate(FeKeyMaster other)
Essential. |
static void |
info()
{IDRegion CLIENT} actualAuthority {FeKeyMaster CLIENT} copy {BooleanVar CLIENT} hasAuthority: clubID {ID} {void CLIENT} incorporate: other {FeKeyMaster} {IDRegion CLIENT} loginAuthority {void CLIENT} removeLogins: oldLogins {IDRegion} |
boolean |
isEqual(java.lang.Object other)
|
IDRegion |
loginAuthority()
Essential. |
static Heaper |
make(ID clubID)
Make a KeyMaster initially logged in to the given Club |
static Heaper |
make(IDRegion loginAuthority,
IDRegion actualAuthority)
|
static FeKeyMaster |
makeAll(IDRegion clubIDs)
Make a KeyMaster initially logged in to the given Clubs |
static FeKeyMaster |
makePublic()
Make a KeyMaster logged in to the Universal Public Club. |
Filter |
permissionsFilter()
A filter for things which can be read by this KeyMaster |
void |
printOn(java.io.PrintWriter oo)
|
void |
registerWork(FeWork work)
Notify the Work whenever my authority changes |
void |
removeAuthority(IDRegion oldLogins)
|
void |
removeLogins(IDRegion oldLogins)
Essential. |
void |
unregisterWork(FeWork work)
Notify the Work whenever my authority changes |
void |
updateAuthority()
Recompute the actual authority of this KeyMaster based on the set of login Clubs |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IDRegion myLoginAuthority
protected IDRegion myActualAuthority
protected PrimSet myRegisteredWorks
| Constructor Detail |
public FeKeyMaster(IDRegion loginAuthority,
IDRegion actualAuthority)
| Method Detail |
public IDRegion actualAuthority()
public FeKeyMaster copy()
public boolean hasAuthority(ID clubID)
public void incorporate(FeKeyMaster other)
public IDRegion loginAuthority()
public void removeLogins(IDRegion oldLogins)
public boolean hasSignatureAuthority(ID club)
public void registerWork(FeWork work)
public void unregisterWork(FeWork work)
public void updateAuthority()
public void authorityChanged()
public void printOn(java.io.PrintWriter oo)
printOn in class Heaperpublic Filter permissionsFilter()
public void removeAuthority(IDRegion oldLogins)
public int actualHashForEqual()
actualHashForEqual in class Heaperpublic boolean isEqual(java.lang.Object other)
public static Heaper make(ID clubID)
public static FeKeyMaster makeAll(IDRegion clubIDs)
public static FeKeyMaster makePublic()
public static Heaper make(IDRegion loginAuthority,
IDRegion actualAuthority)
public static void info()
public static void assertAdminAuthority()
public static void assertSignatureAuthority()
public static void assertSponsorship()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||