Class ProjectResourceId

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProjectResourceId
    extends java.lang.Object
    implements java.io.Serializable
    Unique ID for a project resource, containing the project, module id, type id, and folder path.
    See Also:
    Serialized Form
    • Field Detail

      • projectName

        protected java.lang.String projectName
    • Constructor Detail

      • ProjectResourceId

        public ProjectResourceId​(java.lang.String project,
                                 ResourceType resourceType,
                                 java.lang.String path)
      • ProjectResourceId

        public ProjectResourceId​(java.lang.String project,
                                 ResourcePath resourcePath)
    • Method Detail

      • getProjectName

        public java.lang.String getProjectName()
      • getResourcePath

        public ResourcePath getResourcePath()
        Returns:
        The resource path, which is the resource type id + folder path.
      • getFolderPath

        public java.lang.String getFolderPath()
        Shortcut for getResourcePath().getPath().toString()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toJson

        public com.inductiveautomation.ignition.common.gson.JsonObject toJson()
      • fromJson

        public static ProjectResourceId fromJson​(com.inductiveautomation.ignition.common.gson.JsonElement e)