Keel 2.1RC2

org.keel.models.util
Class Prompt

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.models.util.Prompt
All Implemented Interfaces:
Configurable, InstanceSecurable, LogEnabled, Model, Securable

public class Prompt
extends StandardLogEnabledModel
implements InstanceSecurable

General-purpose "prompt" model. Reads fields to prompt for from it's configuration.

Version:
$Revision: 1.1 $ $Date: 2004/03/07 19:38:56 $
Author:
Michael Nash

Field Summary
private  AuthorizationManager myAuthManager
           
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
Prompt()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          Prepare a prompt response according to configuration
 AuthorizationManager getAuthorizationManager()
           
 java.lang.String getInstanceIdentifier()
          Return an identifying string.
 void setAuthorizationManager(AuthorizationManager newAuth)
          Provide the service with a security manager.
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myAuthManager

private AuthorizationManager myAuthManager
Constructor Detail

Prompt

public Prompt()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Prepare a prompt response according to configuration

Specified by:
execute in interface Model
Parameters:
req - The usual ModelRequest
Returns:
a ModelResponse populated with the appropriate Input objects
Throws:
ModelException - If the model is not configured correctly

getInstanceIdentifier

public java.lang.String getInstanceIdentifier()
Description copied from interface: InstanceSecurable
Return an identifying string. This string is used to determine which instance of the Securable class we're dealing with when looking up authorizations.

Specified by:
getInstanceIdentifier in interface InstanceSecurable

getAuthorizationManager

public AuthorizationManager getAuthorizationManager()
Specified by:
getAuthorizationManager in interface Securable

setAuthorizationManager

public void setAuthorizationManager(AuthorizationManager newAuth)
Description copied from interface: Securable
Provide the service with a security manager. This security manager is used whenever a service needs to determine if the current principal is allowed to perform the requested operation. All instances of the same Securable service will have the same authorizations - if you need per- instance authorization, see InstanceSecurable.

Specified by:
setAuthorizationManager in interface Securable

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.