lumis.doui.source
Class SourceContainer
java.lang.Object
lumis.doui.source.SourceContainer
@StableMinor(version="5.5",
sinceVersion="4.0")
public class SourceContainer
- extends Object
Class responsible for hold and initialize doui sources
- Since:
- 4.0.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.