|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The context factory is the basic class of all JWeb applicatrions. This singleton class is the one and only capaböe of registereing and loading application contexts. If you want to load an application it must be registered to this component.
| Method Summary | |
ITicket |
createContext(org.jdom.Element configuration)
Create a context from the given configuration |
ITicket[] |
createContexts(org.jdom.Element configuration)
Creates several contexts from the given configuration. |
java.lang.String[] |
getContextNames()
Return the names of all defined contexts. |
ITicket |
login(java.lang.String user,
java.lang.String pwd,
java.lang.String context)
login for the given user (ticket) returns the context for this user. |
IContext |
removeContext(java.lang.String name,
ITicket ticket)
This method removes a context. |
| Method Detail |
public ITicket login(java.lang.String user,
java.lang.String pwd,
java.lang.String context)
throws InvalidContextException,
java.lang.SecurityException
user - The user's idpwd - The user's passwordcontext - The target context where this user want to get access topublic java.lang.String[] getContextNames()
public ITicket createContext(org.jdom.Element configuration)
throws ConfigurationException,
java.lang.SecurityException
configuration - the configuration containing one contextConfigurationException - If the configuration of the context failedjava.lang.SecurityException - If the context could not be established, e.g. another
context with the same name is running yet.
public ITicket[] createContexts(org.jdom.Element configuration)
throws ConfigurationException,
java.lang.SecurityException
configuration - the configuration containing a list of contextsConfigurationException - If the configuration of a context failedjava.lang.SecurityException - If a context could not be established, e.g. another
context with the same name is running yet.
public IContext removeContext(java.lang.String name,
ITicket ticket)
throws InvalidContextException,
java.lang.SecurityException
ticket - The securityTicketInvalidContextException - The context of the ticket was not found, e.g. was removed yet.java.lang.SecurityException - The context did not allow the user to remove it..
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||