Keel 2.1RC2

org.keel.services.mail.javamail.models
Class MailForm

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

public class MailForm
extends StandardLogEnabledModel
implements InstanceSecurable

General-purpose "mail" model. Takes all request parameters and prepare an email according to configuration, then send it with all field values.

Version:
$Revision: 1.1 $ $Date: 2004/03/07 19:55:17 $
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
MailForm()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          Send all request parameters 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

MailForm

public MailForm()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Send all request parameters according to configuration

Specified by:
execute in interface Model
Parameters:
req - The usual ModelRequest
Returns:
a ModelResponse acknowledging that the email was sent
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.