public interface IRundeckProject extends IRundeckProjectConfig
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteFileResource(java.lang.String path) |
boolean |
existsDirResource(java.lang.String path) |
boolean |
existsFileResource(java.lang.String path) |
java.util.Date |
getConfigLastModifiedTime() |
IProjectInfo |
getInfo() |
java.lang.String |
getName() |
INodeSet |
getNodeSet()
Returns the set of nodes for the project
|
Authorization |
getProjectAuthorization() |
IProjectNodes |
getProjectNodes() |
java.util.Map<java.lang.String,java.lang.String> |
getProjectProperties() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String name) |
boolean |
hasProperty(java.lang.String key) |
java.util.List<java.lang.String> |
listDirPaths(java.lang.String path) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listResourceModelConfigurations()
list the configurations of resource model providers.
|
long |
loadFileResource(java.lang.String path,
java.io.OutputStream output)
Read a file at a path for the project
|
void |
mergeProjectProperties(java.util.Properties properties,
java.util.Set<java.lang.String> removePrefixes)
Update the project properties file by setting updating the given properties, and removing
any properties that have a prefix in the removePrefixes set
|
void |
setProjectProperties(java.util.Properties properties)
Set the project properties file contents exactly
|
long |
storeFileResource(java.lang.String path,
java.io.InputStream input)
Store a file at a path for the project
|
boolean |
updateNodesResourceFile()
Conditionally update the nodes resources file if a URL source is defined for it and return
true if the update process was invoked and succeeded
|
void |
updateNodesResourceFile(INodeSet nodeset)
Update the resources file given an input Nodes set
|
void |
updateNodesResourceFileFromUrl(java.lang.String providerURL,
java.lang.String username,
java.lang.String password)
Update the nodes resources file from a specific URL, with BASIC authentication as provided or
as defined in the URL's userInfo section.
|
java.lang.String getName()
getName in interface IRundeckProjectConfigIProjectInfo getInfo()
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listResourceModelConfigurations()
INodeSet getNodeSet() throws NodeFileParserException
INodeSetNodeFileParserException - on parse errorboolean updateNodesResourceFile()
throws UpdateUtils.UpdateException
UpdateUtils.UpdateException - if an error occurs while trying to update the resources filevoid updateNodesResourceFileFromUrl(java.lang.String providerURL,
java.lang.String username,
java.lang.String password)
throws UpdateUtils.UpdateException
providerURL - URL to retrieve resources file definitionusername - username or nullpassword - or nullUpdateUtils.UpdateException - if an error occurs during the update processvoid updateNodesResourceFile(INodeSet nodeset) throws UpdateUtils.UpdateException
nodeset - nodesUpdateUtils.UpdateException - if an error occurs while trying to update the
resources file or generate
nodesjava.lang.String getProperty(java.lang.String name)
getProperty in interface IRundeckProjectConfigname - property nameboolean hasProperty(java.lang.String key)
hasProperty in interface IRundeckProjectConfigkey - property namejava.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties in interface IRundeckProjectConfigjava.util.Map<java.lang.String,java.lang.String> getProjectProperties()
getProjectProperties in interface IRundeckProjectConfigvoid mergeProjectProperties(java.util.Properties properties,
java.util.Set<java.lang.String> removePrefixes)
properties - new properties to put in the fileremovePrefixes - prefixes of properties to remove from the filevoid setProjectProperties(java.util.Properties properties)
properties - new properties to use in the filejava.util.Date getConfigLastModifiedTime()
getConfigLastModifiedTime in interface IRundeckProjectConfigIProjectNodes getProjectNodes()
Authorization getProjectAuthorization()
boolean existsFileResource(java.lang.String path)
path - path relative to the projectboolean existsDirResource(java.lang.String path)
path - path relative to the projectjava.util.List<java.lang.String> listDirPaths(java.lang.String path)
path - path relative to the projectboolean deleteFileResource(java.lang.String path)
path - path relative to the projectlong storeFileResource(java.lang.String path,
java.io.InputStream input)
throws java.io.IOException
path - path relative to the projectinput - inputjava.io.IOException - if an IO error occurslong loadFileResource(java.lang.String path,
java.io.OutputStream output)
throws java.io.IOException
path - path relative to the projectoutput - outputjava.io.IOException - if an IO error occurs