|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.common.FrameworkResource
com.dtolabs.rundeck.core.common.FrameworkResourceParent
com.dtolabs.rundeck.core.common.FrameworkProjectMgr
public class FrameworkProjectMgr
DepotMgr is a framework resource that provides interfaces for looking up other resources such
as FrameworkType
FrameworkResourceInstance
, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.dtolabs.rundeck.core.common.FrameworkResourceParent |
---|
FrameworkResourceParent.NoSuchResourceException |
Field Summary | |
---|---|
static org.apache.log4j.Logger |
log
|
Fields inherited from class com.dtolabs.rundeck.core.common.FrameworkResource |
---|
VALID_RESOURCE_NAME_REGEX |
Method Summary | |
---|---|
static FrameworkProjectMgr |
create(java.lang.String name,
java.io.File baseDir,
Framework framework)
Factory method. |
IFrameworkResource |
createChild(java.lang.String projectName)
create a new child resource |
FrameworkProject |
createFrameworkProject(java.lang.String projectName)
Add a new project to the map. |
FrameworkProject |
createFrameworkProject(java.lang.String projectName,
java.util.Properties properties)
Add a new project to the map. |
boolean |
existsFrameworkProject(java.lang.String project)
Determines if Depot exists in framework. |
Framework |
getFramework()
Gets the instance of the framework for this resource mgr |
FrameworkProject |
getFrameworkProject(java.lang.String name)
Looks for name as an existing Depot object and returns it |
java.util.Properties |
getProperties()
|
java.util.Map |
getPropertiesMap()
Retrieves map of property data |
java.lang.String |
getProperty(java.lang.String key)
get property value |
java.io.File |
getPropertyFile()
|
boolean |
hasProperty(java.lang.String key)
checks if property value exists |
boolean |
isConfiguredObjectDeploymentsCheck(java.lang.String projectName)
Checks if objects must be registered in the resources.properties file |
java.util.Collection |
listFrameworkProjects()
returns a collection of Depot objects |
IFrameworkResource |
loadChild(java.lang.String name)
Load a specified child by name, returning null if it does not exist |
java.lang.String |
toString()
Prints internal state info for debugging purposes |
Methods inherited from class com.dtolabs.rundeck.core.common.FrameworkResourceParent |
---|
childCouldBeLoaded, existsChild, existsChildResourceDirectory, getChild, getChildren, initialize, listChildNames, listChildren, remove |
Methods inherited from class com.dtolabs.rundeck.core.common.FrameworkResource |
---|
getBaseDir, getLogger, getName, getParent, isValid, storeProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.dtolabs.rundeck.core.common.IFrameworkResourceParent |
---|
childCouldBeLoaded, existsChild, existsChildResourceDirectory, getChild, initialize, listChildNames, listChildren, remove |
Methods inherited from interface com.dtolabs.rundeck.core.common.IFrameworkResource |
---|
getBaseDir, getName, getParent, isValid |
Field Detail |
---|
public static final org.apache.log4j.Logger log
Method Detail |
---|
public static FrameworkProjectMgr create(java.lang.String name, java.io.File baseDir, Framework framework)
name
- Name of manager. informational purposesbaseDir
- Basedir where child resources liveframework
- Framework instancepublic FrameworkProject createFrameworkProject(java.lang.String projectName)
createFrameworkProject
in interface IFrameworkProjectMgr
projectName
- Name of the project
FrameworkProject
public FrameworkProject createFrameworkProject(java.lang.String projectName, java.util.Properties properties)
createFrameworkProject
in interface IFrameworkProjectMgr
projectName
- Name of the projectproperties
- additional properties to include in the project's properties filepublic java.util.Collection listFrameworkProjects()
listFrameworkProjects
in interface IFrameworkProjectMgr
public FrameworkProject getFrameworkProject(java.lang.String name)
getFrameworkProject
in interface IFrameworkProjectMgr
name
- The name of the project
public boolean existsFrameworkProject(java.lang.String project)
existsFrameworkProject
in interface IFrameworkProjectMgr
project
- The name of the project
public java.lang.String toString()
toString
in class FrameworkResource
public java.util.Properties getProperties()
public java.io.File getPropertyFile()
public IFrameworkResource createChild(java.lang.String projectName)
FrameworkResourceParent
createChild
in interface IFrameworkResourceParent
createChild
in class FrameworkResourceParent
projectName
- name of child
public IFrameworkResource loadChild(java.lang.String name)
IFrameworkResourceParent
loadChild
in interface IFrameworkResourceParent
public Framework getFramework()
IFrameworkProjectMgr
getFramework
in interface IFrameworkProjectMgr
public boolean isConfiguredObjectDeploymentsCheck(java.lang.String projectName)
isConfiguredObjectDeploymentsCheck
in interface IFrameworkProjectMgr
projectName
- Name of project to check
public java.lang.String getProperty(java.lang.String key)
getProperty
in interface PropertyRetriever
getProperty
in interface IPropertyLookup
key
- the name of the property
public boolean hasProperty(java.lang.String key)
hasProperty
in interface IPropertyLookup
key
- name of the property
public java.util.Map getPropertiesMap()
getPropertiesMap
in interface IPropertyLookup
Map
containing property key/value pair
PropertyLookupException
- thrown if loaderror
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |