Change the underlying type of IntentId

- Change the type from String to long
- Change the argument of the constructor of Intent
- Adapt PacketConnectivityIntent and OpticalConnectivityIntent
  for these change

Change-Id: Iec7154c7d87c3a598fb5b55d886fa9775b3ddef0
diff --git a/src/main/java/net/onrc/onos/api/intent/OpticalConnectivityIntent.java b/src/main/java/net/onrc/onos/api/intent/OpticalConnectivityIntent.java
index 89f6208..e9d6171 100644
--- a/src/main/java/net/onrc/onos/api/intent/OpticalConnectivityIntent.java
+++ b/src/main/java/net/onrc/onos/api/intent/OpticalConnectivityIntent.java
@@ -25,7 +25,7 @@
      * @param srcSwitchPort The source transponder port.
      * @param dstSwitchPort The destination transponder port.
      */
-    public OpticalConnectivityIntent(String id,
+    public OpticalConnectivityIntent(IntentId id,
             SwitchPort srcSwitchPort, SwitchPort dstSwitchPort) {
         super(id);
         this.srcSwitchPort = srcSwitchPort;