org.dvb.application.privileged
Interface ApplicationStorageHandler


public interface ApplicationStorageHandler

Enables privileged applications to make decisions for some methods in the org.dvb.application.storage package. The methods in this interface correspond to the methods in ApplicationStorageController that throw a UserRejectedInstallException. If an application storage handler does not permit a request then it should return false and the original method shall fail with a UserRejectedInstallException.

Implementations of the methods in this interface should complete quickly and not perform time-consuming operations such as blocking I/O calls.


Method Summary
 boolean removeAppRequested(AppAttributes app)
          Called as part of the execution of ApplicationStorageController.remove(AppID).
 boolean removeAppRequested(AppAttributes[] app)
          Called as part of the execution of ApplicationStorageController.remove(AppID[]).
 boolean removeServiceRequested(ApplicationStorageController service)
          Called as part of the execution of ApplicationStorageController.removeService.
 boolean storeRequested(ApplicationStorageController service, AppAttributes[] app, boolean[] autoStart, java.lang.String[][] args)
          Called as part of the execution of ApplicationStorageController.store(AppProxy[],...).
 boolean storeRequested(ApplicationStorageController service, AppAttributes app, boolean autoStart, java.lang.String[] args)
          Called as part of the execution of ApplicationStorageController.store(AppProxy,...).
 boolean storeRequested(Locator fromService, ApplicationStorageController toService, AppAttributes[] app, boolean[] autoStart, java.lang.String[][] args)
          Called as part of the execution of ApplicationStorageController.store(Locator,AppID[],...).
 

Method Detail

storeRequested

boolean storeRequested(ApplicationStorageController service,
                       AppAttributes app,
                       boolean autoStart,
                       java.lang.String[] args)
Called as part of the execution of ApplicationStorageController.store(AppProxy,...).

Parameters:
service - the service for which store was called
app - the application to be installed
autoStart - the parameter as passed in the call to the store method
args - an array of strings where each entry is .equals to the corresponding entry passed in the call to the store method
Returns:
true if the storage request is permitted, otherwise false

storeRequested

boolean storeRequested(ApplicationStorageController service,
                       AppAttributes[] app,
                       boolean[] autoStart,
                       java.lang.String[][] args)
Called as part of the execution of ApplicationStorageController.store(AppProxy[],...).

Parameters:
service - the service for which store was called
app - the applications to be installed
autoStart - the array of booleans as passed in the call to the store method
args - an copy of the corresponding parameter passed to the store method where each entry is .equals to the corresponding entry passed in the call to the store method
Returns:
true if the storage request is permitted, otherwise false

storeRequested

boolean storeRequested(Locator fromService,
                       ApplicationStorageController toService,
                       AppAttributes[] app,
                       boolean[] autoStart,
                       java.lang.String[][] args)
Called as part of the execution of ApplicationStorageController.store(Locator,AppID[],...).

Parameters:
fromService - the service containing the applications to be stored
toService - the service into which the applications are to be stored
app - the applications to be installed
autoStart - the array of booleans as passed in the call to the store method
args - an copy of the corresponding parameter passed to the store method where each entry is .equals to the corresponding entry passed in the call to the store method
Returns:
true if the storage request is permitted, otherwise false

removeServiceRequested

boolean removeServiceRequested(ApplicationStorageController service)
Called as part of the execution of ApplicationStorageController.removeService.

Parameters:
service - the service for which removeService was called
Returns:
true if the remove request is permitted, otherwise false

removeAppRequested

boolean removeAppRequested(AppAttributes app)
Called as part of the execution of ApplicationStorageController.remove(AppID).

Parameters:
app - the application to be removed
Returns:
true if the remove request is permitted, otherwise false

removeAppRequested

boolean removeAppRequested(AppAttributes[] app)
Called as part of the execution of ApplicationStorageController.remove(AppID[]).

Parameters:
app - the applications to be removed
Returns:
true if the remove request is permitted, otherwise false