Package com.dtolabs.rundeck.core.common
Interface IFrameworkNodes
-
- All Known Subinterfaces:
IFramework
- All Known Implementing Classes:
Framework,FrameworkBase,NodeSupport
public interface IFrameworkNodesCreated by greg on 2/20/15.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeEntryImplcreateFrameworkNode()INodeSetfilterAuthorizedNodes(java.lang.String project, java.util.Set<java.lang.String> actions, INodeSet unfiltered, com.dtolabs.rundeck.core.authorization.AuthContext authContext)java.lang.StringgetFrameworkNodeHostname()Gets the value of "framework.server.hostname" propertyjava.lang.StringgetFrameworkNodeName()Gets the value of "framework.server.name" propertyINodeDescgetNodeDesc()Gets theINodeDescvalue describing the framework nodebooleanisLocalNode(INodeDesc node)Return true if the node is the local framework node.
-
-
-
Method Detail
-
getFrameworkNodeHostname
java.lang.String getFrameworkNodeHostname()
Gets the value of "framework.server.hostname" property- Returns:
- Returns value of framework.server.hostname property
-
getFrameworkNodeName
java.lang.String getFrameworkNodeName()
Gets the value of "framework.server.name" property- Returns:
- Returns value of framework.server.name property
-
createFrameworkNode
NodeEntryImpl createFrameworkNode()
- Returns:
- Generate a node entry for the framework with default values
-
filterAuthorizedNodes
INodeSet filterAuthorizedNodes(java.lang.String project, java.util.Set<java.lang.String> actions, INodeSet unfiltered, com.dtolabs.rundeck.core.authorization.AuthContext authContext)
- Parameters:
project- project nameactions- action setunfiltered- nodesauthContext- authoriziation- Returns:
- the nodeset consisting only of the input nodes where the specified actions are all authorized
-
getNodeDesc
INodeDesc getNodeDesc()
Gets theINodeDescvalue describing the framework node- Returns:
- the singleton
INodeDescobject for this framework instance
-
isLocalNode
boolean isLocalNode(INodeDesc node)
Return true if the node is the local framework node. Compares the (logical) node names of the nodes after eliding any embedded 'user@' parts.- Parameters:
node- the node- Returns:
- true if the node's name is the same as the framework's node name
-
-