class: DataSourceHandlerBean

public class: DataSourceHandlerBean
Author: kleinfe1
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:16:17; Modified: 16.07.2009 15:16:17;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {41841B50-34D4-4109-A337-0A13FAB1F368}
This class handles the import function from external sources.
 

Goto: Custom Properties, Fields, Methods

See also: UnapiServlet, DataHandlerBean, ThirdPartyTransformation

Appears in: dataacquisition

Connections
 
Custom Properties
 
DataSourceHandlerBean Attributes
Attribute Details
private static const Logger
  LOGGER
Initial: Logger.getLogger(DataHandlerBean.class)
private ImportSourcesDocument
  sourceDoc
Initial: null
private ImportSourcesType
  sourceType
Initial: null
private const String
  sourceXmlPath
Initial: "resources/sources.xml"
private ThirdPartyTransformation
  thirdPartyTransformer
Initial: null
private String
  transformationFormat
Initial: null
 
DataSourceHandlerBean Methods
Operation Details
public
DataSourceHandlerBean():
Sequential
Notes: Public constructor for DataSourceHandlerBean class.
public
getDefaultMdFormatFromSource(
   DataSourceVO source):MetadataVO
Sequential
Notes: Returns the default MetadataVO from a source.
@return MetadataVO
public
getMdObjectfromSource(
   DataSourceVO source,
   String format):MetadataVO
Sequential
Notes: This operation returns the metadata informations to fetch. If no format from was specified the default metadata informations are fetched
@return metadata informations
public
getSourceByIdentifier(
   String id):DataSourceVO
Sequential
Tags: throws=RuntimeException
Notes: Returns a specific source.
@return corresponding source
public
getSourceByName(
   String name):DataSourceVO
Sequential
Tags: throws=RuntimeException
Notes: Returns a specific source.
@return corresponding source
public
getSourceNameByIdentifier(
   String id):String
Sequential
Tags: throws=RuntimeException
Notes: Returns a source name.
@return corresponding source name
public
getSources():Vector
Sequential
Tags: throws=RuntimeException
Notes: Returns all available Sources.
@return Vector of DataSourceVO
public
getSources(
   String format):Vector
Sequential
Tags: throws=RuntimeException
Notes: Gets all Sources for a specific format.
@return DataSourceVO
public
printSourceXML(
   DataSourceVO source):void
Sequential
Notes: Print out source values for debug purpose.
private
simpleLiteralTostring(
   SimpleLiteral sl):String
Sequential
public
updateMdEntry(
   DataSourceVO source,
   MetadataVO md):DataSourceVO
Sequential
Notes: This operation updates a metadata information set of the importSource.
@return ImportSourceVO with updated metadata informations