You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by do...@apache.org on 2007/05/01 01:15:18 UTC

svn commit: r533875 [14/30] - in /incubator/felix/sandbox/donsez/upnp.devicegen: ./ doc/ generation/ generation/res/ generation/res/device/ generation/res/service/ manifest/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src...

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/Layer3Forwarding.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/Layer3Forwarding.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/Layer3Forwarding.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/Layer3Forwarding.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,253 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+	
+
+public class Layer3Forwarding extends AbstractUPnPService {
+	
+		
+	private Layer3ForwardingModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public Layer3Forwarding(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		Layer3ForwardingModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"DefaultConnectionService",
+		new DefaultConnectionServiceStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"SetDefaultConnectionService",
+		new SetDefaultConnectionServiceAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetDefaultConnectionService",
+		new GetDefaultConnectionServiceAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class DefaultConnectionServiceStateVariable
+public class DefaultConnectionServiceStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="DefaultConnectionService";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private Layer3ForwardingModel model;
+	
+	public DefaultConnectionServiceStateVariable(
+		UPnPService upnpService,
+		Layer3ForwardingModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getDefaultConnectionServiceStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class SetDefaultConnectionServiceAction extends AbstractUPnPAction {
+
+	Layer3ForwardingModel model;
+	
+	// HERE specific action members
+	
+	public SetDefaultConnectionServiceAction(
+	    UPnPService upnpService,
+		Layer3ForwardingModel model
+	){
+		super(
+			upnpService,
+			"SetDefaultConnectionService",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewDefaultConnectionService",
+				upnpService.getStateVariable("DefaultConnectionService")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newDefaultConnectionService = (java.lang.String) _args.get("NewDefaultConnectionService");
+		
+
+		// invoke model
+		
+		 model.setDefaultConnectionService(
+			StringHolder.toValue(
+			newDefaultConnectionService)
+		
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetDefaultConnectionServiceAction extends AbstractUPnPAction {
+
+	Layer3ForwardingModel model;
+	
+	// HERE specific action members
+	
+	public GetDefaultConnectionServiceAction(
+	    UPnPService upnpService,
+		Layer3ForwardingModel model
+	){
+		super(
+			upnpService,
+			"GetDefaultConnectionService",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"NewDefaultConnectionService",
+				upnpService.getStateVariable("DefaultConnectionService")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder newDefaultConnectionService = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getDefaultConnectionService(
+			newDefaultConnectionService
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewDefaultConnectionService",newDefaultConnectionService.getObject());
+			// java.lang.String
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/Layer3Forwarding.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/LinkAuthentication.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/LinkAuthentication.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/LinkAuthentication.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/LinkAuthentication.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,1861 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+	
+
+public class LinkAuthentication extends AbstractUPnPService {
+	
+		
+	private LinkAuthenticationModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public LinkAuthentication(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		LinkAuthenticationModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"NumberOfEntries",
+		new NumberOfEntriesStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Identifier",
+		new IdentifierStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Secret",
+		new SecretStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"SecretType",
+		new SecretTypeStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"AuthType",
+		new AuthTypeStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"AuthState",
+		new AuthStateStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"CredentialState",
+		new CredentialStateStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Description",
+		new DescriptionStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"MACAddress",
+		new MACAddressStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"CredentialDuration",
+		new CredentialDurationStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"LastChange",
+		new LastChangeStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"LinkedIdentifier",
+		new LinkedIdentifierStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"LastError",
+		new LastErrorStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"GetGenericEntry",
+		new GetGenericEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetSpecificEntry",
+		new GetSpecificEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"AddEntry",
+		new AddEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"UpdateEntry",
+		new UpdateEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"DeleteEntry",
+		new DeleteEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetNumberOfEntries",
+		new GetNumberOfEntriesAction(this,model)
+	);
+
+
+
+	actions.put(
+		"FactoryDefaultReset",
+		new FactoryDefaultResetAction(this,model)
+	);
+
+
+
+	actions.put(
+		"ResetAuthentication",
+		new ResetAuthenticationAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class NumberOfEntriesStateVariable
+public class NumberOfEntriesStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="NumberOfEntries";
+	public final static String DATATYPE="ui2";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public NumberOfEntriesStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 0
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getNumberOfEntriesStateVariableValue();
+		
+	}
+};
+
+
+// class IdentifierStateVariable
+public class IdentifierStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Identifier";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public IdentifierStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getIdentifierStateVariableValue();
+		
+	}
+};
+
+
+// class SecretStateVariable
+public class SecretStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Secret";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public SecretStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getSecretStateVariableValue();
+		
+	}
+};
+
+
+// class SecretTypeStateVariable
+public class SecretTypeStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="SecretType";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public SecretTypeStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","TextPassword"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","X509Certificate"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","PublicKey"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","PublicKeyHash160"));
+
+		this.setallowedValueList(allowedValueList);
+	*/
+
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getSecretTypeStateVariableValue();
+		
+	}
+};
+
+
+// class AuthTypeStateVariable
+public class AuthTypeStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="AuthType";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public AuthTypeStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","SharedSecret"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","ValidateCredentials"));
+
+		this.setallowedValueList(allowedValueList);
+	*/
+
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getAuthTypeStateVariableValue();
+		
+	}
+};
+
+
+// class AuthStateStateVariable
+public class AuthStateStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="AuthState";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public AuthStateStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Unconfigured
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Unconfigured"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Failed"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Succeeded"));
+
+		this.setallowedValueList(allowedValueList);
+	*/
+
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getAuthStateStateVariableValue();
+		
+	}
+};
+
+
+// class CredentialStateStateVariable
+public class CredentialStateStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="CredentialState";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public CredentialStateStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Unconfigured
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Unconfigured"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Pending"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Accepted"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Denied"));
+
+		this.setallowedValueList(allowedValueList);
+	*/
+
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getCredentialStateStateVariableValue();
+		
+	}
+};
+
+
+// class DescriptionStateVariable
+public class DescriptionStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Description";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public DescriptionStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getDescriptionStateVariableValue();
+		
+	}
+};
+
+
+// class MACAddressStateVariable
+public class MACAddressStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="MACAddress";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public MACAddressStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getMACAddressStateVariableValue();
+		
+	}
+};
+
+
+// class CredentialDurationStateVariable
+public class CredentialDurationStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="CredentialDuration";
+	public final static String DATATYPE="ui4";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public CredentialDurationStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 0
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getCredentialDurationStateVariableValue();
+		
+	}
+};
+
+
+// class LastChangeStateVariable
+public class LastChangeStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="LastChange";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public LastChangeStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getLastChangeStateVariableValue();
+		
+	}
+};
+
+
+// class LinkedIdentifierStateVariable
+public class LinkedIdentifierStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="LinkedIdentifier";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public LinkedIdentifierStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getLinkedIdentifierStateVariableValue();
+		
+	}
+};
+
+
+// class LastErrorStateVariable
+public class LastErrorStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="LastError";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private LinkAuthenticationModel model;
+	
+	public LastErrorStateVariable(
+		UPnPService upnpService,
+		LinkAuthenticationModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getLastErrorStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class GetGenericEntryAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public GetGenericEntryAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"GetGenericEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewIndex",
+				upnpService.getStateVariable("NumberOfEntries")
+			);
+		
+			addOutArg(
+				"NewIdentifier",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addOutArg(
+				"NewSecret",
+				upnpService.getStateVariable("Secret")
+			);
+		
+			addOutArg(
+				"NewSecretType",
+				upnpService.getStateVariable("SecretType")
+			);
+		
+			addOutArg(
+				"NewAuthType",
+				upnpService.getStateVariable("AuthType")
+			);
+		
+			addOutArg(
+				"NewAuthState",
+				upnpService.getStateVariable("AuthState")
+			);
+		
+			addOutArg(
+				"NewCredentialState",
+				upnpService.getStateVariable("CredentialState")
+			);
+		
+			addOutArg(
+				"NewDescription",
+				upnpService.getStateVariable("Description")
+			);
+		
+			addOutArg(
+				"NewMACAddress",
+				upnpService.getStateVariable("MACAddress")
+			);
+		
+			addOutArg(
+				"NewCredentialDuration",
+				upnpService.getStateVariable("CredentialDuration")
+			);
+		
+			addOutArg(
+				"NewLinkedIdentifier",
+				upnpService.getStateVariable("LinkedIdentifier")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.Integer newIndex = (java.lang.Integer) _args.get("NewIndex");
+		StringHolder newIdentifier = new StringHolder();
+		StringHolder newSecret = new StringHolder();
+		StringHolder newSecretType = new StringHolder();
+		StringHolder newAuthType = new StringHolder();
+		StringHolder newAuthState = new StringHolder();
+		StringHolder newCredentialState = new StringHolder();
+		StringHolder newDescription = new StringHolder();
+		StringHolder newMACAddress = new StringHolder();
+		LongHolder newCredentialDuration = new LongHolder();
+		StringHolder newLinkedIdentifier = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getGenericEntry(
+			IntegerHolder.toValue(
+			newIndex)
+		,
+
+newIdentifier,
+
+newSecret,
+
+newSecretType,
+
+newAuthType,
+
+newAuthState,
+
+newCredentialState,
+
+newDescription,
+
+newMACAddress,
+
+newCredentialDuration,
+
+newLinkedIdentifier
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewIdentifier",newIdentifier.getObject());
+			// java.lang.String
+			_result.put("NewSecret",newSecret.getObject());
+			// java.lang.String
+			_result.put("NewSecretType",newSecretType.getObject());
+			// java.lang.String
+			_result.put("NewAuthType",newAuthType.getObject());
+			// java.lang.String
+			_result.put("NewAuthState",newAuthState.getObject());
+			// java.lang.String
+			_result.put("NewCredentialState",newCredentialState.getObject());
+			// java.lang.String
+			_result.put("NewDescription",newDescription.getObject());
+			// java.lang.String
+			_result.put("NewMACAddress",newMACAddress.getObject());
+			// java.lang.String
+			_result.put("NewCredentialDuration",newCredentialDuration.getObject());
+			// java.lang.Long
+			_result.put("NewLinkedIdentifier",newLinkedIdentifier.getObject());
+			// java.lang.String
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetSpecificEntryAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public GetSpecificEntryAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"GetSpecificEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewIdentifierKey",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addOutArg(
+				"NewIdentifier",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addOutArg(
+				"NewSecret",
+				upnpService.getStateVariable("Secret")
+			);
+		
+			addOutArg(
+				"NewSecretType",
+				upnpService.getStateVariable("SecretType")
+			);
+		
+			addOutArg(
+				"NewAuthType",
+				upnpService.getStateVariable("AuthType")
+			);
+		
+			addOutArg(
+				"NewAuthState",
+				upnpService.getStateVariable("AuthState")
+			);
+		
+			addOutArg(
+				"NewCredentialState",
+				upnpService.getStateVariable("CredentialState")
+			);
+		
+			addOutArg(
+				"NewDescription",
+				upnpService.getStateVariable("Description")
+			);
+		
+			addOutArg(
+				"NewMACAddress",
+				upnpService.getStateVariable("MACAddress")
+			);
+		
+			addOutArg(
+				"NewCredentialDuration",
+				upnpService.getStateVariable("CredentialDuration")
+			);
+		
+			addOutArg(
+				"NewLinkedIdentifier",
+				upnpService.getStateVariable("LinkedIdentifier")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newIdentifierKey = (java.lang.String) _args.get("NewIdentifierKey");
+		StringHolder newIdentifier = new StringHolder();
+		StringHolder newSecret = new StringHolder();
+		StringHolder newSecretType = new StringHolder();
+		StringHolder newAuthType = new StringHolder();
+		StringHolder newAuthState = new StringHolder();
+		StringHolder newCredentialState = new StringHolder();
+		StringHolder newDescription = new StringHolder();
+		StringHolder newMACAddress = new StringHolder();
+		LongHolder newCredentialDuration = new LongHolder();
+		StringHolder newLinkedIdentifier = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getSpecificEntry(
+			StringHolder.toValue(
+			newIdentifierKey)
+		,
+
+newIdentifier,
+
+newSecret,
+
+newSecretType,
+
+newAuthType,
+
+newAuthState,
+
+newCredentialState,
+
+newDescription,
+
+newMACAddress,
+
+newCredentialDuration,
+
+newLinkedIdentifier
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewIdentifier",newIdentifier.getObject());
+			// java.lang.String
+			_result.put("NewSecret",newSecret.getObject());
+			// java.lang.String
+			_result.put("NewSecretType",newSecretType.getObject());
+			// java.lang.String
+			_result.put("NewAuthType",newAuthType.getObject());
+			// java.lang.String
+			_result.put("NewAuthState",newAuthState.getObject());
+			// java.lang.String
+			_result.put("NewCredentialState",newCredentialState.getObject());
+			// java.lang.String
+			_result.put("NewDescription",newDescription.getObject());
+			// java.lang.String
+			_result.put("NewMACAddress",newMACAddress.getObject());
+			// java.lang.String
+			_result.put("NewCredentialDuration",newCredentialDuration.getObject());
+			// java.lang.Long
+			_result.put("NewLinkedIdentifier",newLinkedIdentifier.getObject());
+			// java.lang.String
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class AddEntryAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public AddEntryAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"AddEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewIdentifier",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addInArg(
+				"NewSecret",
+				upnpService.getStateVariable("Secret")
+			);
+		
+			addInArg(
+				"NewSecretType",
+				upnpService.getStateVariable("SecretType")
+			);
+		
+			addInArg(
+				"NewAuthType",
+				upnpService.getStateVariable("AuthType")
+			);
+		
+			addInArg(
+				"NewAuthState",
+				upnpService.getStateVariable("AuthState")
+			);
+		
+			addInArg(
+				"NewCredentialState",
+				upnpService.getStateVariable("CredentialState")
+			);
+		
+			addInArg(
+				"NewDescription",
+				upnpService.getStateVariable("Description")
+			);
+		
+			addInArg(
+				"NewMACAddress",
+				upnpService.getStateVariable("MACAddress")
+			);
+		
+			addInArg(
+				"NewCredentialDuration",
+				upnpService.getStateVariable("CredentialDuration")
+			);
+		
+			addInArg(
+				"NewLinkedIdentifier",
+				upnpService.getStateVariable("LinkedIdentifier")
+			);
+		
+			addOutArg(
+				"NewNumberOfEntries",
+				upnpService.getStateVariable("NumberOfEntries")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newIdentifier = (java.lang.String) _args.get("NewIdentifier");
+		java.lang.String newSecret = (java.lang.String) _args.get("NewSecret");
+		java.lang.String newSecretType = (java.lang.String) _args.get("NewSecretType");
+		java.lang.String newAuthType = (java.lang.String) _args.get("NewAuthType");
+		java.lang.String newAuthState = (java.lang.String) _args.get("NewAuthState");
+		java.lang.String newCredentialState = (java.lang.String) _args.get("NewCredentialState");
+		java.lang.String newDescription = (java.lang.String) _args.get("NewDescription");
+		java.lang.String newMACAddress = (java.lang.String) _args.get("NewMACAddress");
+		java.lang.Long newCredentialDuration = (java.lang.Long) _args.get("NewCredentialDuration");
+		java.lang.String newLinkedIdentifier = (java.lang.String) _args.get("NewLinkedIdentifier");
+		IntegerHolder newNumberOfEntries = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.addEntry(
+			StringHolder.toValue(
+			newIdentifier)
+		,
+
+StringHolder.toValue(
+			newSecret)
+		,
+
+StringHolder.toValue(
+			newSecretType)
+		,
+
+StringHolder.toValue(
+			newAuthType)
+		,
+
+StringHolder.toValue(
+			newAuthState)
+		,
+
+StringHolder.toValue(
+			newCredentialState)
+		,
+
+StringHolder.toValue(
+			newDescription)
+		,
+
+StringHolder.toValue(
+			newMACAddress)
+		,
+
+LongHolder.toValue(
+			newCredentialDuration)
+		,
+
+StringHolder.toValue(
+			newLinkedIdentifier)
+		,
+
+newNumberOfEntries
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewNumberOfEntries",newNumberOfEntries.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class UpdateEntryAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public UpdateEntryAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"UpdateEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewIdentifier",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addInArg(
+				"NewSecret",
+				upnpService.getStateVariable("Secret")
+			);
+		
+			addInArg(
+				"NewSecretType",
+				upnpService.getStateVariable("SecretType")
+			);
+		
+			addInArg(
+				"NewAuthType",
+				upnpService.getStateVariable("AuthType")
+			);
+		
+			addInArg(
+				"NewAuthState",
+				upnpService.getStateVariable("AuthState")
+			);
+		
+			addInArg(
+				"NewCredentialState",
+				upnpService.getStateVariable("CredentialState")
+			);
+		
+			addInArg(
+				"NewDescription",
+				upnpService.getStateVariable("Description")
+			);
+		
+			addInArg(
+				"NewMACAddress",
+				upnpService.getStateVariable("MACAddress")
+			);
+		
+			addInArg(
+				"NewCredentialDuration",
+				upnpService.getStateVariable("CredentialDuration")
+			);
+		
+			addInArg(
+				"NewLinkedIdentifier",
+				upnpService.getStateVariable("LinkedIdentifier")
+			);
+		
+			addOutArg(
+				"NewNumberOfEntries",
+				upnpService.getStateVariable("NumberOfEntries")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newIdentifier = (java.lang.String) _args.get("NewIdentifier");
+		java.lang.String newSecret = (java.lang.String) _args.get("NewSecret");
+		java.lang.String newSecretType = (java.lang.String) _args.get("NewSecretType");
+		java.lang.String newAuthType = (java.lang.String) _args.get("NewAuthType");
+		java.lang.String newAuthState = (java.lang.String) _args.get("NewAuthState");
+		java.lang.String newCredentialState = (java.lang.String) _args.get("NewCredentialState");
+		java.lang.String newDescription = (java.lang.String) _args.get("NewDescription");
+		java.lang.String newMACAddress = (java.lang.String) _args.get("NewMACAddress");
+		java.lang.Long newCredentialDuration = (java.lang.Long) _args.get("NewCredentialDuration");
+		java.lang.String newLinkedIdentifier = (java.lang.String) _args.get("NewLinkedIdentifier");
+		IntegerHolder newNumberOfEntries = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.updateEntry(
+			StringHolder.toValue(
+			newIdentifier)
+		,
+
+StringHolder.toValue(
+			newSecret)
+		,
+
+StringHolder.toValue(
+			newSecretType)
+		,
+
+StringHolder.toValue(
+			newAuthType)
+		,
+
+StringHolder.toValue(
+			newAuthState)
+		,
+
+StringHolder.toValue(
+			newCredentialState)
+		,
+
+StringHolder.toValue(
+			newDescription)
+		,
+
+StringHolder.toValue(
+			newMACAddress)
+		,
+
+LongHolder.toValue(
+			newCredentialDuration)
+		,
+
+StringHolder.toValue(
+			newLinkedIdentifier)
+		,
+
+newNumberOfEntries
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewNumberOfEntries",newNumberOfEntries.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class DeleteEntryAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public DeleteEntryAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"DeleteEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewIdentifier",
+				upnpService.getStateVariable("Identifier")
+			);
+		
+			addOutArg(
+				"NewNumberOfEntries",
+				upnpService.getStateVariable("NumberOfEntries")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newIdentifier = (java.lang.String) _args.get("NewIdentifier");
+		IntegerHolder newNumberOfEntries = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.deleteEntry(
+			StringHolder.toValue(
+			newIdentifier)
+		,
+
+newNumberOfEntries
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewNumberOfEntries",newNumberOfEntries.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetNumberOfEntriesAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public GetNumberOfEntriesAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"GetNumberOfEntries",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"NewNumberOfEntries",
+				upnpService.getStateVariable("NumberOfEntries")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	IntegerHolder newNumberOfEntries = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.getNumberOfEntries(
+			newNumberOfEntries
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewNumberOfEntries",newNumberOfEntries.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class FactoryDefaultResetAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public FactoryDefaultResetAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"FactoryDefaultReset",
+			""
+		);
+		this.model=model;
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	
+
+		// invoke model
+		
+		 model.factoryDefaultReset(
+			
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class ResetAuthenticationAction extends AbstractUPnPAction {
+
+	LinkAuthenticationModel model;
+	
+	// HERE specific action members
+	
+	public ResetAuthenticationAction(
+	    UPnPService upnpService,
+		LinkAuthenticationModel model
+	){
+		super(
+			upnpService,
+			"ResetAuthentication",
+			""
+		);
+		this.model=model;
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	
+
+		// invoke model
+		
+		 model.resetAuthentication(
+			
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/LinkAuthentication.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/RadiusClient.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/RadiusClient.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/RadiusClient.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/RadiusClient.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,768 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+	
+
+public class RadiusClient extends AbstractUPnPService {
+	
+		
+	private RadiusClientModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public RadiusClient(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		RadiusClientModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"NumberOfAuthServerEntries",
+		new NumberOfAuthServerEntriesStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"AuthServerIPAddress",
+		new AuthServerIPAddressStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"AuthServerPortNumber",
+		new AuthServerPortNumberStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"AuthServerSharedSecret",
+		new AuthServerSharedSecretStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"GetGenericAuthServerEntry",
+		new GetGenericAuthServerEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetSpecificAuthServerEntry",
+		new GetSpecificAuthServerEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"AddAuthServerEntry",
+		new AddAuthServerEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"DeleteAuthServerEntry",
+		new DeleteAuthServerEntryAction(this,model)
+	);
+
+
+
+	actions.put(
+		"FactoryDefaultReset",
+		new FactoryDefaultResetAction(this,model)
+	);
+
+
+
+	actions.put(
+		"ResetAuthentication",
+		new ResetAuthenticationAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class NumberOfAuthServerEntriesStateVariable
+public class NumberOfAuthServerEntriesStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="NumberOfAuthServerEntries";
+	public final static String DATATYPE="ui2";
+	
+	// HERE specific state variable members
+	private RadiusClientModel model;
+	
+	public NumberOfAuthServerEntriesStateVariable(
+		UPnPService upnpService,
+		RadiusClientModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getNumberOfAuthServerEntriesStateVariableValue();
+		
+	}
+};
+
+
+// class AuthServerIPAddressStateVariable
+public class AuthServerIPAddressStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="AuthServerIPAddress";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private RadiusClientModel model;
+	
+	public AuthServerIPAddressStateVariable(
+		UPnPService upnpService,
+		RadiusClientModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getAuthServerIPAddressStateVariableValue();
+		
+	}
+};
+
+
+// class AuthServerPortNumberStateVariable
+public class AuthServerPortNumberStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="AuthServerPortNumber";
+	public final static String DATATYPE="ui2";
+	
+	// HERE specific state variable members
+	private RadiusClientModel model;
+	
+	public AuthServerPortNumberStateVariable(
+		UPnPService upnpService,
+		RadiusClientModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getAuthServerPortNumberStateVariableValue();
+		
+	}
+};
+
+
+// class AuthServerSharedSecretStateVariable
+public class AuthServerSharedSecretStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="AuthServerSharedSecret";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private RadiusClientModel model;
+	
+	public AuthServerSharedSecretStateVariable(
+		UPnPService upnpService,
+		RadiusClientModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 
+					null, // TODO maximum changed for 
+					// sendEventsAttribute
+	true,
+					true  // TODO required changed for  OR 
+		);
+		
+		this.model=model;
+
+		
+	}
+	
+	// TODO
+	
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+			
+	/**
+	 * invoked for the first notification just after a subscription
+	 * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+	 */
+	public Object getValue(){
+	
+		return model.getAuthServerSharedSecretStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class GetGenericAuthServerEntryAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public GetGenericAuthServerEntryAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"GetGenericAuthServerEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewAuthServerIndex",
+				upnpService.getStateVariable("NumberOfAuthServerEntries")
+			);
+		
+			addOutArg(
+				"NewAuthServerIPAddress",
+				upnpService.getStateVariable("AuthServerIPAddress")
+			);
+		
+			addOutArg(
+				"NewAuthServerPortNumber",
+				upnpService.getStateVariable("AuthServerPortNumber")
+			);
+		
+			addOutArg(
+				"NewAuthServerSharedSecret",
+				upnpService.getStateVariable("AuthServerSharedSecret")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.Integer newAuthServerIndex = (java.lang.Integer) _args.get("NewAuthServerIndex");
+		StringHolder newAuthServerIPAddress = new StringHolder();
+		IntegerHolder newAuthServerPortNumber = new IntegerHolder();
+		StringHolder newAuthServerSharedSecret = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getGenericAuthServerEntry(
+			IntegerHolder.toValue(
+			newAuthServerIndex)
+		,
+
+newAuthServerIPAddress,
+
+newAuthServerPortNumber,
+
+newAuthServerSharedSecret
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewAuthServerIPAddress",newAuthServerIPAddress.getObject());
+			// java.lang.String
+			_result.put("NewAuthServerPortNumber",newAuthServerPortNumber.getObject());
+			// java.lang.Integer
+			_result.put("NewAuthServerSharedSecret",newAuthServerSharedSecret.getObject());
+			// java.lang.String
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetSpecificAuthServerEntryAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public GetSpecificAuthServerEntryAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"GetSpecificAuthServerEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewAuthServerIPAddress",
+				upnpService.getStateVariable("AuthServerIPAddress")
+			);
+		
+			addInArg(
+				"NewAuthServerPortNumber",
+				upnpService.getStateVariable("AuthServerPortNumber")
+			);
+		
+			addOutArg(
+				"NewAuthServerSharedSecret",
+				upnpService.getStateVariable("AuthServerSharedSecret")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newAuthServerIPAddress = (java.lang.String) _args.get("NewAuthServerIPAddress");
+		java.lang.Integer newAuthServerPortNumber = (java.lang.Integer) _args.get("NewAuthServerPortNumber");
+		StringHolder newAuthServerSharedSecret = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getSpecificAuthServerEntry(
+			StringHolder.toValue(
+			newAuthServerIPAddress)
+		,
+
+IntegerHolder.toValue(
+			newAuthServerPortNumber)
+		,
+
+newAuthServerSharedSecret
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("NewAuthServerSharedSecret",newAuthServerSharedSecret.getObject());
+			// java.lang.String
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class AddAuthServerEntryAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public AddAuthServerEntryAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"AddAuthServerEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewAuthServerIPAddress",
+				upnpService.getStateVariable("AuthServerIPAddress")
+			);
+		
+			addInArg(
+				"NewAuthServerPortNumber",
+				upnpService.getStateVariable("AuthServerPortNumber")
+			);
+		
+			addInArg(
+				"NewAuthServerSharedSecret",
+				upnpService.getStateVariable("AuthServerSharedSecret")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newAuthServerIPAddress = (java.lang.String) _args.get("NewAuthServerIPAddress");
+		java.lang.Integer newAuthServerPortNumber = (java.lang.Integer) _args.get("NewAuthServerPortNumber");
+		java.lang.String newAuthServerSharedSecret = (java.lang.String) _args.get("NewAuthServerSharedSecret");
+		
+
+		// invoke model
+		
+		 model.addAuthServerEntry(
+			StringHolder.toValue(
+			newAuthServerIPAddress)
+		,
+
+IntegerHolder.toValue(
+			newAuthServerPortNumber)
+		,
+
+StringHolder.toValue(
+			newAuthServerSharedSecret)
+		
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class DeleteAuthServerEntryAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public DeleteAuthServerEntryAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"DeleteAuthServerEntry",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewAuthServerIPAddress",
+				upnpService.getStateVariable("AuthServerIPAddress")
+			);
+		
+			addInArg(
+				"NewAuthServerPortNumber",
+				upnpService.getStateVariable("AuthServerPortNumber")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newAuthServerIPAddress = (java.lang.String) _args.get("NewAuthServerIPAddress");
+		java.lang.Integer newAuthServerPortNumber = (java.lang.Integer) _args.get("NewAuthServerPortNumber");
+		
+
+		// invoke model
+		
+		 model.deleteAuthServerEntry(
+			StringHolder.toValue(
+			newAuthServerIPAddress)
+		,
+
+IntegerHolder.toValue(
+			newAuthServerPortNumber)
+		
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class FactoryDefaultResetAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public FactoryDefaultResetAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"FactoryDefaultReset",
+			""
+		);
+		this.model=model;
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	
+
+		// invoke model
+		
+		 model.factoryDefaultReset(
+			
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class ResetAuthenticationAction extends AbstractUPnPAction {
+
+	RadiusClientModel model;
+	
+	// HERE specific action members
+	
+	public ResetAuthenticationAction(
+	    UPnPService upnpService,
+		RadiusClientModel model
+	){
+		super(
+			upnpService,
+			"ResetAuthentication",
+			""
+		);
+		this.model=model;
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	
+
+		// invoke model
+		
+		 model.resetAuthentication(
+			
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/RadiusClient.java
------------------------------------------------------------------------------
    svn:eol-style = native