public class FrameworkBase extends java.lang.Object implements IFramework
FrameworkProjectMgr
, Authorization
.
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
static java.lang.String |
NODES_RESOURCES_FILE_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 Attribute RUNDECK_APP_CONTEXT
public static final java.util.Set<Attribute> RUNDECK_APP_ENV
public ProjectManager getFrameworkProjectMgr()
getFrameworkProjectMgr
in interface IFramework
public FrameworkSupportService getService(java.lang.String name)
getService
in interface IFrameworkServices
name
- service namepublic void setService(java.lang.String name, FrameworkSupportService service)
IFrameworkServices
setService
in interface IFrameworkServices
name
- nameservice
- servicepublic ExecutionService getExecutionService()
getExecutionService
in interface IFrameworkServices
public OrchestratorService getOrchestratorService()
getOrchestratorService
in interface IFrameworkServices
public WorkflowExecutionService getWorkflowExecutionService()
getWorkflowExecutionService
in interface IFrameworkServices
public StepExecutionService getStepExecutionService()
getStepExecutionService
in interface IFrameworkServices
public FileCopier getFileCopierForNodeAndProject(INodeEntry node, java.lang.String project) throws ExecutionServiceException
getFileCopierForNodeAndProject
in interface IFrameworkServices
ExecutionServiceException
public FileCopierService getFileCopierService()
getFileCopierService
in interface IFrameworkServices
public NodeExecutor getNodeExecutorForNodeAndProject(INodeEntry node, java.lang.String project) throws ExecutionServiceException
getNodeExecutorForNodeAndProject
in interface IFrameworkServices
ExecutionServiceException
public NodeExecutorService getNodeExecutorService() throws ExecutionServiceException
getNodeExecutorService
in interface IFrameworkServices
ExecutionServiceException
public NodeStepExecutionService getNodeStepExecutorService() throws ExecutionServiceException
getNodeStepExecutorService
in interface IFrameworkServices
ExecutionServiceException
public NodeStepExecutor getNodeStepExecutorForItem(NodeStepExecutionItem item) throws ExecutionServiceException
getNodeStepExecutorForItem
in interface IFrameworkServices
ExecutionServiceException
public NodeDispatcher getNodeDispatcherForContext(ExecutionContext context) throws ExecutionServiceException
getNodeDispatcherForContext
in interface IFrameworkServices
ExecutionServiceException
public ResourceModelSourceService getResourceModelSourceService()
getResourceModelSourceService
in interface IFrameworkServices
public ResourceFormatParserService getResourceFormatParserService()
getResourceFormatParserService
in interface IFrameworkServices
public ResourceFormatGeneratorService getResourceFormatGeneratorService()
getResourceFormatGeneratorService
in interface IFrameworkServices
public ServiceProviderLoader getPluginManager()
getPluginManager
in interface IFrameworkServices
public 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 IPropertyLookup getPropertyLookup()
getPropertyLookup
in interface IFramework
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFrameworkNodeHostname()
IFramework
getFrameworkNodeHostname
in interface IFramework
getFrameworkNodeHostname
in interface IFrameworkNodes
public java.lang.String getFrameworkNodeName()
IFramework
getFrameworkNodeName
in interface IFramework
getFrameworkNodeName
in interface IFrameworkNodes
public NodeEntryImpl createFrameworkNode()
createFrameworkNode
in interface IFramework
createFrameworkNode
in interface IFrameworkNodes
public INodeSet filterAuthorizedNodes(java.lang.String project, java.util.Set<java.lang.String> actions, INodeSet unfiltered, AuthContext authContext)
filterAuthorizedNodes
in interface IFramework
filterAuthorizedNodes
in interface IFrameworkNodes
project
- project nameactions
- action setunfiltered
- nodesauthContext
- authoriziationpublic INodeDesc getNodeDesc()
IFramework
INodeDesc
value describing the framework nodegetNodeDesc
in interface IFramework
getNodeDesc
in interface IFrameworkNodes
INodeDesc
object for this framework instancepublic boolean isLocalNode(INodeDesc node)
IFramework
isLocalNode
in interface IFramework
isLocalNode
in interface IFrameworkNodes
node
- 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)