public class ProjectNodeSupport extends java.lang.Object implements IProjectNodes, java.io.Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ProjectNodeSupport.ProjectWriteableNodes |
IProjectNodes.ReadableProjectNodes, IProjectNodes.WriteableProjectNodes
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAMEWORK_RESOURCES_ALLOWED_URL_PREFIX |
static java.lang.String |
NODES_XML |
static java.lang.String |
PROJECT_RESOURCES_ALLOWED_URL_PREFIX |
static java.lang.String |
PROJECT_RESOURCES_FILE_PROPERTY |
static java.lang.String |
PROJECT_RESOURCES_FILEFORMAT_PROPERTY |
static java.lang.String |
PROJECT_RESOURCES_MERGE_NODE_ATTRIBUTES |
static java.lang.String |
PROJECT_RESOURCES_URL_PROPERTY |
static java.lang.String |
RESOURCES_SOURCE_PROP_PREFIX |
Constructor and Description |
---|
ProjectNodeSupport(IRundeckProjectConfig projectConfig,
ResourceFormatGeneratorService resourceFormatGeneratorService,
ResourceModelSourceService resourceModelSourceService) |
Modifier and Type | Method and Description |
---|---|
static ResourceModelSource |
asModelSource(IProjectNodes nodes) |
void |
close() |
ResourceModelSource |
createCachingSource(ResourceModelSource origin,
java.lang.String ident,
java.lang.String descr,
SourceFactory.CacheType type,
boolean logging) |
INodeSet |
getNodeSet()
Returns the set of nodes for the project
|
static java.lang.String |
getNodesResourceFilePath(IRundeckProject project,
Framework framework) |
IRundeckProjectConfig |
getProjectConfig() |
java.util.ArrayList<java.lang.Exception> |
getResourceModelSourceExceptions() |
java.util.Map<java.lang.String,java.lang.Exception> |
getResourceModelSourceExceptionsMap() |
java.util.List<IProjectNodes.ReadableProjectNodes> |
getResourceModelSources() |
java.util.Collection<IProjectNodes.WriteableProjectNodes> |
getWriteableResourceModelSources() |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listResourceModelConfigurations()
list the configurations of resource model providers.
|
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listResourceModelConfigurations(java.util.Properties props)
Return a list of resource model configuration
|
static java.util.Properties |
serializeResourceModelConfigurations(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> configs) |
public static final java.lang.String NODES_XML
public static final java.lang.String PROJECT_RESOURCES_URL_PROPERTY
public static final java.lang.String PROJECT_RESOURCES_FILE_PROPERTY
public static final java.lang.String PROJECT_RESOURCES_FILEFORMAT_PROPERTY
public static final java.lang.String RESOURCES_SOURCE_PROP_PREFIX
public static final java.lang.String PROJECT_RESOURCES_MERGE_NODE_ATTRIBUTES
public static final java.lang.String PROJECT_RESOURCES_ALLOWED_URL_PREFIX
public static final java.lang.String FRAMEWORK_RESOURCES_ALLOWED_URL_PREFIX
public ProjectNodeSupport(IRundeckProjectConfig projectConfig, ResourceFormatGeneratorService resourceFormatGeneratorService, ResourceModelSourceService resourceModelSourceService)
public INodeSet getNodeSet()
getNodeSet
in interface IProjectNodes
INodeSet
public java.util.ArrayList<java.lang.Exception> getResourceModelSourceExceptions()
getResourceModelSourceExceptions
in interface IProjectNodes
public java.util.Map<java.lang.String,java.lang.Exception> getResourceModelSourceExceptionsMap()
getResourceModelSourceExceptionsMap
in interface IProjectNodes
public java.util.List<IProjectNodes.ReadableProjectNodes> getResourceModelSources()
getResourceModelSources
in interface IProjectNodes
public java.util.Collection<IProjectNodes.WriteableProjectNodes> getWriteableResourceModelSources()
getWriteableResourceModelSources
in interface IProjectNodes
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public static ResourceModelSource asModelSource(IProjectNodes nodes)
nodes
- IProjectNodespublic ResourceModelSource createCachingSource(ResourceModelSource origin, java.lang.String ident, java.lang.String descr, SourceFactory.CacheType type, boolean logging)
logging
- origin
- origin sourceident
- unique identity for this cached source, used in filenamedescr
- description of the source, used in logginglogging
- if true, log cache accesspublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listResourceModelConfigurations()
listResourceModelConfigurations
in interface IProjectNodes
public static java.util.Properties serializeResourceModelConfigurations(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> configs)
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listResourceModelConfigurations(java.util.Properties props)
props
- propertiespublic static java.lang.String getNodesResourceFilePath(IRundeckProject project, Framework framework)
public IRundeckProjectConfig getProjectConfig()