Revision: e05c3d4e0957
Author: Sergey Vetyutnev <[email protected]>
Date: Wed Jul 24 09:54:02 2013
Log: Adding PurgeMS MAP operation
http://code.google.com/p/jain-slee/source/detail?r=e05c3d4e0957&repo=ss7
Added:
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/locationManagement/wrappers/PurgeMSRequestWrapper.java
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/locationManagement/wrappers/PurgeMSResponseWrapper.java
Modified:
/resources/map/events/src/main/resources/META-INF/event-jar.xml
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/MAPResourceAdaptor.java
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPDialogMobilityWrapper.java
/resources/map/ratype/src/main/resources/META-INF/resource-adaptor-type-jar.xml
=======================================
--- /dev/null
+++
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/locationManagement/wrappers/PurgeMSRequestWrapper.java
Wed Jul 24 09:54:02 2013
@@ -0,0 +1,70 @@
+/*
+ * TeleStax, Open Source Cloud Communications Copyright 2012.
+ * and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers;
+
+import org.mobicents.protocols.ss7.map.api.primitives.IMSI;
+import org.mobicents.protocols.ss7.map.api.primitives.ISDNAddressString;
+import
org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
+import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSRequest;
+import
org.mobicents.slee.resource.map.service.mobility.wrappers.MAPDialogMobilityWrapper;
+import
org.mobicents.slee.resource.map.service.mobility.wrappers.MobilityMessageWrapper;
+
+/**
+ *
+ * @author sergey vetyutnev
+ *
+ */
+public class PurgeMSRequestWrapper extends
MobilityMessageWrapper<PurgeMSRequest> implements PurgeMSRequest {
+
+ private static final String EVENT_TYPE_NAME
= "ss7.map.service.mobility.locationManagement.PURGE_MS_REQUEST";
+
+ public PurgeMSRequestWrapper(MAPDialogMobilityWrapper mapDialog,
PurgeMSRequest req) {
+ super(mapDialog, EVENT_TYPE_NAME, req);
+ }
+
+ @Override
+ public IMSI getImsi() {
+ return this.wrappedEvent.getImsi();
+ }
+
+ @Override
+ public ISDNAddressString getVlrNumber() {
+ return this.wrappedEvent.getVlrNumber();
+ }
+
+ @Override
+ public ISDNAddressString getSgsnNumber() {
+ return this.wrappedEvent.getSgsnNumber();
+ }
+
+ @Override
+ public MAPExtensionContainer getExtensionContainer() {
+ return this.wrappedEvent.getExtensionContainer();
+ }
+
+ @Override
+ public String toString() {
+ return "PurgeMSRequest [wrapped=" + this.wrappedEvent + "]";
+ }
+
+}
=======================================
--- /dev/null
+++
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/locationManagement/wrappers/PurgeMSResponseWrapper.java
Wed Jul 24 09:54:02 2013
@@ -0,0 +1,68 @@
+/*
+ * TeleStax, Open Source Cloud Communications Copyright 2012.
+ * and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers;
+
+import
org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
+import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSResponse;
+import
org.mobicents.slee.resource.map.service.mobility.wrappers.MAPDialogMobilityWrapper;
+import
org.mobicents.slee.resource.map.service.mobility.wrappers.MobilityMessageWrapper;
+
+/**
+ *
+ * @author sergey vetyutnev
+ *
+ */
+public class PurgeMSResponseWrapper extends
MobilityMessageWrapper<PurgeMSResponse> implements PurgeMSResponse {
+
+ private static final String EVENT_TYPE_NAME
= "ss7.map.service.mobility.locationManagement.PURGE_MS_RESPONSE";
+
+ public PurgeMSResponseWrapper(MAPDialogMobilityWrapper mapDialog,
PurgeMSResponse req) {
+ super(mapDialog, EVENT_TYPE_NAME, req);
+ }
+
+ @Override
+ public boolean getFreezeTMSI() {
+ return this.wrappedEvent.getFreezeTMSI();
+ }
+
+ @Override
+ public boolean getFreezePTMSI() {
+ return this.wrappedEvent.getFreezePTMSI();
+ }
+
+ @Override
+ public MAPExtensionContainer getExtensionContainer() {
+ return this.wrappedEvent.getExtensionContainer();
+ }
+
+ @Override
+ public boolean getFreezeMTMSI() {
+ return this.wrappedEvent.getFreezeMTMSI();
+ }
+
+ @Override
+ public String toString() {
+ return "PurgeMSResponse [wrapped=" + this.wrappedEvent + "]";
+ }
+
+}
=======================================
--- /resources/map/events/src/main/resources/META-INF/event-jar.xml Fri Apr
19 02:54:30 2013
+++ /resources/map/events/src/main/resources/META-INF/event-jar.xml Wed Jul
24 09:54:02 2013
@@ -127,14 +127,14 @@
<event-type-version>1.0</event-type-version>
<event-class-name>org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.UpdateGprsLocationResponse</event-class-name>
</event-definition>
-
+
<event-definition>
<event-type-name>ss7.map.service.mobility.locationManagement.SEND_IDENTIFICATION_REQUEST</event-type-name>
<event-type-vendor>org.mobicents</event-type-vendor>
<event-type-version>1.0</event-type-version>
<event-class-name>org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.SendIdentificationRequest</event-class-name>
</event-definition>
-
+
<event-definition>
<event-type-name>ss7.map.service.mobility.locationManagement.SEND_IDENTIFICATION_RESPONSE</event-type-name>
<event-type-vendor>org.mobicents</event-type-vendor>
@@ -142,6 +142,20 @@
<event-class-name>org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.SendIdentificationResponse</event-class-name>
</event-definition>
+ <event-definition>
+
<event-type-name>ss7.map.service.mobility.locationManagement.PURGE_MS_REQUEST</event-type-name>
+ <event-type-vendor>org.mobicents</event-type-vendor>
+ <event-type-version>1.0</event-type-version>
+
<event-class-name>org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSRequest</event-class-name>
+ </event-definition>
+
+ <event-definition>
+
<event-type-name>ss7.map.service.mobility.locationManagement.PURGE_MS_RESPONSE</event-type-name>
+ <event-type-vendor>org.mobicents</event-type-vendor>
+ <event-type-version>1.0</event-type-version>
+
<event-class-name>org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSResponse</event-class-name>
+ </event-definition>
+
<!-- Mobility - Handover services -->
<!-- Mobility - Authentication management -->
=======================================
---
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/MAPResourceAdaptor.java
Thu Apr 18 11:34:24 2013
+++
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/MAPResourceAdaptor.java
Wed Jul 24 09:54:02 2013
@@ -83,6 +83,8 @@
import
org.mobicents.protocols.ss7.map.api.service.mobility.imei.CheckImeiResponse;
import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.CancelLocationRequest;
import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.CancelLocationResponse;
+import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSRequest;
+import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.PurgeMSResponse;
import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.SendIdentificationRequest;
import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.SendIdentificationResponse;
import
org.mobicents.protocols.ss7.map.api.service.mobility.locationManagement.UpdateGprsLocationRequest;
@@ -154,6 +156,8 @@
import
org.mobicents.slee.resource.map.service.mobility.imei.wrappers.CheckImeiResponseWrapper;
import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.CancelLocationRequestWrapper;
import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.CancelLocationResponseWrapper;
+import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.PurgeMSRequestWrapper;
+import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.PurgeMSResponseWrapper;
import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.SendIdentificationRequestWrapper;
import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.SendIdentificationResponseWrapper;
import
org.mobicents.slee.resource.map.service.mobility.locationManagement.wrappers.UpdateGprsLocationRequestWrapper;
@@ -884,6 +888,20 @@
SendIdentificationResponseWrapper event = new
SendIdentificationResponseWrapper(mapDialogMobilityWrapper, ind);
onEvent(event.getEventTypeName(), mapDialogMobilityWrapper,
event);
}
+
+ @Override
+ public void onPurgeMSRequest(PurgeMSRequest ind) {
+ MAPDialogMobilityWrapper mapDialogMobilityWrapper =
(MAPDialogMobilityWrapper) ind.getMAPDialog().getUserObject();
+ PurgeMSRequestWrapper event = new
PurgeMSRequestWrapper(mapDialogMobilityWrapper, ind);
+ onEvent(event.getEventTypeName(), mapDialogMobilityWrapper, event);
+ }
+
+ @Override
+ public void onPurgeMSResponse(PurgeMSResponse ind) {
+ MAPDialogMobilityWrapper mapDialogMobilityWrapper =
(MAPDialogMobilityWrapper) ind.getMAPDialog().getUserObject();
+ PurgeMSResponseWrapper event = new
PurgeMSResponseWrapper(mapDialogMobilityWrapper, ind);
+ onEvent(event.getEventTypeName(), mapDialogMobilityWrapper, event);
+ }
@Override
public void onUpdateGprsLocationRequest(UpdateGprsLocationRequest ind) {
=======================================
---
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPDialogMobilityWrapper.java
Thu Apr 18 11:34:24 2013
+++
/resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPDialogMobilityWrapper.java
Wed Jul 24 09:54:02 2013
@@ -345,17 +345,35 @@
this.wrappedDialog.addSendIdentificationResponse(invokeId, imsi,
authenticationSetList, currentSecurityContext, extensionContainer);
}
- @Override
- public Long addUpdateGprsLocationRequest(int customInvokeTimeout, IMSI
imsi, ISDNAddressString sgsnNumber, GSNAddress sgsnAddress,
- MAPExtensionContainer extensionContainer, SGSNCapability
sgsnCapability, boolean informPreviousNetworkEntity, boolean
psLCSNotSupportedByUE,
- GSNAddress vGmlcAddress, ADDInfo addInfo, EPSInfo epsInfo, boolean
servingNodeTypeIndicator, boolean skipSubscriberDataUpdate,
- UsedRATType usedRATType, boolean gprsSubscriptionDataNotNeeded, boolean
nodeTypeIndicator, boolean areaRestricted, boolean ueReachableIndicator,
- boolean epsSubscriptionDataNotNeeded, UESRVCCCapability
uesrvccCapability) throws MAPException {
- return
this.wrappedDialog.addUpdateGprsLocationRequest(customInvokeTimeout, imsi,
sgsnNumber, sgsnAddress, extensionContainer, sgsnCapability,
- informPreviousNetworkEntity, psLCSNotSupportedByUE, vGmlcAddress,
addInfo, epsInfo, servingNodeTypeIndicator, skipSubscriberDataUpdate,
- usedRATType, gprsSubscriptionDataNotNeeded, nodeTypeIndicator,
areaRestricted, ueReachableIndicator, epsSubscriptionDataNotNeeded,
- uesrvccCapability);
- }
+ @Override
+ public Long addPurgeMSRequest(int customInvokeTimeout, IMSI imsi,
ISDNAddressString vlrNumber, ISDNAddressString sgsnNumber,
+ MAPExtensionContainer extensionContainer) throws MAPException {
+ return this.wrappedDialog.addPurgeMSRequest(customInvokeTimeout,
imsi, vlrNumber, sgsnNumber, extensionContainer);
+ }
+
+ @Override
+ public Long addPurgeMSRequest(IMSI imsi, ISDNAddressString vlrNumber,
ISDNAddressString sgsnNumber, MAPExtensionContainer extensionContainer)
+ throws MAPException {
+ return this.wrappedDialog.addPurgeMSRequest(imsi, vlrNumber,
sgsnNumber, extensionContainer);
+ }
+
+ @Override
+ public void addPurgeMSResponse(long invokeId, boolean freezeTMSI,
boolean freezePTMSI, MAPExtensionContainer extensionContainer, boolean
freezeMTMSI)
+ throws MAPException {
+ this.wrappedDialog.addPurgeMSResponse(invokeId, freezeTMSI,
freezePTMSI, extensionContainer, freezeMTMSI);
+ }
+
+ @Override
+ public Long addUpdateGprsLocationRequest(int customInvokeTimeout, IMSI
imsi, ISDNAddressString sgsnNumber, GSNAddress sgsnAddress,
+ MAPExtensionContainer extensionContainer, SGSNCapability
sgsnCapability, boolean informPreviousNetworkEntity, boolean
psLCSNotSupportedByUE,
+ GSNAddress vGmlcAddress, ADDInfo addInfo, EPSInfo epsInfo,
boolean servingNodeTypeIndicator, boolean skipSubscriberDataUpdate,
+ UsedRATType usedRATType, boolean
gprsSubscriptionDataNotNeeded, boolean nodeTypeIndicator, boolean
areaRestricted, boolean ueReachableIndicator,
+ boolean epsSubscriptionDataNotNeeded, UESRVCCCapability
uesrvccCapability) throws MAPException {
+ return
this.wrappedDialog.addUpdateGprsLocationRequest(customInvokeTimeout, imsi,
sgsnNumber, sgsnAddress, extensionContainer, sgsnCapability,
+ informPreviousNetworkEntity, psLCSNotSupportedByUE,
vGmlcAddress, addInfo, epsInfo, servingNodeTypeIndicator,
skipSubscriberDataUpdate,
+ usedRATType, gprsSubscriptionDataNotNeeded,
nodeTypeIndicator, areaRestricted, ueReachableIndicator,
epsSubscriptionDataNotNeeded,
+ uesrvccCapability);
+ }
@Override
public Long addUpdateGprsLocationRequest(IMSI imsi, ISDNAddressString
sgsnNumber, GSNAddress sgsnAddress, MAPExtensionContainer
extensionContainer,
=======================================
---
/resources/map/ratype/src/main/resources/META-INF/resource-adaptor-type-jar.xml
Fri Apr 19 02:54:30 2013
+++
/resources/map/ratype/src/main/resources/META-INF/resource-adaptor-type-jar.xml
Wed Jul 24 09:54:02 2013
@@ -140,15 +140,15 @@
<event-type-vendor>org.mobicents</event-type-vendor>
<event-type-version>1.0</event-type-version>
</event-type-ref>
-
+
<event-type-ref>
-
<event-type-name>ss7.map.service.mobility.locationManagement.SEND_IDENTIFICATION_REQUEST</event-type-name>
+
<event-type-name>ss7.map.service.mobility.locationManagement.PURGE_MS_REQUEST</event-type-name>
<event-type-vendor>org.mobicents</event-type-vendor>
<event-type-version>1.0</event-type-version>
</event-type-ref>
<event-type-ref>
-
<event-type-name>ss7.map.service.mobility.locationManagement.SEND_IDENTIFICATION_RESPONSE</event-type-name>
+
<event-type-name>ss7.map.service.mobility.locationManagement.PURGE_MS_RESPONSE</event-type-name>
<event-type-vendor>org.mobicents</event-type-vendor>
<event-type-version>1.0</event-type-version>
</event-type-ref>
--
---
You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.