public class FrameworkBase extends java.lang.Object implements IFramework
FrameworkProjectMgr, Authorization.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FRAMEWORK_GLOBALS_PROP |
static org.apache.log4j.Logger |
logger |
static java.lang.String |
NODES_RESOURCES_FILE_PROP |
static java.lang.String |
PROJECT_GLOBALS_PROP |
static Attribute |
RUNDECK_APP_CONTEXT
Environmental attribute for the rundeck app
|
static java.util.Set<Attribute> |
RUNDECK_APP_ENV
the rundeck app environment for authorization
|
public static final org.apache.log4j.Logger logger
public static final java.lang.String NODES_RESOURCES_FILE_PROP
public static final java.lang.String FRAMEWORK_GLOBALS_PROP
public static final java.lang.String PROJECT_GLOBALS_PROP
public static final Attribute RUNDECK_APP_CONTEXT
public static final java.util.Set<Attribute> RUNDECK_APP_ENV
public ProjectManager getFrameworkProjectMgr()
getFrameworkProjectMgr in interface IFrameworkpublic FrameworkSupportService getService(java.lang.String name)
getService in interface IFrameworkServicesname - service namepublic void setService(java.lang.String name,
FrameworkSupportService service)
IFrameworkServicessetService in interface IFrameworkServicesname - nameservice - servicepublic ExecutionService getExecutionService()
getExecutionService in interface IFrameworkServicespublic OrchestratorService getOrchestratorService()
getOrchestratorService in interface IFrameworkServicespublic WorkflowExecutionService getWorkflowExecutionService()
getWorkflowExecutionService in interface IFrameworkServicespublic WorkflowStrategyService getWorkflowStrategyService()
getWorkflowStrategyService in interface IFrameworkServicespublic StepExecutionService getStepExecutionService()
getStepExecutionService in interface IFrameworkServicespublic FileCopier getFileCopierForNodeAndProject(INodeEntry node, java.lang.String project) throws ExecutionServiceException
getFileCopierForNodeAndProject in interface IFrameworkServicesExecutionServiceExceptionpublic FileCopierService getFileCopierService()
getFileCopierService in interface IFrameworkServicespublic NodeExecutor getNodeExecutorForNodeAndProject(INodeEntry node, java.lang.String project) throws ExecutionServiceException
getNodeExecutorForNodeAndProject in interface IFrameworkServicesExecutionServiceExceptionpublic NodeExecutorService getNodeExecutorService() throws ExecutionServiceException
getNodeExecutorService in interface IFrameworkServicesExecutionServiceExceptionpublic NodeStepExecutionService getNodeStepExecutorService() throws ExecutionServiceException
getNodeStepExecutorService in interface IFrameworkServicesExecutionServiceExceptionpublic NodeStepExecutor getNodeStepExecutorForItem(NodeStepExecutionItem item) throws ExecutionServiceException
getNodeStepExecutorForItem in interface IFrameworkServicesExecutionServiceExceptionpublic NodeDispatcher getNodeDispatcherForContext(ExecutionContext context) throws ExecutionServiceException
getNodeDispatcherForContext in interface IFrameworkServicesExecutionServiceExceptionpublic ResourceModelSourceService getResourceModelSourceService()
getResourceModelSourceService in interface IFrameworkServicespublic ResourceFormatParserService getResourceFormatParserService()
getResourceFormatParserService in interface IFrameworkServicespublic ResourceFormatGeneratorService getResourceFormatGeneratorService()
getResourceFormatGeneratorService in interface IFrameworkServicespublic ServiceProviderLoader getPluginManager()
getPluginManager in interface IFrameworkServicespublic static PropertyRetriever createPropertyRetriever(java.io.File basedir)
public static Framework getInstance(java.lang.String basedir, java.lang.String projectsdir)
public java.lang.String getProperty(java.lang.String name)
name - Property keypublic PropertyRetriever getPropertyRetriever()
public boolean hasProperty(java.lang.String key)
key - property keypublic boolean hasProjectProperty(java.lang.String key,
java.lang.String project)
project - projectkey - property namepublic java.lang.String getProjectProperty(java.lang.String project,
java.lang.String key)
project - projectkey - property namepublic java.util.Map<java.lang.String,java.lang.String> getProjectGlobals(java.lang.String project)
project - The project identifier.public IPropertyLookup getPropertyLookup()
getPropertyLookup in interface IFrameworkpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getFrameworkNodeHostname()
IFrameworkgetFrameworkNodeHostname in interface IFrameworkgetFrameworkNodeHostname in interface IFrameworkNodespublic java.lang.String getFrameworkNodeName()
IFrameworkgetFrameworkNodeName in interface IFrameworkgetFrameworkNodeName in interface IFrameworkNodespublic NodeEntryImpl createFrameworkNode()
createFrameworkNode in interface IFrameworkcreateFrameworkNode in interface IFrameworkNodespublic INodeSet filterAuthorizedNodes(java.lang.String project, java.util.Set<java.lang.String> actions, INodeSet unfiltered, AuthContext authContext)
filterAuthorizedNodes in interface IFrameworkfilterAuthorizedNodes in interface IFrameworkNodesproject - project nameactions - action setunfiltered - nodesauthContext - authoriziationpublic INodeDesc getNodeDesc()
IFrameworkINodeDesc value describing the framework nodegetNodeDesc in interface IFrameworkgetNodeDesc in interface IFrameworkNodesINodeDesc object for this framework instancepublic boolean isLocalNode(INodeDesc node)
IFrameworkisLocalNode in interface IFrameworkisLocalNode in interface IFrameworkNodesnode - the nodepublic IFrameworkServices getFrameworkServices()
public void setFrameworkServices(IFrameworkServices frameworkServices)
public IFrameworkNodes getFrameworkNodes()
public void setFrameworkNodes(IFrameworkNodes frameworkNodes)
public ProjectManager getProjectManager()
public void setProjectManager(ProjectManager projectManager)