Class ApplicationServiceImpl
java.lang.Object
org.codice.ddf.admin.application.service.impl.ApplicationServiceImpl
- All Implemented Interfaces:
ApplicationService
Implementation of the ApplicationService. Uses the karaf features service and bundle state
service to determine current state of items in karaf.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationServiceImpl(org.apache.karaf.features.FeaturesService featuresService, org.codice.ddf.security.Security security) -
Method Summary
Modifier and TypeMethodDescriptionReturns List of FeatureDtos with repository and status informationgetApplication(String applicationName) Returns the application that has the given nameRetrieve a set of applications are currently installed in the system.protected org.osgi.framework.BundleContextList<org.apache.karaf.features.Feature>Gets the application Profile features on the system.booleanisPermittedToViewFeature(String featureName) voidsetPermissions(ddf.security.permission.Permissions permissions)
-
Constructor Details
-
ApplicationServiceImpl
public ApplicationServiceImpl(org.apache.karaf.features.FeaturesService featuresService, org.codice.ddf.security.Security security)
-
-
Method Details
-
getApplications
Description copied from interface:ApplicationServiceRetrieve a set of applications are currently installed in the system.- Specified by:
getApplicationsin interfaceApplicationService- Returns:
- Set of applications.
-
getApplication
Description copied from interface:ApplicationServiceReturns the application that has the given name- Specified by:
getApplicationin interfaceApplicationService- 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
Description copied from interface:ApplicationServiceGets the application Profile features on the system.- Specified by:
getInstallationProfilesin interfaceApplicationService- Returns:
- the installation profiles.
-
getAllFeatures
Description copied from interface:ApplicationServiceReturns List of FeatureDtos with repository and status information- Specified by:
getAllFeaturesin interfaceApplicationService- Returns:
-
isPermittedToViewFeature
-
setPermissions
public void setPermissions(ddf.security.permission.Permissions permissions)
-