Class ClientTagManagerImpl
java.lang.Object
com.inductiveautomation.ignition.client.tags.impl.ClientTagManagerImpl
- All Implemented Interfaces:
ClientTagManager
,TagManager
- Direct Known Subclasses:
DesignerTagManagerImpl
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.tags.model.TagManager
BROWSE_LOCAL_SYSTEM, DATA_SOURCE_OPC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientTagProvider
(ClientTagProvider provider) browseAsync
(TagPath tagPath, BrowseFilter browseFilter) browseHistoricalTagsAsync
(QualifiedPath root, BrowseFilter filter) browseTagDataSourcesAsync
(String provider, BrowseElement root, BrowseFilter filter) void
copyTagsToClipboard
(List<TagPath> tagPaths, boolean removeOriginalTags) creatorBrowse
(String provider, String session, TagPath path, boolean single) creatorModify
(String provider, String session, PropertySet changes) deleteAllTagReference
(String providerName) deleteTagReferences
(TagPath path, Long afterTime, Long beforeTime) getClientTagProvider
(String provider) getDiagnosticsAsync
(TagPath path) getProviderProperties
(String provider) protected String
getTagConfigModelAsync
(String provider) getTagConfigsAsync
(List<TagPath> tagPaths, boolean recursive, boolean localPropsOnly) getTagGroupConfigModelAsync
(String provider) getTagGroupsAsync
(String provider) Results<com.inductiveautomation.ignition.common.tags.config.model.TagReference>
getTagReferences
(com.inductiveautomation.ignition.common.tags.config.model.TagReferenceQuery query) Results<com.inductiveautomation.ignition.common.tags.query.TagReportSearch>
getTypeDefinition
(TagPath typeId) getTypeDefinitions
(List<TagPath> typeIds) importTagDataSourcesAsync
(TagPath location, List<BrowseElement> elements) importTagsAsync
(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy) boolean
isAncestorOf
(TagPath baseTypeId, TagPath potentialSubTypeId) Returns true if the second argument is equal to or subtype of the first argument.moveTagsAsync
(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) Copies tags from any sources to a specific destination.pasteFromClipboard
(TagPath destination) protected ClientTagProvider
query
(String provider, TagQueryFilter filter) readAsync
(List<TagPath> tagPaths, SecurityContext security) reinitializeTagsAsync
(List<TagPath> tagPaths) removeTagsAsync
(List<TagPath> tagPaths, SecurityContext securityContext) renameTagAsync
(TagPath tag, String newName, CollisionPolicy collisionPolicy, SecurityContext securityContext) void
requestTagGroupExecution
(String provider, String tagGroup) saveTagConfigsAsync
(List<TagConfiguration> tagEdits, CollisionPolicy collisionPolicy, SecurityContext securityContext) void
shutdown()
subscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) unsubscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) Results<com.inductiveautomation.ignition.common.tags.query.TagReportSearch>
updateTagReportSearch
(com.inductiveautomation.ignition.common.tags.query.TagReportSearch search, boolean delete) writeAsync
(List<TagPath> tagPaths, List<Object> 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.ClientTagManager
browseAsync, importTagsAsync, renameTagAsync
Methods inherited from interface com.inductiveautomation.ignition.common.tags.model.TagManager
moveTagsAsync, readAsync, reinitializeTags, subscribeAsync, unsubscribeAsync, writeAsync
-
Constructor Details
-
ClientTagManagerImpl
-
-
Method Details
-
shutdown
public void shutdown() -
getSystemTagManager
- Specified by:
getSystemTagManager
in interfaceClientTagManager
-
getPollingMetric
- Specified by:
getPollingMetric
in interfaceClientTagManager
-
getValueChangeMetric
- Specified by:
getValueChangeMetric
in interfaceClientTagManager
-
addClientTagProvider
- Specified by:
addClientTagProvider
in interfaceClientTagManager
-
getClientTagProvider
- Specified by:
getClientTagProvider
in interfaceClientTagManager
-
provider
-
getSource
-
browseTagDataSourcesAsync
public CompletableFuture<Results<BrowseElement>> browseTagDataSourcesAsync(String provider, BrowseElement root, BrowseFilter filter) - Specified by:
browseTagDataSourcesAsync
in interfaceTagManager
-
importTagDataSourcesAsync
public CompletableFuture<QualityCode> importTagDataSourcesAsync(TagPath location, List<BrowseElement> elements) - Specified by:
importTagDataSourcesAsync
in interfaceClientTagManager
-
browseAsync
public CompletableFuture<Results<NodeDescription>> browseAsync(TagPath tagPath, BrowseFilter browseFilter) - Specified by:
browseAsync
in interfaceTagManager
-
readAsync
public CompletableFuture<List<QualifiedValue>> readAsync(List<TagPath> tagPaths, SecurityContext security) - Specified by:
readAsync
in interfaceTagManager
-
writeAsync
public CompletableFuture<List<QualityCode>> writeAsync(List<TagPath> tagPaths, List<Object> values, SecurityContext security) - Specified by:
writeAsync
in interfaceTagManager
-
subscribeAsync
public CompletableFuture<Void> subscribeAsync(List<TagPath> tagPaths, List<TagChangeListener> listeners) - Specified by:
subscribeAsync
in interfaceTagManager
-
unsubscribeAsync
public CompletableFuture<Void> unsubscribeAsync(List<TagPath> tagPaths, List<TagChangeListener> listeners) - Specified by:
unsubscribeAsync
in interfaceTagManager
-
getProviderProperties
- Specified by:
getProviderProperties
in interfaceClientTagManager
-
getDefaultProvider
- Specified by:
getDefaultProvider
in interfaceClientTagManager
-
getProviderProperties
- Specified by:
getProviderProperties
in interfaceClientTagManager
-
saveTagConfigsAsync
public CompletableFuture<List<QualityCode>> saveTagConfigsAsync(List<TagConfiguration> tagEdits, CollisionPolicy collisionPolicy, SecurityContext securityContext) - Specified by:
saveTagConfigsAsync
in interfaceClientTagManager
-
moveTagsAsync
public CompletableFuture<List<QualityCode>> moveTagsAsync(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) Description copied from interface:TagManager
Copies tags from any sources to a specific destination. Destination may be in a different provider. If the source and destination paths are all in the same provider, and copy is FALSE, it will be treated as a move.- Specified by:
moveTagsAsync
in interfaceTagManager
-
renameTagAsync
public CompletableFuture<QualityCode> renameTagAsync(TagPath tag, String newName, CollisionPolicy collisionPolicy, SecurityContext securityContext) - Specified by:
renameTagAsync
in interfaceClientTagManager
-
getTagConfigsAsync
public CompletableFuture<List<TagConfigurationModel>> getTagConfigsAsync(List<TagPath> tagPaths, boolean recursive, boolean localPropsOnly) - Specified by:
getTagConfigsAsync
in interfaceClientTagManager
-
getTagGroupConfigModelAsync
- Specified by:
getTagGroupConfigModelAsync
in interfaceTagManager
-
getTagConfigModelAsync
- Specified by:
getTagConfigModelAsync
in interfaceTagManager
-
getTagGroupsAsync
- Specified by:
getTagGroupsAsync
in interfaceTagManager
-
getDiagnosticsAsync
- Specified by:
getDiagnosticsAsync
in interfaceTagManager
-
importTagsAsync
public CompletableFuture<List<QualityCode>> importTagsAsync(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy) - Specified by:
importTagsAsync
in interfaceTagManager
- 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.collisionPolicy
- The collision policy to use. Abort will throw an exception on the first tag collision, Ignore will not change the existing tag at all, Overwrite will overwrite the existing tag completely, and Rename will create a new tag with a similar name (MyTag becomes MyTag1).
-
creatorBrowse
public CompletableFuture<Results<NodeDescription>> creatorBrowse(String provider, String session, TagPath path, boolean single) - Specified by:
creatorBrowse
in interfaceClientTagManager
-
creatorModify
public CompletableFuture<PropertySet> creatorModify(String provider, String session, PropertySet changes) - Specified by:
creatorModify
in interfaceClientTagManager
-
removeTagsAsync
public CompletableFuture<List<QualityCode>> removeTagsAsync(List<TagPath> tagPaths, SecurityContext securityContext) - Specified by:
removeTagsAsync
in interfaceClientTagManager
-
copyTagsToClipboard
- Specified by:
copyTagsToClipboard
in interfaceClientTagManager
-
pasteFromClipboard
- Specified by:
pasteFromClipboard
in interfaceClientTagManager
-
requestTagGroupExecution
- Specified by:
requestTagGroupExecution
in interfaceClientTagManager
- Throws:
Exception
-
getAttributeManager
- Specified by:
getAttributeManager
in interfaceClientTagManager
-
reinitializeTagsAsync
- Specified by:
reinitializeTagsAsync
in interfaceClientTagManager
-
browseHistoricalTagsAsync
public CompletableFuture<Results<Result>> browseHistoricalTagsAsync(QualifiedPath root, BrowseFilter filter) - Specified by:
browseHistoricalTagsAsync
in interfaceClientTagManager
-
getTypeDefinition
- Specified by:
getTypeDefinition
in interfaceClientTagManager
-
getTypeDefinitions
- Specified by:
getTypeDefinitions
in interfaceClientTagManager
- Throws:
Exception
-
isAncestorOf
Description copied from interface:ClientTagManager
Returns true if the second argument is equal to or subtype of the first argument.- Specified by:
isAncestorOf
in interfaceClientTagManager
-
query
- Specified by:
query
in interfaceClientTagManager
-
getTagReportSearches
public Results<com.inductiveautomation.ignition.common.tags.query.TagReportSearch> getTagReportSearches()- Specified by:
getTagReportSearches
in interfaceClientTagManager
-
updateTagReportSearch
public Results<com.inductiveautomation.ignition.common.tags.query.TagReportSearch> updateTagReportSearch(com.inductiveautomation.ignition.common.tags.query.TagReportSearch search, boolean delete) - Specified by:
updateTagReportSearch
in interfaceClientTagManager
-
getTagReferences
public Results<com.inductiveautomation.ignition.common.tags.config.model.TagReference> getTagReferences(com.inductiveautomation.ignition.common.tags.config.model.TagReferenceQuery query) - Specified by:
getTagReferences
in interfaceClientTagManager
-
deleteTagReferences
- Specified by:
deleteTagReferences
in interfaceClientTagManager
-
deleteAllTagReference
- Specified by:
deleteAllTagReference
in interfaceClientTagManager
-