public class ProviderSqlTagExecutor extends java.lang.Object implements SQLTagsExecutor, TagManagerBase
TagManagerBase.CollisionPolicy
Constructor and Description |
---|
ProviderSqlTagExecutor(GatewayContext context,
AbstractStoreBasedTagProvider owner) |
Modifier and Type | Method and Description |
---|---|
void |
addTags(TagPath parentFolder,
java.util.List<TagNode> tag,
TagManagerBase.CollisionPolicy collisionPolicy)
Adds the given tags into the parent folder.
|
java.util.List<Tag> |
browse(TagPath root)
Provides the tags located beneath the specified path.
|
void |
editTags(java.util.List<TagPath> paths,
TagDiff edit)
Applies the given TagDiff edit to the paths indicated
|
java.lang.String |
getDefaultDatasource() |
java.lang.String |
getDefaultTagSource()
Returns the default tag source to be used when parsing tag reference paths.
|
java.lang.String |
getDisplayNameForPath(TagPath path)
Returns a friendly, fully qualified path for the given tag.
|
ExecutionManager |
getExecutionManager() |
GatewayContext |
getGatewayContext() |
java.lang.String |
getName() |
QualifiedPath |
getObjectPath() |
ScriptManager |
getScriptManager()
Returns the ScriptManager that can be used to execute Python scripts.
|
protected TagPath |
getSourceFixedPath(TagPath path) |
Tag |
getTag(TagPath path)
Returns the tag located at a specific path.
|
TagDiagnostics |
getTagDiagnostics(TagPath path)
Returns the current diagnostic information for a given path.
|
org.apache.log4j.Logger |
getTagErrorLogger() |
TagManagerBase |
getTagManager()
Returns a tagmanagerbase that can be used to look up tag references.
|
TagSubscriptionManager |
getTagReferenceManager() |
TagScriptManager |
getTagScriptManager() |
java.util.List<QualifiedValue> |
read(java.util.List<TagPath> paths)
Reads the values of the given tag paths.
|
void |
removeTags(java.util.List<TagPath> tagPath)
Removes the tags at the given tag paths.
|
void |
subscribe(java.util.List<TagPath> paths,
java.util.List<TagChangeListener> listeners)
Subscribes to multiple paths at once, in order to be more efficient.
|
void |
subscribe(TagPath path,
TagChangeListener listener)
Subscribes to the given tag path/property.
|
void |
unsubscribe(java.util.List<TagPath> paths,
java.util.List<TagChangeListener> listeners)
Unsubscribes from multiple paths at once, in order to be more efficient.
|
void |
unsubscribe(TagPath path,
TagChangeListener listener)
Unsubscribes from the given tag path/property.
|
public ProviderSqlTagExecutor(GatewayContext context, AbstractStoreBasedTagProvider owner)
public GatewayContext getGatewayContext()
getGatewayContext
in interface SQLTagsExecutor
public TagScriptManager getTagScriptManager()
getTagScriptManager
in interface SQLTagsExecutor
public java.lang.String getName()
getName
in interface SQLTagsExecutor
public QualifiedPath getObjectPath()
getObjectPath
in interface SQLTagsExecutor
public java.lang.String getDisplayNameForPath(TagPath path)
SQLTagsExecutor
getDisplayNameForPath
in interface SQLTagsExecutor
public java.lang.String getDefaultDatasource()
getDefaultDatasource
in interface SQLTagsExecutor
public ExecutionManager getExecutionManager()
getExecutionManager
in interface SQLTagsExecutor
public java.lang.String getDefaultTagSource()
SQLTagsExecutor
getDefaultTagSource
in interface SQLTagsExecutor
public org.apache.log4j.Logger getTagErrorLogger()
getTagErrorLogger
in interface SQLTagsExecutor
public TagSubscriptionManager getTagReferenceManager()
public TagManagerBase getTagManager()
SQLTagsExecutor
getTagManager
in interface SQLTagsExecutor
public ScriptManager getScriptManager()
SQLTagsExecutor
getScriptManager
in interface SQLTagsExecutor
public java.util.List<QualifiedValue> read(java.util.List<TagPath> paths)
TagSubscriptionManager
read
in interface TagSubscriptionManager
public void subscribe(java.util.List<TagPath> paths, java.util.List<TagChangeListener> listeners)
TagSubscriptionManager
subscribe
in interface TagSubscriptionManager
public void unsubscribe(java.util.List<TagPath> paths, java.util.List<TagChangeListener> listeners)
TagSubscriptionManager
unsubscribe
in interface TagSubscriptionManager
public void subscribe(TagPath path, TagChangeListener listener)
TagSubscriptionManager
subscribe
in interface TagSubscriptionManager
public void unsubscribe(TagPath path, TagChangeListener listener)
TagSubscriptionManager
unsubscribe
in interface TagSubscriptionManager
public void addTags(TagPath parentFolder, java.util.List<TagNode> tag, TagManagerBase.CollisionPolicy collisionPolicy) throws java.lang.Exception
TagManagerBase
addTags
in interface TagManagerBase
java.lang.Exception
public java.util.List<Tag> browse(TagPath root)
TagCollection
browse
in interface TagCollection
public void editTags(java.util.List<TagPath> paths, TagDiff edit) throws java.lang.Exception
TagManagerBase
editTags
in interface TagManagerBase
java.lang.Exception
public Tag getTag(TagPath path)
TagCollection
getTag
in interface TagCollection
public TagDiagnostics getTagDiagnostics(TagPath path)
TagManagerBase
getTagDiagnostics
in interface TagManagerBase
public void removeTags(java.util.List<TagPath> tagPath) throws java.lang.Exception
TagManagerBase
removeTags
in interface TagManagerBase
java.lang.Exception