Class AbstractProject
java.lang.Object
com.inductiveautomation.ignition.common.project.AbstractProject
- All Implemented Interfaces:
- Project,- Serializable
- Direct Known Subclasses:
- DesignerProjectTreeImpl,- RuntimeProject
- See Also:
- 
Field SummaryFields inherited from interface com.inductiveautomation.ignition.common.project.ProjectGLOBAL_PROJECT_NAME, PIPELINE_PROJECT_NAME, PROJECT_NAME_PATTERN, SFC_PROJECT_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a listener for specific types of project resource changes.protected Map<ResourcePath,ProjectResource> protected CopyOnWriteArrayList<ProjectResourceListener>Get the effectiveProjectResources for this project.booleanShort-circuiting evaluation of whether project has any resources of given type.voidRemoves an existing listener.protected ProjectDiff.EffectiveDiffCall this after one or more resources or manifests have been changed.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.project.Projectbrowse, getAllResources, getDescription, getManifest, getName, getParent, getProjectInheritanceStructure, getProjectSnapshots, getResource, getResource, getSingletonResource, getTitle, isEnabled, isInheritable, isRunnable
- 
Constructor Details- 
AbstractProjectpublic AbstractProject()
 
- 
- 
Method Details- 
getListeners
- 
getEffectiveResources
- 
getResourcesDescription copied from interface:ProjectGet the effectiveProjectResources for this project.This includes inherited resources from parent projects, recursively, except where resources in child projects override resources by the same name from parent projects. In other words, for any given ResourcePath, only the resource "closest" to this project in the inheritance chain will be included in this list.Note that depending on the ResourceFilterused to load this project instance, this may not include all resource types that are actually part of this project.- Specified by:
- getResourcesin interface- Project
- Returns:
- the effective ProjectResources for this project.
 
- 
updateEffectiveStateCall this after one or more resources or manifests have been changed. This will calculate the effective change to the resources and notify listeners.
- 
getResourcesOfTypeDescription copied from interface:ProjectGet all non-folderProjectResources of typetypebelonging to the module identified bymoduleId.Resource types belonging to the Ignition platform are identified by module id "ignition". - Specified by:
- getResourcesOfTypein interface- Project
- Parameters:
- type- the resource type.
- Returns:
- all non-folder ProjectResources of typetypebelonging to the module identified bymoduleId.
- See Also:
 
- 
hasResourcesOfTypeDescription copied from interface:ProjectShort-circuiting evaluation of whether project has any resources of given type.- Specified by:
- hasResourcesOfTypein interface- Project
- Parameters:
- type- the resource type.
- Returns:
- trueif the project contains at least one resource of the given type.- See also: - ProjectLifecycleFactory#getProjectFilter()
- See Also:
 
- 
addProjectResourceListenerDescription copied from interface:ProjectAdds a listener for specific types of project resource changes.- Specified by:
- addProjectResourceListenerin interface- Project
- Parameters:
- listener- the- ProjectResourceListenerto add.
 
- 
removeProjectResourceListenerDescription copied from interface:ProjectRemoves an existing listener. If not added, no-op.- Specified by:
- removeProjectResourceListenerin interface- Project
- Parameters:
- listener- the- ProjectResourceListenerto remove.
 
 
-