Class ProjectTagManager
java.lang.Object
com.inductiveautomation.factorypmi.application.sqltags.project.ProjectTagManager
- All Implemented Interfaces:
ClientSubManager
This tag manager hold the root of the project tag tree configuration. The root tag is serialized as a project
resource, and will be set when the app is created.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTags
(TagPath parentFolder, List<Tag> tags, CollisionPolicy policy) void
createFolder
(String name) createTag
(BoundPropertySet config) void
protected ClientTag
Returns the ClientTag at the given path, or null if there is no tag at the path.protected ClientTag
findTagParent
(TagPath path) Returns the nearest (upwards) folder tag for the given tag path.protected TagPath
findTagParentPath
(TagPath path) Returns the nearest (upwards) folder tag path for the given tag path.getRoot()
boolean
moveTags
(TagPath parentFolder, List<TagPath> tagPaths, boolean copy, CollisionPolicy policy) protected void
removeFromSubMgr
(TagPath path, TagNode node) void
removeTags
(List<TagPath> tagPaths) void
setPaused
(boolean paused) Empty implementationvoid
setResourceId
(ProjectResourceId resourceId) void
void
shutdown()
void
startup()
void
subscribe
(TagPath path, TagChangeListener listener) void
subscribe
(List<TagPath> paths, List<TagChangeListener> listeners) void
unsubscribe
(TagPath path, TagChangeListener listener) void
unsubscribe
(List<TagPath> paths, List<TagChangeListener> listeners)
-
Field Details
-
CLIENT_TAG_RESOURCE_TYPE
-
NAME
- See Also:
-
-
Constructor Details
-
ProjectTagManager
-
-
Method Details
-
getAcceptableTags
-
getTagScriptManager
-
removeTags
- Specified by:
removeTags
in interfaceClientSubManager
-
removeFromSubMgr
-
editTags
- Specified by:
editTags
in interfaceClientSubManager
-
addTags
public List<TagPath> addTags(TagPath parentFolder, List<Tag> tags, CollisionPolicy policy) throws Exception - Specified by:
addTags
in interfaceClientSubManager
- Throws:
Exception
-
moveTags
public List<TagPath> moveTags(TagPath parentFolder, List<TagPath> tagPaths, boolean copy, CollisionPolicy policy) throws Exception - Specified by:
moveTags
in interfaceClientSubManager
- Throws:
Exception
-
getTag
- Specified by:
getTag
in interfaceClientSubManager
-
getTags
- Specified by:
getTags
in interfaceClientSubManager
-
findTagParent
Returns the nearest (upwards) folder tag for the given tag path. -
findTagParentPath
Returns the nearest (upwards) folder tag path for the given tag path. -
findTag
Returns the ClientTag at the given path, or null if there is no tag at the path. -
subscribe
- Specified by:
subscribe
in interfaceClientSubManager
-
unsubscribe
- Specified by:
unsubscribe
in interfaceClientSubManager
-
subscribe
- Specified by:
subscribe
in interfaceClientSubManager
-
unsubscribe
- Specified by:
unsubscribe
in interfaceClientSubManager
-
getResourceId
-
setResourceId
-
getRoot
-
setRoot
-
startup
public void startup()- Specified by:
startup
in interfaceClientSubManager
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceClientSubManager
-
setPaused
public void setPaused(boolean paused) Empty implementation -
read
- Specified by:
read
in interfaceClientSubManager
-
write
- Specified by:
write
in interfaceClientSubManager
-
browse
- Specified by:
browse
in interfaceClientSubManager
-
isModified
public boolean isModified() -
clearModified
public void clearModified() -
createFolder
-
createTag
-