public interface IRundeckProject
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() |
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()
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listResourceModelConfigurations()
INodeSet getNodeSet() throws NodeFileParserException
INodeSet
NodeFileParserException
- 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)
name
- property nameboolean hasProperty(java.lang.String key)
java.util.Map<java.lang.String,java.lang.String> getProperties()
java.util.Map<java.lang.String,java.lang.String> getProjectProperties()
void 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()
IProjectNodes 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