Interface TagManager
- All Known Subinterfaces:
ClientTagManager
,GatewayTagManager
- All Known Implementing Classes:
ClientTagManagerImpl
,DesignerTagManagerImpl
,ProjectDefaultTagManagerFacade
public interface TagManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbrowseAsync
(TagPath tagPath, BrowseFilter browseFilter) browseAsync
(TagPath tagPath, BrowseFilter browseFilter, SecurityContext securityContext) browseTagDataSourcesAsync
(String provider, BrowseElement root, BrowseFilter filter) getDiagnosticsAsync
(TagPath path) getTagConfigModelAsync
(String provider) getTagGroupConfigModelAsync
(String provider) getTagGroupsAsync
(String provider) importTagsAsync
(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy) importTagsAsync
(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy, SecurityContext securityContext) default CompletableFuture<List<QualityCode>>
moveTagsAsync
(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy) moveTagsAsync
(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) Copies tags from any sources to a specific destination.default CompletableFuture<List<QualifiedValue>>
readAsync
(List<TagPath> tagPaths, SecurityContext securityContext) default CompletableFuture<List<QualityCode>>
reinitializeTags
(List<TagPath> tagPaths) default CompletableFuture<Void>
subscribeAsync
(TagPath tagPath, TagChangeListener listener) subscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) default CompletableFuture<Void>
unsubscribeAsync
(TagPath tagPath, TagChangeListener listener) unsubscribeAsync
(List<TagPath> tagPaths, List<TagChangeListener> listeners) default CompletableFuture<List<QualityCode>>
writeAsync
(List<TagPath> tagPaths, List<Object> values) writeAsync
(List<TagPath> tagPaths, List<Object> values, SecurityContext securityContext)
-
Field Details
-
DATA_SOURCE_OPC
Type id for OPC data from browseTagDataSource- See Also:
-
BROWSE_LOCAL_SYSTEM
Browse can go through a tag provider, but we may also want to just browse the local gateway- for non tag provider related purposes. Instead of having two browse apis, we can reuse this one with a special provider name.- See Also:
-
-
Method Details
-
browseTagDataSourcesAsync
CompletableFuture<Results<BrowseElement>> browseTagDataSourcesAsync(String provider, BrowseElement root, BrowseFilter filter) -
getTagGroupConfigModelAsync
-
getTagConfigModelAsync
-
getTagGroupsAsync
-
moveTagsAsync
CompletableFuture<List<QualityCode>> moveTagsAsync(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy, SecurityContext securityContext) 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. -
moveTagsAsync
default CompletableFuture<List<QualityCode>> moveTagsAsync(List<TagPath> tags, TagPath destination, boolean copy, CollisionPolicy collisionPolicy) -
browseAsync
-
browseAsync
CompletableFuture<Results<NodeDescription>> browseAsync(TagPath tagPath, BrowseFilter browseFilter, SecurityContext securityContext) -
readAsync
-
readAsync
CompletableFuture<List<QualifiedValue>> readAsync(List<TagPath> tagPaths, SecurityContext securityContext) -
writeAsync
default CompletableFuture<List<QualityCode>> writeAsync(List<TagPath> tagPaths, List<Object> values) -
writeAsync
CompletableFuture<List<QualityCode>> writeAsync(List<TagPath> tagPaths, List<Object> values, SecurityContext securityContext) -
reinitializeTags
-
subscribeAsync
-
subscribeAsync
-
unsubscribeAsync
-
unsubscribeAsync
-
getDiagnosticsAsync
-
importTagsAsync
CompletableFuture<List<QualityCode>> importTagsAsync(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy) - 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).
-
importTagsAsync
CompletableFuture<List<QualityCode>> importTagsAsync(TagPath basePath, String importText, String importType, CollisionPolicy collisionPolicy, SecurityContext securityContext) - 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).securityContext
- theSecurityContext
of the user from the call site
-