org.scrashmeow.ojb.console.service
Interface ApplicationService

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ApplicationServiceActionServletImpl

public interface ApplicationService
extends java.io.Serializable

Central interface into the Service Layer of the web application

Author:
Alexander Bibighaus

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
 

Method Detail

getObjectService

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

Returns:
an ObjectService value
Throws:
ServiceException - if an error occurs

getMetaDataService

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

Returns:
a MetaDataService value
Throws:
ServiceException - if an error occurs

getUserService

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

Returns:
an UserService value
Throws:
ServiceException - if an error occurs

getConfigService

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

Returns:
a ConfigService value
Throws:
ServiceException - if an error occurs

getFormService

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

Returns:
a FormService value
Throws:
ServiceException - if an error occurs

getConnectionService

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

Returns:
a ConnectionService value
Throws:
ServiceException - if an error occurs

getMessage

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

Parameters:
loc - a Locale value
key - a String value
Returns:
a String value
Throws:
ServiceException - if an error occurs

getUiMetaDataService

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

Returns:
an UiMetaDataService 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

ServiceException


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