Package lumis.doui.source
Class SourceContainer
- java.lang.Object
-
- lumis.doui.source.SourceContainer
-
@StableMinor(version="14.2", sinceVersion="4.0") public class SourceContainer extends Object
Class responsible for hold and initialize doui sources- Since:
- 4.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description SourceContainer(DouiContext douiContext)
Constructor that receives a DouiContext objectSourceContainer(Node[] sourceDefinitionNodes)
Constructor that receives xml definition nodes of sources
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSource(Source source)
<S extends Source>
SgetDefaultSource()
DouiContext
getDouiContext()
<S extends Source>
SgetSourceById(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()
-
-
-
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
-
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
-
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
-
-