Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.projects

Class Project

    • Constructor Detail

      • Project

        public Project()
    • Method Detail

      • GetVersion

        @ThingworxExtensionApiMethod(since={8,5})
        public java.lang.String GetVersion()
        Service Category:
        Projects
        Service Description:
        Get Project version.


        Get Project version
        Returns:
        String Project version
      • GetGroupId

        @ThingworxExtensionApiMethod(since={8,5})
        public java.lang.String GetGroupId()
        Service Category:
        Projects
        Service Description:
        Get Project group id.


        Get Project group id
        Returns:
        String Project group id
      • GetArtifactId

        @ThingworxExtensionApiMethod(since={8,5})
        public java.lang.String GetArtifactId()
        Service Category:
        Projects
        Service Description:
        Get Project artifact id.


        Get Project artifact id
        Returns:
        String Project artifact id
      • GetMinPlatformVersion

        @ThingworxExtensionApiMethod(since={8,5})
        public java.lang.String GetMinPlatformVersion()
        Service Category:
        Projects
        Service Description:
        Get minimum Platform version.


        Get minimum Platform version
        Returns:
      • GetEntities

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable GetEntities()
                                                                        throws java.lang.Exception
        Service Category:
        Projects
        Service Description:
        Get the entities of the project.


        Get a reference to all of the entities in this project
        Returns:
        InfoTable with DataShape EntityReference
        Throws:
        java.lang.Exception
      • ClearEntities

        @ThingworxExtensionApiMethod(since={7,1})
        public void ClearEntities()
                                                                     throws java.lang.Exception


        Remove this project from all of the entities that have it.
        Throws:
        java.lang.Exception
      • ListExternalDependencies

        @ThingworxExtensionApiMethod(since={8,5})
        public InfoTable ListExternalDependencies()
                                                                                     throws java.lang.Exception
        Service Category:
        Projects
        Service Description:
        Lists the first level project external dependencies.
        Returns:
        result List first level external dependencies of project - INFOTABLE - Aspects {dataShape:EntityDependency}

        Lists all the external dependencies of this project.
        Throws:
        java.lang.Exception
      • SetEntities

        @ThingworxExtensionApiMethod(since={7,1})
        public void SetEntities(InfoTable entities)
                                                                   throws java.lang.Exception
        Service Category:
        Projects
        Service Description:
        Set the entities for a project. This clears entities from the project first.


        Set this project on all of the entities in the entities list. It first clears all entities, then sets the projectName of each entity in the entities list.
        Parameters:
        entities - - InfoTable with DataShape EntityReference
        Throws:
        java.lang.Exception
      • AddEntities

        @ThingworxExtensionApiMethod(since={7,1})
        public void AddEntities(java.lang.String searchExpression,
                                                                          TagCollection tags,
                                                                          org.json.JSONObject types)
                                                                   throws java.lang.Exception
        Service Category:
        Projects
        Service Description:
        Adds to the project of all model entities filtered by keyword query and tags.


        Add entities to this project based on the combination of a search expression, tags and types. For each entity found, set the projectName to this project.
        Parameters:
        searchExpression - - String compatible with Searcher.SearchModelEntities
        tags - - TagCollection of tags to match
        types - - JSONObject compatible with the types parameter of Searcher.SearchModelEntities
        Throws:
        java.lang.Exception
      • GetAllDependentProjectNames

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable GetAllDependentProjectNames()
                                                                                        throws java.lang.Exception
        Service Category:
        Projects
        Service Description:
        Get list of all of the projects that this project depends on, including itself.


        Get list of all of the projects that this project depends on, including itself
        Returns:
        InfoTable with DataShape GenericStringList
        Throws:
        java.lang.Exception
      • PublishSolution

        @ThingworxExtensionApiMethod(since={8,5})
        public org.json.JSONObject PublishSolution()
                                                                                      throws java.lang.Exception


        Publish solution
        Returns:
        Throws:
        java.lang.Exception