lumis.content.table
Class ContentTableSource

Package class diagram package ContentTableSource
java.lang.Object
  extended by java.util.Observable
      extended by lumis.doui.source.Source<F>
          extended by lumis.doui.source.TabularSource<ITableSourceField>
              extended by lumis.doui.table.TableSource
                  extended by lumis.content.table.ContentTableSource
All Implemented Interfaces:
Comparator<ISourceData>

@StableMinor(version="4.1",
             sinceVersion="4.0")
public class ContentTableSource
extends TableSource

This source implementation adds content functionalities to the TableSource it extends.

Since:
4.0.0

Field Summary
 
Fields inherited from class lumis.doui.source.TabularSource
primaryKeySourceField, searchableSourceFields, tabularData
 
Fields inherited from class lumis.doui.source.Source
administrationInterfaceId, connectionId, fields, fieldsMap, id, introductionSourceField, load, metaDataSourceId, parameters, primaryNameSourceField, readData, SOURCE_READ_DATA_ALWAYS, SOURCE_READ_DATA_NEVER, SOURCE_READ_DATA_ON_DEMAND, sourceContext, sourceDefinitionNode
 
Constructor Summary
ContentTableSource(Node sourceDefinitionNode, ISourceContext sourceContext)
          Creates a content table source.
 
Method Summary
protected  ITableSourceField createSourceField(Node fieldNode)
          Factory method for creating a source field instance that corresponds to the field node given.
protected  String getDefaultProviderClass()
          Returns data provider class for the source.
protected  String getDefaultSourceSearchContentFillerClassName()
          Returns the default source search content search filler class name.
 DouiHyperlinkItemParameterField getDouiHyperlinkItemParameterField()
          Returns the information about the field that is associated with the item id page parameter.
 MetaDataSourceField getField(MetaDataSourceField.Type type)
          Returns the filed based on the metadata type passed in.
 String getReindexerTabularDataProcessorClassName()
          Returns the class name of the reindexer for this source
 WorkflowConfig getWorkflowConfig()
          Returns the workflow associated with this source.
protected  boolean isAdministrationInterface(IServiceInterface serviceInterface)
          Returns true if the given service interface is the main administration interface for this source.
 boolean isWorkflowSupported()
          Verifies if the current source supports a workflow.
 
Methods inherited from class lumis.doui.table.TableSource
createDefaultCompositeFilterInstance, createDefaultFilterInstance, createSourceFilter, getFilter, getTableName, readData, readData
 
Methods inherited from class lumis.doui.source.TabularSource
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, getData, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getIndexerEngineId, getIndexerId, getMaxRows, getPrimaryKeyField, getSearchableFields, getSearcherEngineId, getSearcherId, getSortedFieldIds, getSourceSearchContentFillerClassName, getStartAt, hasField, isSearchEnabled, readFieldsIntoFieldsMap, setData, setMaxRows, setStartAt
 
Methods inherited from class lumis.doui.source.Source
createCustomSourceField, getAdministrationInterfaceId, getDataProvider, getDefinitionNode, getDistinct, getDouiContext, getField, getFields, getFiltersNode, getId, getIntroductionField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getReadData, getSourceContainer, getSourceContext, getTransaction, load, postProcessSource, setLoad, setParameterValue, setReadData, valueChanged
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ContentTableSource

public ContentTableSource(Node sourceDefinitionNode,
                          ISourceContext sourceContext)
                   throws PortalException
Creates a content table source.

Parameters:
sourceDefinitionNode - the source definition node.
sourceContext - the source context.
Throws:
PortalException
Since:
4.0.4
Method Detail

isAdministrationInterface

protected boolean isAdministrationInterface(IServiceInterface serviceInterface)
Returns true if the given service interface is the main administration interface for this source.

Overrides:
isAdministrationInterface in class Source<ITableSourceField>
Parameters:
serviceInterface - the service interface.
Returns:
true if the given service interface is the main administration interface for this source, false otherwise.
Since:
4.0.6

getDefaultProviderClass

protected String getDefaultProviderClass()
                                  throws PortalException
Description copied from class: TabularSource
Returns data provider class for the source. Always throws an exceptions since this source does not have a default provider class.

Overrides:
getDefaultProviderClass in class TableSource
Returns:
Throws:
PortalException

getWorkflowConfig

public WorkflowConfig getWorkflowConfig()
                                 throws PortalException
Returns the workflow associated with this source.

Returns:
the workflow associated with this source, or null if this source has no workflow.
Throws:
PortalException
Since:
4.0.7

isWorkflowSupported

public boolean isWorkflowSupported()
                            throws PortalException
Verifies if the current source supports a workflow.

Returns:
true if the source supports, false otherwise.
Throws:
PortalException
Since:
4.0.8

createSourceField

protected ITableSourceField createSourceField(Node fieldNode)
                                       throws PortalException
Description copied from class: Source
Factory method for creating a source field instance that corresponds to the field node given. This method instantiate and returns the source field, without initializing it.

Overrides:
createSourceField in class TableSource
Parameters:
fieldNode - the field node.
Returns:
the ISourceField created, or null if no field should be created for this node.
Throws:
PortalException
See Also:
Source.createCustomSourceField(Node)

getDouiHyperlinkItemParameterField

public DouiHyperlinkItemParameterField getDouiHyperlinkItemParameterField()
Description copied from class: Source
Returns the information about the field that is associated with the item id page parameter.

Overrides:
getDouiHyperlinkItemParameterField in class TabularSource<ITableSourceField>
Returns:
the information about the field that is associated with the item id page parameter.
See Also:
PageConfig.PAGE_PARAMETER_ITEMID, DouiHyperlinkItemParameterField

getField

public MetaDataSourceField getField(MetaDataSourceField.Type type)
Returns the filed based on the metadata type passed in.

Parameters:
type -
Returns:
Since:
4.0.11

getDefaultSourceSearchContentFillerClassName

protected String getDefaultSourceSearchContentFillerClassName()
Description copied from class: TabularSource
Returns the default source search content search filler class name.

The default value defined in this class is lumis.doui.search.DouiTabularSourceSearchContentFiller.

Overrides:
getDefaultSourceSearchContentFillerClassName in class TabularSource<ITableSourceField>
Returns:

getReindexerTabularDataProcessorClassName

public String getReindexerTabularDataProcessorClassName()
Description copied from class: TabularSource
Returns the class name of the reindexer for this source

Overrides:
getReindexerTabularDataProcessorClassName in class TabularSource<ITableSourceField>
Returns:


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.