Class LegacyTagUtilities
java.lang.Object
com.inductiveautomation.ignition.common.script.builtin.LegacyTagUtilities
- Direct Known Subclasses:
LegacyClientTagUtilities
All the system.tag functions that were formerly located in AbstractTagUtilities and AbstractIALabsTagFunctions. We
need these functions for backwards compatibility, but we don't want them to be visible to users via the script
hints system. Internally, the functions internally use 8.0 functionality to provide the equivalent capabilities
as the old functions.
- Since:
- 8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final Field<PropertySet,
TagPath, PathCondition> WARNING- Only use this filter if you know that items to be filtered are guaranteed to be TagEditModels, as only those have a useable path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.protected abstract void
addTagImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) browseTags
(org.python.core.PyObject[] pyArgs, String[] keywords) Deprecated.protected abstract BrowseTag[]
browseTagsImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) browseTagsSimple
(org.python.core.PyObject[] pyArgs, String[] keywords) Deprecated.protected abstract BrowseTag[]
browseTagsSimpleImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) void
editAlarmConfig
(org.python.core.PyObject[] pyArgs, String[] keywords) Deprecated.protected abstract void
editAlarmConfigImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) void
Deprecated.protected abstract void
editTagImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) void
Deprecated.protected abstract void
editTagsImpl
(org.python.core.PyObject[] pyArgs, String[] keywords) getAlarmStates
(String tagPath) Deprecated.protected abstract TagAlarmDefinition[]
getAlarmStatesImpl
(String tagPath) getAttribute
(String tagPath, String attribute) Deprecated.use readAll() instead.protected abstract String
getTagValue
(String tagPathStr) Deprecated.in 7.9.Object[]
getTagValues
(String[] tagPaths) Deprecated.use readAll() instead.void
loadFromFile
(String filePath, String providerName, int mode) Deprecated.protected abstract void
loadFromFileImpl
(String fileAsString, String fileType, String providerName, CollisionPolicy policy) protected static Property<?>
lookupLegacyProp
(Property<?> legacyProp) protected static Property<?>
lookupLegacyProp
(String legacyPropName) protected TagPath
parseTagPath
(String path) Parses the tag path, using some special values from ScriptContext when appropriate for the default source, and to de-relativize if possible.Deprecated.protected abstract QualifiedValue[]
Deprecated.void
Deprecated.void
removeTags
(String[] tagPaths) Deprecated.protected abstract void
removeTagsImpl
(List<TagPath> paths) final void
Deprecated.protected abstract void
final int
Deprecated.int[]
Deprecated.final void
writeAllSynchronous
(String[] tagPathStr, Object[] value) Deprecated.final void
writeAllSynchronous
(String[] tagPaths, Object[] values, int timeout) Deprecated.final void
writeSynchronous
(String tagPathStr, Object value) final void
writeSynchronous
(String tagPathStr, Object value, int timeoutMillis) Deprecated.int
writeToTag
(String tagPathStr, Object value) Deprecated.final int
writeToTag
(String tagPathStr, Object value, boolean suppressErrors) Deprecated.protected abstract int
writeToTagImpl
(TagPath tagPath, Object value, boolean suppressErrors) int[]
writeToTags
(String[] tagPaths, Object[] values) Deprecated.protected abstract int[]
writeToTagsImpl
(List<TagPath> paths, List<Object> values, boolean suppressErrors) protected abstract void
writeToTagsSynchronousImpl
(List<TagPath> paths, List<Object> values, int timeout) final void
writeToTagSynchronous
(String tagPathStr, Object value) Deprecated.final void
writeToTagSynchronous
(String tagPathStr, Object value, int timeoutMillis) Deprecated.protected abstract void
writeToTagSynchronousImpl
(TagPath tagPath, Object value, int timeout)
-
Field Details
-
LEGACY_DEFAULT_TIMEOUT_MILLIS
public static final int LEGACY_DEFAULT_TIMEOUT_MILLIS- See Also:
-
TAG_PATH
WARNING- Only use this filter if you know that items to be filtered are guaranteed to be TagEditModels, as only those have a useable path
-
-
Constructor Details
-
LegacyTagUtilities
public LegacyTagUtilities()
-
-
Method Details
-
addTag
@Deprecated public void addTag(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
editTag
@Deprecated public void editTag(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
editAlarmConfig
@Deprecated public void editAlarmConfig(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
editTags
@Deprecated public void editTags(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
browseTags
@Deprecated public BrowseTag[] browseTags(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
browseTagsSimple
@Deprecated public BrowseTag[] browseTagsSimple(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception Deprecated.- Throws:
Exception
-
getAlarmStates
Deprecated.- Throws:
Exception
-
parseTagPath
Parses the tag path, using some special values from ScriptContext when appropriate for the default source, and to de-relativize if possible.- Throws:
IOException
-
read
Deprecated.- Throws:
Exception
-
readAll
Deprecated. -
writeToTagSynchronous
Deprecated. -
writeToTagSynchronous
@Deprecated public final void writeToTagSynchronous(String tagPathStr, Object value, int timeoutMillis) Deprecated. -
writeSynchronous
-
writeSynchronous
Deprecated. -
writeAllSynchronous
Deprecated. -
writeAllSynchronous
Deprecated. -
write
Deprecated.Writes a value to a tag asynchronously. Before 8.0, the function returned 0 if the write failed, 1 if the write succeeded, and 2 if the write was pending. Now, we will always return 2 (unless the designer is in read-only mode, in which case we return 0). The completable future will later handle a write error with a log message (Gateway) or show the user an error dialog (Client), if supressErrors is False. -
writeToTag
Deprecated. -
writeToTag
Deprecated. -
writeToTags
Deprecated. -
writeAll
Deprecated. -
removeTag
Deprecated.- Throws:
Exception
-
removeTags
Deprecated.- Throws:
Exception
-
loadFromFile
@Deprecated public void loadFromFile(String filePath, String providerName, int mode) throws Exception Deprecated.Imports the tag file at the provided path into the specified provider. The mode dictates what happens if the tag already exists.- Parameters:
mode
-- 0=Overwrite
- 1=Ignore
- Throws:
Exception
-
scan
Deprecated.Forces the execution of a tag group (called scan class before 8.0)- Parameters:
provider
- If blank, the default provider will be used.scname
- Name of the tag group (formerly called scan class) to execute. Required.
-
getTagValue
Deprecated.in 7.9. Implementation needs to be left here for backwards compatibility. -
getTagValues
Deprecated.use readAll() instead. Implementation needs to be left here for backwards compatibility. -
getAttribute
Deprecated.use readAll() instead. Implementation needs to be left here for backwards compatibility.- Throws:
Exception
-
lookupLegacyProp
-
lookupLegacyProp
-
addTagImpl
protected abstract void addTagImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
editTagImpl
protected abstract void editTagImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
editTagsImpl
protected abstract void editTagsImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
editAlarmConfigImpl
protected abstract void editAlarmConfigImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
browseTagsImpl
protected abstract BrowseTag[] browseTagsImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
browseTagsSimpleImpl
protected abstract BrowseTag[] browseTagsSimpleImpl(org.python.core.PyObject[] pyArgs, String[] keywords) throws Exception - Throws:
Exception
-
getAlarmStatesImpl
- Throws:
Exception
-
read
- Throws:
Exception
-
writeToTagImpl
-
writeToTagsImpl
protected abstract int[] writeToTagsImpl(List<TagPath> paths, List<Object> values, boolean suppressErrors) throws Exception - Throws:
Exception
-
writeToTagSynchronousImpl
protected abstract void writeToTagSynchronousImpl(TagPath tagPath, Object value, int timeout) throws Exception - Throws:
Exception
-
writeToTagsSynchronousImpl
protected abstract void writeToTagsSynchronousImpl(List<TagPath> paths, List<Object> values, int timeout) throws Exception - Throws:
Exception
-
removeTagsImpl
- Throws:
Exception
-
scanImpl
- Throws:
Exception
-
getDefaultTagProvider
-
loadFromFileImpl
protected abstract void loadFromFileImpl(String fileAsString, String fileType, String providerName, CollisionPolicy policy) throws Exception - Throws:
Exception
-