|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.AbstractGuiseApplication
com.guiseframework.demo.DemoApplication
public class DemoApplication
Demonstration Guise application. Copyright © 2005 GlobalMentor, Inc. Demonstrates custom Guise applications, setting application resource bundles, and custom authorization.
| Field Summary | |
|---|---|
static com.globalmentor.net.URIPath |
EDIT_USER_PANEL_NAVIGATION_PATH
The application-relative navigation path to the edit user modal panel. |
static com.globalmentor.net.URIPath |
RESTRICTED_PANEL_NAVIGATION_PATH
The application-relative navigation path to the restricted panel. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.globalmentor.net.Resource |
|---|
URI_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
DemoApplication()
Default constructor with no identifier. |
|
DemoApplication(java.net.URI uri)
URI constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateUserID()
|
protected char[] |
getPassword(java.security.Principal principal)
Looks up the corresponding password for the given principal. |
protected DemoUser |
getPrincipal(java.lang.String id)
Looks up a principal from the given ID. |
java.util.List<DemoUser> |
getUsers()
The synchronized list of application users. |
protected boolean |
isAuthorized(com.globalmentor.net.URIPath applicationPath,
java.security.Principal principal,
java.lang.String realm)
Checks whether the given principal is authorized to access the resouce at the given application path. |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final com.globalmentor.net.URIPath EDIT_USER_PANEL_NAVIGATION_PATH
public static final com.globalmentor.net.URIPath RESTRICTED_PANEL_NAVIGATION_PATH
| Constructor Detail |
|---|
public DemoApplication()
public DemoApplication(java.net.URI uri)
uri - The URI for the application, or null if there is no identifier.| Method Detail |
|---|
public java.util.List<DemoUser> getUsers()
public java.lang.String generateUserID()
protected DemoUser getPrincipal(java.lang.String id)
getPrincipal in class AbstractGuiseApplicationid - The ID of the principal.
null if no principal could be determined.protected char[] getPassword(java.security.Principal principal)
getPassword in class AbstractGuiseApplicationprincipal - The principal for which a password should be returned.
null if no password is associated with the given principal.
protected boolean isAuthorized(com.globalmentor.net.URIPath applicationPath,
java.security.Principal principal,
java.lang.String realm)
isAuthorized in class AbstractGuiseApplicationapplicationPath - The relative path of the resource requested.principal - The principal requesting authentication, or null if the principal is not known.realm - The realm with which the resource is associated, or null if the realm is not known.
true if the given principal is authorized to access the resource represented by the given application path.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||