org.ikasan.framework.web.service
Class ConfigurationManagementService

java.lang.Object
  extended by org.ikasan.framework.web.service.ConfigurationManagementService

public class ConfigurationManagementService
extends Object

Configuration Management Service for maintenance of runtime component configurations.

Author:
Ikasan Development Team

Field Summary
static String CONFIGURATION_DELETE_SYSTEM_EVENT_ACTION
          constant for logging deleted configuration
static String CONFIGURATION_INSERT_SYSTEM_EVENT_ACTION
          constant for logging new configuration
static String CONFIGURATION_UPDATE_SYSTEM_EVENT_ACTION
          constant for logging updated configuration
 
Constructor Summary
ConfigurationManagementService(ConfigurationService<ConfiguredResource,Configuration> configurationService, SystemEventService systemEventService, ModuleService moduleService)
          Constructor
 
Method Summary
 Configuration createConfiguration(String moduleName, String flowName, String flowElementName, org.springframework.webflow.execution.RequestContext context)
          Create a new configuration instance for this moduleName/flowName/flowElementName.
 void deleteConfiguration(Configuration configuration)
          Delete an existing Configuration instance.
 Configuration findConfiguration(String moduleName, String flowName, String flowElementName, org.springframework.webflow.execution.RequestContext context)
          Find the configuration instance for this moduleName/flowName/flowElementName.
protected  org.springframework.security.Authentication getAuthentication()
          Utility method for getting the authentication principal of the invoking user.
 void insertConfiguration(Configuration configuration)
          Insert a new Configuration instance.
 boolean isConfiguredResource(String moduleName, String flowName, String flowElementName)
          Is this moduleName/flowName/flowElementName referencing a component that is marked as a ConfiguredResource.
 void updateConfiguration(Configuration configuration)
          Update an existing Configuration instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_INSERT_SYSTEM_EVENT_ACTION

public static final String CONFIGURATION_INSERT_SYSTEM_EVENT_ACTION
constant for logging new configuration

See Also:
Constant Field Values

CONFIGURATION_UPDATE_SYSTEM_EVENT_ACTION

public static final String CONFIGURATION_UPDATE_SYSTEM_EVENT_ACTION
constant for logging updated configuration

See Also:
Constant Field Values

CONFIGURATION_DELETE_SYSTEM_EVENT_ACTION

public static final String CONFIGURATION_DELETE_SYSTEM_EVENT_ACTION
constant for logging deleted configuration

See Also:
Constant Field Values
Constructor Detail

ConfigurationManagementService

public ConfigurationManagementService(ConfigurationService<ConfiguredResource,Configuration> configurationService,
                                      SystemEventService systemEventService,
                                      ModuleService moduleService)
Constructor

Parameters:
configurationDao -
systemEventService -
moduleService -
Method Detail

isConfiguredResource

public boolean isConfiguredResource(String moduleName,
                                    String flowName,
                                    String flowElementName)
Is this moduleName/flowName/flowElementName referencing a component that is marked as a ConfiguredResource.

Parameters:
moduleName -
flowName -
flowElementName -
Returns:
boolean

findConfiguration

public Configuration findConfiguration(String moduleName,
                                       String flowName,
                                       String flowElementName,
                                       org.springframework.webflow.execution.RequestContext context)
Find the configuration instance for this moduleName/flowName/flowElementName. Report any issues back via the RequestContext.

Parameters:
moduleName -
flowName -
flowElementName -
context -
Returns:
Configuration

createConfiguration

public Configuration createConfiguration(String moduleName,
                                         String flowName,
                                         String flowElementName,
                                         org.springframework.webflow.execution.RequestContext context)
Create a new configuration instance for this moduleName/flowName/flowElementName. Report any issues back via the RequestContext.

Parameters:
moduleName -
flowName -
flowElementName -
context -
Returns:
Configuration

insertConfiguration

public void insertConfiguration(Configuration configuration)
Insert a new Configuration instance.

Parameters:
configuration -

updateConfiguration

public void updateConfiguration(Configuration configuration)
Update an existing Configuration instance.

Parameters:
configuration -

deleteConfiguration

public void deleteConfiguration(Configuration configuration)
Delete an existing Configuration instance.

Parameters:
configuration -

getAuthentication

protected org.springframework.security.Authentication getAuthentication()
Utility method for getting the authentication principal of the invoking user.

Returns:
Authentication


Copyright © 2007-2011 Ikasan. All Rights Reserved.