Interface ApplicationService

    • 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)
        Return the application state.
        Parameters:
        appId - application identifier
        Returns:
        application state
      • getPermissions

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

        void registerDeactivateHook​(ApplicationId appId,
                                    java.lang.Runnable hook)
        Registers application pre-deactivation processing hook.
        Parameters:
        appId - application identifier
        hook - pre-deactivation hook
      • 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
      • getRegisteredApplications

        default java.util.Set<Application> getRegisteredApplications()
        Returns the set of all installed applications.
        Returns:
        set of apps putside the build/core environment