Keel 2.1RC2

org.keel.apps.crud.models
Class Add

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
              extended byorg.keel.apps.crud.models.CrudBase
                  extended byorg.keel.apps.crud.models.UpdateBase
                      extended byorg.keel.apps.crud.models.Add
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable, ThreadSafe

public class Add
extends UpdateBase
implements ThreadSafe, Securable

Model to perform the Add operation (Create new record). Altered by Santanu Dutt to make this model implement the Securable lifecycle interface for authorization.

Version:
$Revision: 1.9 $ $Date: 2003/10/04 17:48:10 $
Author:
Michael Nash
See Also:
PromptAdd

Field Summary
private  AuthorizationManager am
           
 
Fields inherited from class org.keel.apps.crud.models.CrudBase
ADD, CRUD, DELETE, LIST, noPaging, prefix, PROMPT, PROMPT_ADD, PROMPT_QUERY, PROMPT_UPDATE, QUERY, SELECT_PERSISTENT, suffix, UPDATE
 
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
Add()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          All of the sub-classes of this class extend the execute method to perform their functionality.
 AuthorizationManager getAuthorizationManager()
           
 void setAuthorizationManager(AuthorizationManager newManager)
          Provide the service with a security manager.
 
Methods inherited from class org.keel.apps.crud.models.UpdateBase
showKey
 
Methods inherited from class org.keel.apps.crud.models.CrudBase
addCriteria, addParameters, countRecords, decode, getCurrentPage, getEndRecord, getFixedFields, getMasterDetail, getPageNumber, getPersistent, getPersistentName, getPrefixes, getSortFieldsParam, getStartRecord, isShowNext, isShowPrev, saveSettings, setCurrentPage, setEndRecord, setShowNext, setShowPrev, setStartRecord, showEditLink, showOptions, showUserName
 
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

am

private AuthorizationManager am
Constructor Detail

Add

public Add()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Description copied from class: CrudBase
All of the sub-classes of this class extend the execute method to perform their functionality.

Specified by:
execute in interface Model
Overrides:
execute in class CrudBase
Throws:
ModelException
See Also:
Model

setAuthorizationManager

public void setAuthorizationManager(AuthorizationManager newManager)
                             throws ServiceException
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
Overrides:
setAuthorizationManager in class SecurableStandardLogEnabledModel
Throws:
ServiceException

getAuthorizationManager

public AuthorizationManager getAuthorizationManager()
Specified by:
getAuthorizationManager in interface Securable
Overrides:
getAuthorizationManager in class SecurableStandardLogEnabledModel
See Also:
Securable.getAuthorizationManager()

Keel 2.1RC2

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