Class SystemTagManager
java.lang.Object
com.inductiveautomation.ignition.client.sqltags.impl.SystemTagManager
- All Implemented Interfaces:
ClientTagProvider
,TagProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSystemSubManager
(ClientTagProvider provider) void
addSystemSubManager
(String name, ClientSubManager manager) void
addSystemSubManager
(String name, ClientTagProvider provider) browseAsync
(TagPath tagPath, BrowseFilter filter) browseTagDataSourcesAsync
(BrowseElement root, BrowseFilter filter) protected TagPath
getDiagnosticsAsync
(TagPath path) getName()
getTagConfigsAsync
(List<TagPath> tagPaths, boolean recursive, boolean localPropsOnly) importTagDataSourcesAsync
(TagPath location, List<BrowseElement> elements) importTagsAsync
(TagPath basePath, String importText, String importType, CollisionPolicy cp) moveTagsAsync
(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) readAsync
(List<TagPath> tagPaths, SecurityContext security) removeTagConfigsAsync
(List<TagPath> tagPaths, SecurityContext securityContext) removeTagGroupsAsync
(List<String> tagGroupNames, SecurityContext securityContext) saveTagConfigsAsync
(List<TagConfiguration> tagEdits, CollisionPolicy collisionPolicy, SecurityContext securityContext) saveTagGroupsAsync
(List<TagGroupConfiguration> tagGroups, SecurityContext securityContext) void
shutdown()
void
startup()
subscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) unsubscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) writeAsync
(List<TagPath> tagPaths, List<QualifiedValue> values, SecurityContext security) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.client.tags.model.ClientTagProvider
browseAsync, importTagsAsync
Methods inherited from interface com.inductiveautomation.ignition.common.tags.model.TagProvider
reinitializeTagsAsync, removeTagConfigsAsync, removeTagGroupsAsync, saveTagConfigsAsync, saveTagGroupsAsync
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SystemTagManager
public SystemTagManager()
-
-
Method Details
-
addSystemSubManager
-
addSystemSubManager
-
addSystemSubManager
-
chomp
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceClientTagProvider
-
startup
public void startup()- Specified by:
startup
in interfaceClientTagProvider
-
browseAsync
public CompletableFuture<Results<NodeDescription>> browseAsync(TagPath tagPath, BrowseFilter filter) - Specified by:
browseAsync
in interfaceTagProvider
-
readAsync
public CompletableFuture<List<QualifiedValue>> readAsync(List<TagPath> tagPaths, SecurityContext security) - Specified by:
readAsync
in interfaceTagProvider
-
browseTagDataSourcesAsync
public CompletableFuture<Results<BrowseElement>> browseTagDataSourcesAsync(BrowseElement root, BrowseFilter filter) - Specified by:
browseTagDataSourcesAsync
in interfaceTagProvider
-
writeAsync
public CompletableFuture<List<QualityCode>> writeAsync(List<TagPath> tagPaths, List<QualifiedValue> values, SecurityContext security) - Specified by:
writeAsync
in interfaceTagProvider
-
getTagConfigsAsync
public CompletableFuture<List<TagConfigurationModel>> getTagConfigsAsync(List<TagPath> tagPaths, boolean recursive, boolean localPropsOnly) - Specified by:
getTagConfigsAsync
in interfaceTagProvider
- Parameters:
tagPaths
- a List of TagPath objectsrecursive
- set to true to return all TagConfigurationModels under a TagPath. Useful for returning models for child tags under a UDT.localPropsOnly
- set to True to only return configuration created by a user (aka no inherited properties). Useful for tag export and tag UI edits of raw JSON text.- Returns:
- a list of TagConfigurationModels, one for each passed tagPath.
-
saveTagConfigsAsync
public CompletableFuture<List<QualityCode>> saveTagConfigsAsync(List<TagConfiguration> tagEdits, CollisionPolicy collisionPolicy, SecurityContext securityContext) - Specified by:
saveTagConfigsAsync
in interfaceTagProvider
-
removeTagConfigsAsync
public CompletableFuture<List<QualityCode>> removeTagConfigsAsync(List<TagPath> tagPaths, SecurityContext securityContext) - Specified by:
removeTagConfigsAsync
in interfaceTagProvider
-
getTagGroupsAsync
- Specified by:
getTagGroupsAsync
in interfaceTagProvider
-
saveTagGroupsAsync
public CompletableFuture<List<QualityCode>> saveTagGroupsAsync(List<TagGroupConfiguration> tagGroups, SecurityContext securityContext) - Specified by:
saveTagGroupsAsync
in interfaceTagProvider
-
removeTagGroupsAsync
public CompletableFuture<List<QualityCode>> removeTagGroupsAsync(List<String> tagGroupNames, SecurityContext securityContext) - Specified by:
removeTagGroupsAsync
in interfaceTagProvider
-
getPropertiesAsync
- Specified by:
getPropertiesAsync
in interfaceTagProvider
-
getTagGroupConfigModelAsync
- Specified by:
getTagGroupConfigModelAsync
in interfaceTagProvider
-
getTagConfigModelAsync
- Specified by:
getTagConfigModelAsync
in interfaceTagProvider
-
getDiagnosticsAsync
- Specified by:
getDiagnosticsAsync
in interfaceTagProvider
-
getStatusInformation
- Specified by:
getStatusInformation
in interfaceTagProvider
-
importTagsAsync
public CompletableFuture<List<QualityCode>> importTagsAsync(TagPath basePath, String importText, String importType, CollisionPolicy cp) - Specified by:
importTagsAsync
in interfaceTagProvider
- Parameters:
basePath
- tags will be imported using this location as the base. The provider source must be set.importText
- a String holding the contents of the file to importimportType
- The import file type. Use "json", "xml" or "csv". Any other value will return an error.cp
- The collision policy to use. The collision policy will apply to individual tags, which means that some tag imports may succeed, while others may not.
-
getName
- Specified by:
getName
in interfaceTagProvider
- Returns:
- the name of the tag provider
-
subscribeAsync
public CompletableFuture<Void> subscribeAsync(List<TagPath> tagPaths, List<TagChangeListener> listeners) - Specified by:
subscribeAsync
in interfaceClientTagProvider
-
unsubscribeAsync
public CompletableFuture<Void> unsubscribeAsync(List<TagPath> tagPaths, List<TagChangeListener> listeners) - Specified by:
unsubscribeAsync
in interfaceClientTagProvider
-
importTagDataSourcesAsync
public CompletableFuture<QualityCode> importTagDataSourcesAsync(TagPath location, List<BrowseElement> elements) - Specified by:
importTagDataSourcesAsync
in interfaceClientTagProvider
-
moveTagsAsync
public CompletableFuture<List<QualityCode>> moveTagsAsync(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) - Specified by:
moveTagsAsync
in interfaceClientTagProvider
-