Class ApplicationServiceImpl

java.lang.Object
org.codice.ddf.admin.application.service.impl.ApplicationServiceImpl
All Implemented Interfaces:
ApplicationService

public class ApplicationServiceImpl extends Object implements ApplicationService
Implementation of the ApplicationService. Uses the karaf features service and bundle state service to determine current state of items in karaf.
  • Constructor Details

    • ApplicationServiceImpl

      public ApplicationServiceImpl(org.apache.karaf.features.FeaturesService featuresService, org.codice.ddf.security.Security security)
  • Method Details

    • getApplications

      public Set<Application> getApplications()
      Description copied from interface: ApplicationService
      Retrieve a set of applications are currently installed in the system.
      Specified by:
      getApplications in interface ApplicationService
      Returns:
      Set of applications.
    • getApplication

      public Application getApplication(String applicationName)
      Description copied from interface: ApplicationService
      Returns the application that has the given name
      Specified by:
      getApplication in interface ApplicationService
      Parameters:
      applicationName - Name of the application to retrieve. Is case-insensitive.
      Returns:
      The application that matches the name or null if no application matched.
    • getContext

      protected org.osgi.framework.BundleContext getContext()
    • getInstallationProfiles

      public List<org.apache.karaf.features.Feature> getInstallationProfiles()
      Description copied from interface: ApplicationService
      Gets the application Profile features on the system.
      Specified by:
      getInstallationProfiles in interface ApplicationService
      Returns:
      the installation profiles.
    • getAllFeatures

      public List<FeatureDetails> getAllFeatures()
      Description copied from interface: ApplicationService
      Returns List of FeatureDtos with repository and status information
      Specified by:
      getAllFeatures in interface ApplicationService
      Returns:
    • isPermittedToViewFeature

      public boolean isPermittedToViewFeature(String featureName)
    • setPermissions

      public void setPermissions(ddf.security.permission.Permissions permissions)