|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the information about a stored application service.
Stored application services can be created by applications that have a permission to store applications for an organisation_id.
Stored application services are uniquely identified within the terminal by the combination of the organisation_id and service_id.
Method Summary | |
Locator |
getLocator()
Gets the locator for this stored application service. |
java.lang.String |
getName()
Returns the name of the stored application service as defined when the stored application service was created. |
int |
getOrganisationId()
Return the organisation id of this stored application service |
int |
getServiceId()
Return the service id of this stored application service |
ServiceInformationType |
getServiceInformationType()
Returns the service information format of this object. |
ServiceType |
getServiceType()
Returns the type of this service. |
boolean |
hasMultipleInstances()
Indicates whether the service represented by this Service is available on multiple transports. |
boolean |
isSelectable()
Test whether this service is selectable. |
void |
removeService()
Remove the whole stored application service from the terminal. |
SIRequest |
retrieveDetails(SIRequestor requestor)
This method retrieves additional information about the service. |
Methods inherited from interface javax.tv.service.Service |
equals, hashCode |
Methods inherited from interface org.dvb.application.storage.ApplicationStorageController |
getStoredAppIDs, getVersionNumber, remove, remove, store, store, store, store |
Method Detail |
public int getOrganisationId()
public int getServiceId()
public Locator getLocator()
Locator
or a subclass. It is not required to
be an instance of any other public locator class in the platform
(e.g. DvbLocator
).
getLocator
in interface Service
public java.lang.String getName()
getName
in interface Service
public ServiceInformationType getServiceInformationType()
ServiceInformationType.UNKNOWN
.
public ServiceType getServiceType()
StoredApplicationServiceType.STORED_APPLICATION_SERVICE
.
getServiceType
in interface Service
public boolean hasMultipleInstances()
hasMultipleInstances
in interface Service
public void removeService() throws UserRejectedInstallException
If there are any applications installed in the stored application service, then the application calling this method should be prepared for the platform consulting the end user of the MHP terminal for permission to remove the stored service.
The platform shall not prompt the user for permission if no applications are installed in the service.
If the end user is asked and does not give permission to remove the service, none of the applications in the service shall be removed.
java.lang.SecurityException
- if the caller does not have an
ApplicationStoragePermission
with action "deleteService" and an organisation_id which
matches that of this service. Also thrown if the caller does
not have ApplicationStoragePermission with action
"removeService" for the organisation IDs of every application
installed in this service.
UserRejectedInstallException
- If the user chose not to
remove the applications in the service.public SIRequest retrieveDetails(SIRequestor requestor)
SIRequestFailureType
DATA_UNAVAILABLE
.
retrieveDetails
in interface Service
requestor
- The SIRequestor to be notified when this
operation completes.
public boolean isSelectable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |