de.icsy.services.voip.supp
Class CCBSServicePreferencesBindingImpl

java.lang.Object
  extended by de.icsy.services.voip.supp.CCBSServicePreferencesBindingImpl
All Implemented Interfaces:
java.rmi.Remote, javax.xml.rpc.server.ServiceLifecycle, ServicePreferencesPortType

public class CCBSServicePreferencesBindingImpl
extends java.lang.Object
implements javax.xml.rpc.server.ServiceLifecycle, ServicePreferencesPortType

This interface is intended for managing a service's preferences.


Constructor Summary
CCBSServicePreferencesBindingImpl()
           
 
Method Summary
 void changeDependencySetting(SSOInformation sso, javax.xml.namespace.QName portType, DependencySetting dependencySetting)
          Changes a dependency setting for a port type.
 void destroy()
           
 PreferencePropertyArray getProperties(SSOInformation sso)
          Returns all the properties the service has.
 java.lang.String getProperty(SSOInformation sso, java.lang.String propertyName)
          Returns the current value of the given property.
 java.lang.String getPropertyDefaultValue(SSOInformation sso, java.lang.String propertyName)
          Returns the default value for a given property.
 PropertyNameArray getPropertyNames(SSOInformation sso)
          Returns all the property names the service understands.
 StringArray getPropertyOptions(SSOInformation sso, java.lang.String propertyName)
          Returns the options of the given property.
 PropertyType getPropertyType(SSOInformation sso, java.lang.String propertyName)
          Returns the type of the given property.
 DependencyArray getResourceDependencies(SSOInformation sso)
          Returns the resource types set for the service.
 DependencyArray getServiceDependencies(SSOInformation sso)
          Returns additional service types set for the service.
 void init(java.lang.Object context)
           
 void setProperty(SSOInformation sso, java.lang.String propertyName, java.lang.String propertyValue)
          Sets the value of the given property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCBSServicePreferencesBindingImpl

public CCBSServicePreferencesBindingImpl()
Method Detail

init

public void init(java.lang.Object context)
          throws javax.xml.rpc.ServiceException
Specified by:
init in interface javax.xml.rpc.server.ServiceLifecycle
Throws:
javax.xml.rpc.ServiceException

destroy

public void destroy()
Specified by:
destroy in interface javax.xml.rpc.server.ServiceLifecycle

getProperties

public PreferencePropertyArray getProperties(SSOInformation sso)
                                      throws java.rmi.RemoteException,
                                             AuthorizationFault,
                                             IllegalArgumentFault,
                                             ServiceMigratedFault,
                                             ServiceNotReadyFault,
                                             ServiceLimitReachedFault
Returns all the properties the service has.

Specified by:
getProperties in interface ServicePreferencesPortType
Parameters:
sso -
Returns:
basic:PreferencePropertyArray
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getPropertyNames

public PropertyNameArray getPropertyNames(SSOInformation sso)
                                   throws java.rmi.RemoteException,
                                          AuthorizationFault,
                                          IllegalArgumentFault,
                                          ServiceMigratedFault,
                                          ServiceNotReadyFault,
                                          ServiceLimitReachedFault
Returns all the property names the service understands.

Specified by:
getPropertyNames in interface ServicePreferencesPortType
Parameters:
sso -
Returns:
basic:PropertyNameArray
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getPropertyType

public PropertyType getPropertyType(SSOInformation sso,
                                    java.lang.String propertyName)
                             throws java.rmi.RemoteException,
                                    AuthorizationFault,
                                    IllegalArgumentFault,
                                    ServiceMigratedFault,
                                    ServiceNotReadyFault,
                                    ServiceLimitReachedFault
Returns the type of the given property.

Specified by:
getPropertyType in interface ServicePreferencesPortType
Parameters:
sso -
propertyName -
Returns:
basic:PropertyType
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getPropertyOptions

