Class AppAPI

    • Constructor Detail

      • AppAPI

        protected AppAPI​(AppAPI.Conf<?> builder)
        Protected constructor. Create this AppAPI by using its AppAPI.Builder.
        Parameters:
        builder - The builder to use.
    • Method Detail

      • getApplicationCommand

        public AppAPI.GetApplicationCommand getApplicationCommand​(java.lang.String ogitId)
        Get an application

        API GET /api/app/[version]/{ogit\_id}

        Parameters:
        ogitId - ogit/_id of the app.
        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getConfigCommand

        public AppAPI.GetConfigCommand getConfigCommand()
        Get an application instance config

        API GET /api/app/[version]/config

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getContentCommand

        public AppAPI.GetContentCommand getContentCommand​(java.lang.String ogitId,
                                                          java.lang.String... path)
        Get the content of an application

        API GET /api/app/[version]/{ogit/_id}/content/{path}

        Parameters:
        ogitId - ogit/_id of the app.
        path - Path parts for the subcontent.
        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getManifestCommand

        public AppAPI.GetManifestCommand getManifestCommand​(java.lang.String ogitId)
        Get a manifest of the content of an application

        API GET /api/app/[version]/{ogit/_id}/manifest

        Parameters:
        ogitId - ogit/_id of the app.
        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getDesktopApplicationsCommand

        public AppAPI.GetDesktopApplicationsCommand getDesktopApplicationsCommand()
        Returns a list of all visible desktop applications

        API GET /api/app/[version]/desktop

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation