org.scrashmeow.ojb.console.service
Class ApplicationServiceActionServletImpl

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.service.ApplicationServiceActionServletImpl
All Implemented Interfaces:
ApplicationService, java.io.Serializable

public class ApplicationServiceActionServletImpl
extends java.lang.Object
implements ApplicationService

Implementation class of the ApplicationService which is the central service layer for the web application. This implementation utilizes the ActionServlet to store an instance in the application context

Author:
Alexander Bibighaus
See Also:
Serialized Form

Constructor Summary
ApplicationServiceActionServletImpl(org.apache.struts.action.ActionServlet servlet)
          Constructor for ActionApplicationService.
 
Method Summary
 org.apache.ojb.broker.metadata.ClassDescriptor getAssociatedClassDescriptor(org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Convenience method for finding a class descriptor from a url query string
 ConfigService getConfigService()
          Returns the config service which provides an abstraction for the OJBC.xml configruation model
 ConnectionService getConnectionService()
          Returns the connection service which provides an abstraction for working directly with a java.sql.Connection.
 FormService getFormService()
          Returns the form service which provides an abstraction for common http related logic
 java.lang.String getMessage(java.util.Locale loc, java.lang.String key)
          Convenience method for getting a localized message
 MetaDataService getMetaDataService()
          Returns the MetaDataService which is an abstraction above the OJB MetaData
 ObjectService getObjectService()
          Returns the object service which provides an abstraction for OJB persistence
 UiMetaDataService getUiMetaDataService()
          Returns the UI MetaData Service which provides logic for the ui_repository.xml configuration model
 UserService getUserService()
          Returns the user service which provides an abstraction for dealing with User Session objects
 void setConfigService(ConfigService configService)
          Sets the configService.
 void setConnectionService(ConnectionService connectionService)
          Sets the connectionService.
 void setFormService(FormService formService)
          Sets the formService.
 void setMetaDataService(MetaDataService metaDataService)
          Sets the metaDataService.
 void setObjectService(ObjectService objectService)
          Sets the objectService.
 void setUiMetaDataService(UiMetaDataService uiMetaDataService)
          Sets the uiMetaDataService.
 void setUserService(UserService userService)
          Sets the userService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationServiceActionServletImpl

public ApplicationServiceActionServletImpl(org.apache.struts.action.ActionServlet servlet)
Constructor for ActionApplicationService.

Parameters:
servlet - @add-javadoc!!!
Method Detail

getMessage

public java.lang.String getMessage(java.util.Locale loc,
                                   java.lang.String key)
Convenience method for getting a localized message

Specified by:
getMessage in interface ApplicationService
Parameters:
loc - a Locale value
key - a String value
Returns:
a String value
Throws:
ServiceException - if an error occurs

getAssociatedClassDescriptor

public org.apache.ojb.broker.metadata.ClassDescriptor getAssociatedClassDescriptor(org.apache.struts.action.ActionForm form,
                                                                                   HttpServletRequest request)
                                                                            throws ServiceException
Convenience method for finding a class descriptor from a url query string

Specified by:
getAssociatedClassDescriptor in interface ApplicationService
Parameters:
form - an ActionForm value
request - a HttpServletRequest value
Returns:
a ClassDescriptor value
Throws:
ServiceException - if an error occurs

getFormService

public FormService getFormService()
Returns the form service which provides an abstraction for common http related logic

Specified by:
getFormService in interface ApplicationService
Returns:
a FormService value
Throws:
ServiceException - if an error occurs

getMetaDataService

public MetaDataService getMetaDataService()
Returns the MetaDataService which is an abstraction above the OJB MetaData

Specified by:
getMetaDataService in interface ApplicationService
Returns:
a MetaDataService value
Throws:
ServiceException - if an error occurs

getObjectService

public ObjectService getObjectService()
Returns the object service which provides an abstraction for OJB persistence

Specified by:
getObjectService in interface ApplicationService
Returns:
an ObjectService value
Throws:
ServiceException - if an error occurs

getUserService

public UserService getUserService()
Returns the user service which provides an abstraction for dealing with User Session objects

Specified by:
getUserService in interface ApplicationService
Returns:
an UserService value
Throws:
ServiceException - if an error occurs

setFormService

public void setFormService(FormService formService)
Sets the formService.

Parameters:
formService - The formService to set

setMetaDataService

public void setMetaDataService(MetaDataService metaDataService)
Sets the metaDataService.

Parameters:
metaDataService - The metaDataService to set

setObjectService

public void setObjectService(ObjectService objectService)
Sets the objectService.

Parameters:
objectService - The objectService to set

setUserService

public void setUserService(UserService userService)
Sets the userService.

Parameters:
userService - The userService to set

getConfigService

public ConfigService getConfigService()
Returns the config service which provides an abstraction for the OJBC.xml configruation model

Specified by:
getConfigService in interface ApplicationService
Returns:
a ConfigService value
Throws:
ServiceException - if an error occurs

setConfigService

public void setConfigService(ConfigService configService)
Sets the configService.

Parameters:
configService - The configService to set

getUiMetaDataService

public UiMetaDataService getUiMetaDataService()
                                       throws ServiceException
Returns the UI MetaData Service which provides logic for the ui_repository.xml configuration model

Specified by:
getUiMetaDataService in interface ApplicationService
Returns:
an UiMetaDataService value
Throws:
ServiceException - if an error occurs

setUiMetaDataService

public void setUiMetaDataService(UiMetaDataService uiMetaDataService)
Sets the uiMetaDataService.

Parameters:
uiMetaDataService - The uiMetaDataService to set

getConnectionService

public ConnectionService getConnectionService()
Returns the connection service which provides an abstraction for working directly with a java.sql.Connection.

Specified by:
getConnectionService in interface ApplicationService
Returns:
a ConnectionService value
Throws:
ServiceException - if an error occurs

setConnectionService

public void setConnectionService(ConnectionService connectionService)
Sets the connectionService.

Parameters:
connectionService - The connectionService to set


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.