public StringArray getPropertyOptions(SSOInformation sso,
                                      java.lang.String propertyName)
                               throws java.rmi.RemoteException,
                                      AuthorizationFault,
                                      IllegalArgumentFault,
                                      ServiceMigratedFault,
                                      ServiceNotReadyFault,
                                      ServiceLimitReachedFault
Returns the options of the given property. The property will only accept values that adhere to these options.

Specified by:
getPropertyOptions in interface ServicePreferencesPortType
Parameters:
sso -
propertyName -
Returns:
basic:StringArray
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getPropertyDefaultValue

public java.lang.String getPropertyDefaultValue(SSOInformation sso,
                                                java.lang.String propertyName)
                                         throws java.rmi.RemoteException,
                                                AuthorizationFault,
                                                IllegalArgumentFault,
                                                ServiceMigratedFault,
                                                ServiceNotReadyFault,
                                                ServiceLimitReachedFault
Returns the default value for a given property. Can be used to reset a service property to the default value again.

Specified by:
getPropertyDefaultValue in interface ServicePreferencesPortType
Parameters:
sso -
propertyName -
Returns:
basic:String
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getProperty

public java.lang.String getProperty(SSOInformation sso,
                                    java.lang.String propertyName)
                             throws java.rmi.RemoteException,
                                    AuthorizationFault,
                                    IllegalArgumentFault,
                                    ServiceMigratedFault,
                                    ServiceNotReadyFault,
                                    ServiceLimitReachedFault
Returns the current value of the given property. If the property has not been set, the default value will be returned.

Specified by:
getProperty in interface ServicePreferencesPortType
Parameters:
sso -
propertyName -
Returns:
basic:String
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

setProperty

public void setProperty(SSOInformation sso,
                        java.lang.String propertyName,
                        java.lang.String propertyValue)
                 throws java.rmi.RemoteException,
                        AuthorizationFault,
                        IllegalArgumentFault,
                        ServiceMigratedFault,
                        ServiceNotReadyFault,
                        ServiceLimitReachedFault
Sets the value of the given property.

Specified by:
setProperty in interface ServicePreferencesPortType
Parameters:
sso -
propertyName -
propertyValue -
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getResourceDependencies

public DependencyArray getResourceDependencies(SSOInformation sso)
                                        throws java.rmi.RemoteException,
                                               AuthorizationFault,
                                               IllegalArgumentFault,
                                               ServiceMigratedFault,
                                               ServiceNotReadyFault,
                                               ServiceLimitReachedFault
Returns the resource types set for the service. The service will then use these resources to fulfill its task. If the user did not specify the resources, the service can decide to either use its own resources or to raise a fault.

Specified by:
getResourceDependencies in interface ServicePreferencesPortType
Parameters:
sso -
Returns:
basic:DependencyArray
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

getServiceDependencies

public DependencyArray getServiceDependencies(SSOInformation sso)
                                       throws java.rmi.RemoteException,
                                              AuthorizationFault,
                                              IllegalArgumentFault,
                                              ServiceMigratedFault,
                                              ServiceNotReadyFault,
                                              ServiceLimitReachedFault
Returns additional service types set for the service. The service will then use these services to fulfill its task. If the user did not specify the resources, the service can decide to either use its own resources or to raise a fault.

Specified by:
getServiceDependencies in interface ServicePreferencesPortType
Parameters:
sso -
Returns:
basic:DependencyArray
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault

changeDependencySetting

public void changeDependencySetting(SSOInformation sso,
                                    javax.xml.namespace.QName portType,
                                    DependencySetting dependencySetting)
                             throws java.rmi.RemoteException,
                                    AuthorizationFault,
                                    IllegalArgumentFault,
                                    ServiceMigratedFault,
                                    ServiceNotReadyFault,
                                    ServiceLimitReachedFault
Changes a dependency setting for a port type.

Specified by:
changeDependencySetting in interface ServicePreferencesPortType
Parameters:
sso -
portType -
dependencySetting -
Throws:
java.rmi.RemoteException
AuthorizationFault
IllegalArgumentFault
ServiceMigratedFault
ServiceNotReadyFault
ServiceLimitReachedFault