org.keel.models.util
Class Prompt
java.lang.Object
org.keel.services.model.StandardModel
org.keel.services.model.StandardLogEnabledModel
org.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
| Fields inherited from interface org.keel.services.model.Model |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myAuthManager
private AuthorizationManager myAuthManager
-
Prompt
public Prompt()
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
-
Please see keelframework.org for information about new Keel releases.