lumis.doui.source
Class SourceContainer

Package class diagram package SourceContainer
java.lang.Object
  extended by lumis.doui.source.SourceContainer

@StableMinor(version="6.2",
             sinceVersion="4.0")
public class SourceContainer
extends Object

Class responsible for hold and initialize doui sources

Since:
4.0.0

Field Summary
protected  Source defaultSource
           
protected  DouiContext douiContext
           
static String NO_SOURCE
           
protected  SourceContext sourceContext
           
protected  Node[] sourceDefinitionNodes
           
protected  Map<String,Source> sourcesById
           
protected  ArrayList<String> sourcesIdArray
           
 
Constructor Summary
SourceContainer(DouiContext douiContext)
          Constructor that receives a DouiContext object
SourceContainer(Node[] sourceDefinitionNodes)
          Constructor that receives xml definition nodes of sources
 
Method Summary
 void addSource(Source source)
           
<S extends Source>
S
getDefaultSource()
           
 DouiContext getDouiContext()
           
<S extends Source>
S
getSourceById(String id)
           
 SourceContext getSourceContext()
           
 Map<String,Source> getSourcesMap()
          Returns the map with the sources in this source container.
 void init()
           
 void loadSources()
           
protected  void loadSourcesRecursively()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_SOURCE

public static final String NO_SOURCE
See Also:
Constant Field Values

douiContext

protected final DouiContext douiContext

sourceContext

protected final SourceContext sourceContext

sourcesById

protected final Map<String,Source> sourcesById

sourcesIdArray

protected final ArrayList<String> sourcesIdArray

defaultSource

protected Source defaultSource

sourceDefinitionNodes

protected Node[] sourceDefinitionNodes
Constructor Detail

SourceContainer

public SourceContainer(Node[] sourceDefinitionNodes)
Constructor that receives xml definition nodes of sources

Since:
4.0.6

SourceContainer

public SourceContainer(DouiContext douiContext)
Constructor that receives a DouiContext object

Since:
4.0.0
Method Detail

init

public void init()
          throws PortalException
Throws:
PortalException

addSource

public void addSource(Source source)
               throws PortalException
Throws:
PortalException

getSourceById

public <S extends Source> S getSourceById(String id)

getDefaultSource

public <S extends Source> S getDefaultSource()

getSourceContext

public SourceContext getSourceContext()

getDouiContext

public DouiContext getDouiContext()

loadSources

public void loadSources()
                 throws PortalException
Throws:
PortalException

loadSourcesRecursively

protected void loadSourcesRecursively()
                               throws PortalException
Throws:
PortalException

getSourcesMap

public Map<String,Source> getSourcesMap()
Returns the map with the sources in this source container. The key of the map is the id of the source, and the value is the source instance.

Returns:
the map with the sources in this source container.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.