Interface ApplicationStore

    • Method Detail

      • getApplications

        java.util.Set<Application> getApplications()
        Returns the set of all installed applications.
        Returns:
        set of installed apps
      • getId

        ApplicationId getId​(java.lang.String name)
        Returns the registered id of the application with the given name.
        Parameters:
        name - application name
        Returns:
        registered application id
      • getApplication

        Application getApplication​(ApplicationId appId)
        Returns the application with the supplied application identifier.
        Parameters:
        appId - application identifier
        Returns:
        application descriptor
      • getState

        ApplicationState getState​(ApplicationId appId)
        Returns the current application state.
        Parameters:
        appId - application identifier
        Returns:
        application state
      • create

        Application create​(java.io.InputStream appDescStream)
        Creates the application from the specified application descriptor input stream.
        Parameters:
        appDescStream - application archive input stream
        Returns:
        application descriptor
      • remove

        void remove​(ApplicationId appId)
        Removes the specified application.
        Parameters:
        appId - application identifier
      • activate

        void activate​(ApplicationId appId)
        Mark the application as active.
        Parameters:
        appId - application identifier
      • deactivate

        void deactivate​(ApplicationId appId)
        Mark the application as deactivated.
        Parameters:
        appId - application identifier
      • getPermissions

        java.util.Set<Permission> getPermissions​(ApplicationId appId)
        Returns the permissions granted to the applications.
        Parameters:
        appId - application identifier
        Returns:
        set of granted permissions
      • setPermissions

        void setPermissions​(ApplicationId appId,
                            java.util.Set<Permission> permissions)
        Updates the permissions granted to the applications.
        Parameters:
        appId - application identifier
        permissions - set of granted permissions
      • getApplicationArchive

        default java.io.InputStream getApplicationArchive​(ApplicationId appId)
        Returns stream that contains the application OAR/JAR file contents.
        Parameters:
        appId - application identifier
        Returns:
        input stream containing the app OAR/JAR file