|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridlab.gat.GATContext
public class GATContext
An instance of this class is the primary GAT state object.
| Constructor Summary | |
|---|---|
GATContext()
This no arguments constructor creates an instance of a GATContext. |
|
| Method Summary | |
|---|---|
void |
addPreference(String key,
Object value)
Adds a single preference to the GATContext which will be used to
choose between adaptors if the constructor of an object is not called
with a Preferences object. |
void |
addPreferences(Preferences newPreferences)
Adds a Preferences object to the GATContext which will be
used to choose between adaptors if the constructor of an object is not
called with a Preferences object. |
void |
addSecurityContext(SecurityContext securityContext)
Adds the passed SecurityContext. |
Object |
clone()
Returns a clone of this GATContext. |
boolean |
equals(Object o)
|
Preferences |
getPreferences()
Returns the Preferences object associated with the
GATContext. |
List<SecurityContext> |
getSecurityContexts()
Gets the list of SecurityContexts associated with this
GATContext. |
List<SecurityContext> |
getSecurityContextsByType(String type)
Gets a list of SecurityContexts of the specified type associated
with this GATContext. |
int |
hashCode()
|
void |
removePreferences()
Removes the Preferences object associated with the
GATContext. |
void |
removeSecurityContext(SecurityContext securityContext)
Removes the passed SecurityContext. |
void |
removeSecurityContexts()
Remove all the SecurityContexts associated
with this GATContext. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GATContext()
| Method Detail |
|---|
public void addSecurityContext(SecurityContext securityContext)
SecurityContext.
securityContext - A SecurityContext.public void removeSecurityContext(SecurityContext securityContext)
SecurityContext.
securityContext - A SecurityContext.public List<SecurityContext> getSecurityContexts()
SecurityContexts associated with this
GATContext.
List of SecurityContexts.public List<SecurityContext> getSecurityContextsByType(String type)
SecurityContexts of the specified type associated
with this GATContext.
type - A SecurityContext type, a String,
e.g., org.gridlab.gat.security.PasswordSecurityContext;
List of SecurityContexts.public void removeSecurityContexts()
SecurityContexts associated
with this GATContext.
public void addPreferences(Preferences newPreferences)
Preferences object to the GATContext which will be
used to choose between adaptors if the constructor of an object is not
called with a Preferences object. Only one such object may be
associated with the GATContext at any one time.
newPreferences - A Preferences object.
public void addPreference(String key,
Object value)
GATContext which will be used to
choose between adaptors if the constructor of an object is not called
with a Preferences object.
key - The key of the single preferencevalue - The value that belongs to the key of the single preferencepublic void removePreferences()
Preferences object associated with the
GATContext.
public Preferences getPreferences()
Preferences object associated with the
GATContext.
Preferences objectpublic Object clone()
GATContext.
clone in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||