public abstract class StoredApplicationServiceFactory extends Object
StoredApplicationService.remove or some MHP
terminal specific mechanism. i.e. they shall be returned by filterServices
both when passed an instance of ServiceTypeFilter constructed with the type
StoredApplicationServiceType.STORED_APPLICATION_SERVICE and when passed null to
list all known services.| Modifier | Constructor and Description |
|---|---|
protected |
StoredApplicationServiceFactory()
This constructor is provided for the use of implementations and specifications
which extend the present document.
|
| Modifier and Type | Method and Description |
|---|---|
abstract StoredApplicationService |
createStoredApplicationService(int organisation_id,
int service_id,
String serviceName)
Creates a new stored application service.
|
static StoredApplicationServiceFactory |
getInstance()
Get the singleton instance of this class, or null if and only if
this MHP implementation does not support stand-alone stored
applications.
|
protected StoredApplicationServiceFactory()
public static StoredApplicationServiceFactory getInstance()
public abstract StoredApplicationService createStoredApplicationService(int organisation_id, int service_id, String serviceName) throws ServiceAlreadyExistsException
organisation_id - the organisation_id of the organisation
to whom this service belongs toservice_id - unique identifier for this service within the
organisationserviceName - a name for the service that can be displayed to
the end user to identify this serviceServiceAlreadyExistsException - thrown if a stored application
service with the same
organisation_id and service_id
already exists in the terminalSecurityException - thrown if the application
calling this method does not have an ApplicationStoragePermission
with action "createService" for the organisation_id passed in
as the parameter.Copyright © 2012 code4tv.com. All Rights Reserved.