Keel 2.1RC2

org.keel.services.model
Class SecurableStandardLogEnabledModel

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable
Direct Known Subclasses:
AddCategory, AddChoice, AddPoll, AddQuestion, AuthorizationModel, ComponentSecurity, CreateDB, CreateDBSchema, CrudBase, DeleteCategory, DeleteChoice, DeletePoll, DeleteQuestion, DisplayConfig, FileManageModel, ListCategories, ListChoices, ListComponents, ListParticipants, ListPolls, ListQuestions, ListUsers, Lookup, OperationSecurity, PollsTaken, ProcessCategory, ProcessPollSecurity, PromptCategory, PromptCategorySecurity, PromptChoice, PromptPoll, PromptPollSecurity, PromptQuestion, PromptUpdateCategory, PromptUpdateChoice, PromptUpdatePoll, PromptUpdateQuestion, PromptUser, PromptVote, QueryUser, Results, SubmitVote, UpdateCategory, UpdateChoice, UpdatePoll, UpdateQuestion, UserComponentSecurity, UserOperationSecurity, Validate, ViewResponses

public abstract class SecurableStandardLogEnabledModel
extends StandardLogEnabledModel
implements Securable

Author:
Michael Nash Simple base class to facilitate creation of Securable models

Field Summary
private  AuthorizationManager am
           
 
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
SecurableStandardLogEnabledModel()
           
 
Method Summary
 AuthorizationManager getAuthorizationManager()
           
 void setAuthorizationManager(AuthorizationManager newAm)
          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
 
Methods inherited from interface org.keel.services.model.Model
execute
 

Field Detail

am

private AuthorizationManager am
Constructor Detail

SecurableStandardLogEnabledModel

public SecurableStandardLogEnabledModel()
Method Detail

setAuthorizationManager

public void setAuthorizationManager(AuthorizationManager newAm)
                             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
Throws:
ServiceException

getAuthorizationManager

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

Keel 2.1RC2

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