@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class Network extends ServiceProviderEntity
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
Network() |
Modifier and Type | Method and Description |
---|---|
void |
AddConnection(java.lang.String from,
java.lang.String to,
java.lang.String connectionType)
Service Category: Connections
Service Description: Add a connection.
Adds a connection of the specified type between the given parent and child on this Network. |
void |
DeleteConnection(java.lang.String to,
java.lang.String from)
Service Category: Connections
Service Description: Delete a connection.
Deletes the connection between the given parent and child from this Network. |
InfoTable |
GetChildConnections(java.lang.String name)
Service Category: Connections
Service Description: Return a list of all the child connections in this network for a specific node.
Returns a collection of all the child connections in this network for a specific node. |
InfoTable |
GetChildConnectionsForShape(java.lang.String name,
java.lang.String thingShapeName)
Service Category: Connections
Service Description: Return a list of all the child connections in this network for a specific node that implement a given shape.
Returns a collection of all the child connections in this network for a specific node that implement a given ThingShape. |
InfoTable |
GetChildConnectionsForTemplate(java.lang.String name,
java.lang.String thingTemplateName)
Service Category: Connections
Service Description: Return a list of all the child connections in this network for a specific node that implement a given template.
Returns a collection of all the child connections in this network for a specific node that implement a given ThingTemplate. |
InfoTable |
GetChildConnectionsWithTemplate(java.lang.String name)
Service Category: Connections
Service Description: Return a list of all the child connections in this network for a specific node along with their implemented template name.
Returns a collection of all the child connections in this network for a specific node along with their implemented ThingTemplate name. |
RelationshipTypes.ThingworxRelationshipTypes |
getEntityType()
|
InfoTable |
GetNetworkConnections(java.lang.Double maxDepth)
Service Category: Connections
Service Description: Return a list of all the connections in this network.
Returns a collection of all the connections in this network up to the given maximum depth. |
InfoTable |
GetNetworkConnectionsWithTemplate(java.lang.Double maxDepth)
Service Category: Connections
Service Description: Return a list of all the connections in this network along with their implemented template name.
Returns a collection of all the connections in this network that includes the Network's ThingTemplate up to a maximum depth. |
java.lang.String |
GetParentName(java.lang.String name)
Service Category: Relationships
Service Description: Get parent of a given Thing in the network.
|
InfoTable |
GetSubNetworkConnections(java.lang.String start,
java.lang.Double maxDepth)
Service Category: Connections
Service Description: Return a list of all the connections in this SubNetwork.
Returns a collection of all the connections in this sub network. |
InfoTable |
GetSubNetworkConnectionsWithTemplate(java.lang.String start,
java.lang.Double maxDepth)
Service Category: Connections
Service Description: Return a list of all the connections in this subnetwork with their implemented template name.
Returns a collection of all the connections in this sub network with their implemented ThingTemplate. |
java.lang.Boolean |
IsChild(java.lang.String start,
java.lang.String name)
Service Category: Relationships
Service Description: Checks to see if a Thing exists as a child of the starting Thing.
Check if the given Thing is a direct child in the Network. |
java.lang.Boolean |
IsInNetwork(java.lang.String name)
Service Category: Relationships
Service Description: Checks to see if a Thing exists in this network.
|
java.lang.Boolean |
IsInSubNetwork(java.lang.String start,
java.lang.String name)
Service Category: Relationships
Service Description: Checks to see if a Thing exists in this subnetwork.
Check if the given Thing is a child in the Network at any depth. |
java.lang.Boolean |
IsParent(java.lang.String name,
java.lang.String parentName)
Service Category: Relationships
Service Description: Check if the parent of a given Thing in the network matches a specific Thing name.
|
void |
RemoveFromNetwork(java.lang.String name)
Service Category: Connections
Service Description: Remove a specific Thing from the network.
Removes Connections to and from the given Thing in this Network |
void |
SetConnections(InfoTable connections)
Service Category: Connections
Service Description: Assign all connections.
Assigns all connections from given NetworkConnection InfoTable to this Network. |
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, hasID
getDescription, getName
getID, getName
@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetNetworkConnections(java.lang.Double maxDepth) throws java.lang.Exception
maxDepth
- Maximum depth for searching sub networksjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetNetworkConnectionsWithTemplate(java.lang.Double maxDepth) throws java.lang.Exception
maxDepth
- Maximum depth for searching sub networksjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetChildConnections(java.lang.String name) throws java.lang.Exception
name
- Name of node for whom to return childrenjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public void AddConnection(java.lang.String from, java.lang.String to, java.lang.String connectionType) throws java.lang.Exception
from
- Name of the parent Thingto
- Name of the Thing new childconnectionType
- Name of the connection type. Must not be null or empty.java.lang.Exception
- Thrown if parent or child are not valid things, they don't exist on this Network or a connection already exists
between them@ThingworxExtensionApiMethod(since={6,6,5}) public void SetConnections(InfoTable connections) throws java.lang.Exception
connections
- InfoTable with NetworkConnection DataShape containing all connections to be addedjava.lang.Exception
- Thrown if an InfoTable row has an invalid connection or the Network changes cannot be persisted@ThingworxExtensionApiMethod(since={6,6,5}) public void DeleteConnection(java.lang.String to, java.lang.String from) throws java.lang.Exception
to
- Name of the child of the connection to be deletedfrom
- Name of the parent to be deletedjava.lang.Exception
- Thrown if Connection does not exist or the Network changes cannot be persisted@ThingworxExtensionApiMethod(since={6,6,5}) public void RemoveFromNetwork(java.lang.String name) throws java.lang.Exception
name
- Name of the Thing to remove. Must not be null or empty.java.lang.Exception
- Thrown if no Thing is specified or the Network changes cannot be persisted@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetChildConnectionsWithTemplate(java.lang.String name) throws java.lang.Exception
name
- Name of node for whom to return childrenjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetChildConnectionsForShape(java.lang.String name, java.lang.String thingShapeName) throws java.lang.Exception
name
- Name of node for whom to return childrenthingShapeName
- Name of the Thing Shapejava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetChildConnectionsForTemplate(java.lang.String name, java.lang.String thingTemplateName) throws java.lang.Exception
name
- Name of node for whom to return childrenthingTemplateName
- Name of the Thing Templatejava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetSubNetworkConnections(java.lang.String start, java.lang.Double maxDepth) throws java.lang.Exception
start
- Name of the Thing to start the search atmaxDepth
- Maximum depth for searching below this sub networkjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetSubNetworkConnectionsWithTemplate(java.lang.String start, java.lang.Double maxDepth) throws java.lang.Exception
start
- Name of the Thing to start the search atmaxDepth
- Maximum depth for searching below this sub networkjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public java.lang.Boolean IsParent(java.lang.String name, java.lang.String parentName) throws java.lang.Exception
name
- Name of the child ThingparentName
- Name of the parent Thingjava.lang.Exception
- If an error occurs
@ThingworxExtensionApiMethod(since={6,6,5}) public java.lang.String GetParentName(java.lang.String name) throws java.lang.Exception
name
- Name of the childjava.lang.Exception
- If an error occurs
@ThingworxExtensionApiMethod(since={6,6,5}) public java.lang.Boolean IsChild(java.lang.String start, java.lang.String name) throws java.lang.Exception
start
- Name of the Thing to start searching fromname
- Name of the child Thing to search forjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public java.lang.Boolean IsInSubNetwork(java.lang.String start, java.lang.String name) throws java.lang.Exception
start
- Name of the Thing to start searching fromname
- Name of the child Thing to search forjava.lang.Exception
- Thrown if an unexpected error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public java.lang.Boolean IsInNetwork(java.lang.String name) throws java.lang.Exception
name
- Name of the Thing to search forjava.lang.Exception
- If an error occurs
@ThingworxExtensionApiMethod(since={6,6,5}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()
RootEntity
Returns the type of this entity.
getEntityType
in class RootEntity