org.scrashmeow.ojb.console.service
Class UiMetaDataServiceImpl

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

public class UiMetaDataServiceImpl
extends java.lang.Object
implements UiMetaDataService

The UI MetaData service. Provides a view into the metadata that describes the repository but is specific to the user interface.

Author:
Alexander Bibighaus
See Also:
Serialized Form

Field Summary
protected  ApplicationService service
          Field service
 
Constructor Summary
UiMetaDataServiceImpl()
           
 
Method Summary
protected  ClassDescriptor findClassDescriptor(java.lang.String classId)
          Method findClassDescriptor @add-javadoc!!!
protected  FieldDescriptor findFieldDescriptor(java.lang.String classId, java.lang.String fieldId)
           
 ApplicationService getApplicationService()
          Returns the applicationService.
 java.util.Collection getBrowseableClassDescriptorIds(java.util.Collection clds)
          Method getBrowseableClassDescriptorIds @add-javadoc!!!
 java.lang.String getClassDescriptorHelp(java.lang.String classId, java.util.Locale loc)
           
 java.lang.String getClassDescriptorLabel(java.lang.String classId, java.util.Locale loc)
          Method getClassDescriptorLabel @add-javadoc!!!
 java.lang.String getFieldDescriptorLabel(java.lang.String classId, java.lang.String fieldId, java.util.Locale loc)
           
 UiDescriptorRepository getUiRepositoryDescriptor()
          Returns the uiRepositoryDescriptor.
 WidgetDescriptor getWidgetDescriptor(java.lang.String classId, java.lang.String fieldId)
          Returns the widget descriptor for the class and field id.
 void setApplicationService(ApplicationService applicationService)
          Sets the applicationService.
 void setUiRepositoryDescriptor(UiDescriptorRepository uiRepositoryDescriptor)
          Sets the uiRepositoryDescriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected ApplicationService service
Field service

Constructor Detail

UiMetaDataServiceImpl

public UiMetaDataServiceImpl()
Method Detail

getUiRepositoryDescriptor

public UiDescriptorRepository getUiRepositoryDescriptor()
Returns the uiRepositoryDescriptor.

Returns:
UiDescriptorRepository

setUiRepositoryDescriptor

public void setUiRepositoryDescriptor(UiDescriptorRepository uiRepositoryDescriptor)
Sets the uiRepositoryDescriptor.

Parameters:
uiRepositoryDescriptor - The uiRepositoryDescriptor to set

getBrowseableClassDescriptorIds

public java.util.Collection getBrowseableClassDescriptorIds(java.util.Collection clds)
                                                     throws ServiceException
Method getBrowseableClassDescriptorIds @add-javadoc!!!

Specified by:
getBrowseableClassDescriptorIds in interface UiMetaDataService
Parameters:
clds - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getClassDescriptorLabel

public java.lang.String getClassDescriptorLabel(java.lang.String classId,
                                                java.util.Locale loc)
                                         throws ServiceException
Description copied from interface: UiMetaDataService
Method getClassDescriptorLabel @add-javadoc!!!

Specified by:
getClassDescriptorLabel in interface UiMetaDataService
Parameters:
classId - @add-javadoc!!!
loc - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!
See Also:
UiMetaDataService.getClassDescriptorLabel(String, Locale)

getFieldDescriptorLabel

public java.lang.String getFieldDescriptorLabel(java.lang.String classId,
                                                java.lang.String fieldId,
                                                java.util.Locale loc)
                                         throws ServiceException
Specified by:
getFieldDescriptorLabel in interface UiMetaDataService
ServiceException

getClassDescriptorHelp

public java.lang.String getClassDescriptorHelp(java.lang.String classId,
                                               java.util.Locale loc)
                                        throws ServiceException
Parameters:
classId - @add-javadoc!!!
loc - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!
See Also:
UiMetaDataService.getClassDescriptorLabel(String, Locale)

getWidgetDescriptor

public WidgetDescriptor getWidgetDescriptor(java.lang.String classId,
                                            java.lang.String fieldId)
                                     throws ServiceException
Returns the widget descriptor for the class and field id. Returns null if not found

Specified by:
getWidgetDescriptor in interface UiMetaDataService
Parameters:
fieldId -
Returns:
Throws:
ServiceException

findClassDescriptor

protected ClassDescriptor findClassDescriptor(java.lang.String classId)
                                       throws ServiceException
Method findClassDescriptor @add-javadoc!!!

Parameters:
classId - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

findFieldDescriptor

protected FieldDescriptor findFieldDescriptor(java.lang.String classId,
                                              java.lang.String fieldId)
                                       throws ServiceException
ServiceException

getApplicationService

public ApplicationService getApplicationService()
Returns the applicationService.

Returns:
ApplicationService

setApplicationService

public void setApplicationService(ApplicationService applicationService)
Sets the applicationService.

Parameters:
applicationService - The applicationService to set


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