org.apache.stanbol.entityhub.servicesapi
Interface EntityhubConfiguration


public interface EntityhubConfiguration

Provides the Configuration needed by the Entityhub.

Author:
Rupert Westenthaler

Field Summary
static java.lang.String DEFAULT_ENTITYHUB_YARD_ID
          The default ID for the Yard used for the Entityhub
static java.lang.String DEFAULT_MAPPING_STATE
          The property used to configure the initial state for new EntityMappings
static java.lang.String DEFAULT_SYMBOL_STATE
          The property used to configure the initial state for new Symbols
static java.lang.String DESCRIPTION
          The key used to configure the description of the entity hub
static java.lang.String ENTITYHUB_YARD_ID
          The property used to configure the id of the Yard used to store the data of the Entityhub
static java.lang.String FIELD_MAPPINGS
          The property used to configure the field mappings for the Entityhub
static java.lang.String ID
          The key used to configure the ID of the entity hub
static java.lang.String NAME
          The key used to configure the name of the entity hub
static java.lang.String PREFIX
          The property used to configure the prefix used for Symbols and EntityMappings created by the Entityhub
 
Method Summary
 ManagedEntityState getDefaultManagedEntityState()
          The initial (default) state for new Symbols
 MappingState getDefaultMappingState()
          The initial (default) state for new EntityMappings
 java.lang.String getDescription()
          The human readable description to provide some background information about this entity hub instance.
 java.lang.String getEntityhubPrefix()
          Getter for the Prefix to be used for all Symbols and EntityMappings created by the Entityhub
 java.lang.String getEntityhubYardId()
          This is the ID of the Yard used by the Entityhub to store its data
 java.util.Collection<java.lang.String> getFieldMappingConfig()
          Getter for the FieldMapping configuration of the Entityhub.
 java.lang.String getID()
          The ID of the Entityhub.
 java.lang.String getName()
          The human readable name of this entity hub instance.
 

Field Detail

ID

static final java.lang.String ID
The key used to configure the ID of the entity hub

See Also:
Constant Field Values

PREFIX

static final java.lang.String PREFIX
The property used to configure the prefix used for Symbols and EntityMappings created by the Entityhub

See Also:
Constant Field Values

NAME

static final java.lang.String NAME
The key used to configure the name of the entity hub

See Also:
Constant Field Values

DESCRIPTION

static final java.lang.String DESCRIPTION
The key used to configure the description of the entity hub

See Also:
Constant Field Values

ENTITYHUB_YARD_ID

static final java.lang.String ENTITYHUB_YARD_ID
The property used to configure the id of the Yard used to store the data of the Entityhub

See Also:
Constant Field Values

DEFAULT_ENTITYHUB_YARD_ID

static final java.lang.String DEFAULT_ENTITYHUB_YARD_ID
The default ID for the Yard used for the Entityhub

See Also:
Constant Field Values

FIELD_MAPPINGS

static final java.lang.String FIELD_MAPPINGS
The property used to configure the field mappings for the Entityhub

See Also:
Constant Field Values

DEFAULT_MAPPING_STATE

static final java.lang.String DEFAULT_MAPPING_STATE
The property used to configure the initial state for new EntityMappings

See Also:
Constant Field Values

DEFAULT_SYMBOL_STATE

static final java.lang.String DEFAULT_SYMBOL_STATE
The property used to configure the initial state for new Symbols

See Also:
Constant Field Values
Method Detail

getID

java.lang.String getID()
The ID of the Entityhub. This ID is used as origin (sign site) for all symbols and mapped entities created by the Entityhub

Returns:
the ID of the Entityhub

getEntityhubPrefix

java.lang.String getEntityhubPrefix()
Getter for the Prefix to be used for all Symbols and EntityMappings created by the Entityhub

Returns:
The prefix for Symbols and EntityMappings

getName

java.lang.String getName()
The human readable name of this entity hub instance. Typically used as label in addition/instead of the ID.

Returns:
the Name (or the ID in case no name is defined)

getDescription

java.lang.String getDescription()
The human readable description to provide some background information about this entity hub instance.

Returns:
the description or null if none is defined/configured.

getEntityhubYardId

java.lang.String getEntityhubYardId()
This is the ID of the Yard used by the Entityhub to store its data

Returns:
the entity hub yard id

getFieldMappingConfig

java.util.Collection<java.lang.String> getFieldMappingConfig()
Getter for the FieldMapping configuration of the Entityhub. These Mappings are used for every ReferencedSite of the Entityhub.
Note that FieldMapping#parseFieldMapping(String) is used to parsed the values returned by this Method

Returns:
the configured mappings for the Entityhub

getDefaultMappingState

MappingState getDefaultMappingState()
The initial (default) state for new EntityMappings

Returns:
the default state for new EntityMappings

getDefaultManagedEntityState

ManagedEntityState getDefaultManagedEntityState()
The initial (default) state for new Symbols

Returns:
the default state for new Symbols


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.