com.dtolabs.rundeck.core.common
Class NodeEntryFactory

java.lang.Object
  extended by com.dtolabs.rundeck.core.common.NodeEntryFactory

public class NodeEntryFactory
extends java.lang.Object

NodeEntryFactory creates NodeEntryImpls


Constructor Summary
NodeEntryFactory()
           
 
Method Summary
static NodeEntryImpl createFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
          Create NodeEntryImpl from map data.
static java.util.Map<java.lang.String,java.lang.String> toMap(INodeEntry node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEntryFactory

public NodeEntryFactory()
Method Detail

createFromMap

public static NodeEntryImpl createFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
                                   throws java.lang.IllegalArgumentException
Create NodeEntryImpl from map data. It will convert "tags" of type String as a comma separated list of tags, or "tags" a collection of strings into a set. It will remove properties excluded from allowed import.

Parameters:
map - input map data
Returns:
Throws:
java.lang.IllegalArgumentException

toMap

public static java.util.Map<java.lang.String,java.lang.String> toMap(INodeEntry node)