org.dvb.application.privileged
Class ApplicationStorageManager

java.lang.Object
  extended by org.ocap.application.AppManagerProxy
      extended by org.dvb.application.privileged.ApplicationStorageManager

public class ApplicationStorageManager
extends org.ocap.application.AppManagerProxy

Provides application management features and capabilities only appropriate for privileged applications. On systems where this class is supported, org.ocap.application.AppManagerProxy.getInstance shall return an instance of ApplicationStorageManager.


Method Summary
 void registerUnboundApp(Element element)
          Registers new unbound application entries.
 void setApplicationStorageHandler(ApplicationStorageHandler handler)
          Registers an ApplicationStorageHandler to become part of decisions about permitting the storing and removing of applications and services using the facilities provided by the org.dvb.application.storage package.
 
Methods inherited from class org.ocap.application.AppManagerProxy
getAddressingProperties, getInstance, getSecurityAddressableAttributes, getSupportedApplicationTypes, registerAddressingProperties, registerUnboundApp, removeAddressingProperties, setAppFilter, setApplicationPriority, setAppSignalHandler, setSecurityPolicyHandler, unregisterUnboundApp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setApplicationStorageHandler

public void setApplicationStorageHandler(ApplicationStorageHandler handler)
Registers an ApplicationStorageHandler to become part of decisions about permitting the storing and removing of applications and services using the facilities provided by the org.dvb.application.storage package. Only one handler can be registered at one time hence multiple calls to this method shall replace the handler set in the previous call. No handler being set shall be equivalent to a handler which always permits requests to succeed.

Parameters:
handler - either an ApplicationStorageHandler or null to remove the current handler if one is set
Throws:
java.lang.SecurityException - if the calling application does not have MonitorAppPermission("registrar")

registerUnboundApp

public void registerUnboundApp(Element element)
Registers new unbound application entries.

Parameters:
element - an ApplicationList element containing the new or updated XAIT information
Throws:
java.lang.SecurityException - if the caller does not have MonitorAppPermission("registrar")
java.lang.IllegalArgumentException - if the element is not a root element whose value is "ApplicationList"