From b5433373717bade4af04f0352cb5a91c882545cb Mon Sep 17 00:00:00 2001 From: harshanL Date: Mon, 2 Feb 2015 10:51:18 +0530 Subject: [PATCH] MDM-299 fix --- pom.xml | 25 ++++++++++++++----- .../mdm}/mobileservices/android/Device.java | 8 +++--- .../mobileservices/android/Enrollment.java | 8 +++--- .../mobileservices/android/Operation.java | 9 ++++--- .../android/common/AndroidAgentException.java | 2 +- .../android/common/ErrorHandler.java | 2 +- .../android/common/ErrorMessage.java | 2 +- .../android/util/AndroidAPIUtils.java | 2 +- .../android/util/AndroidConstants.java | 2 +- .../mobileservices/android/util/Message.java | 2 +- .../src/main/webapp/WEB-INF/cxf-servlet.xml | 8 +++--- 11 files changed, 42 insertions(+), 28 deletions(-) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/Device.java (95%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/Enrollment.java (95%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/Operation.java (93%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/common/AndroidAgentException.java (96%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/common/ErrorHandler.java (95%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/common/ErrorMessage.java (94%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/util/AndroidAPIUtils.java (98%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/util/AndroidConstants.java (96%) rename product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/{cdmserver => carbon/mdm}/mobileservices/android/util/Message.java (95%) diff --git a/pom.xml b/pom.xml index 008b501635..9282161b9b 100644 --- a/pom.xml +++ b/pom.xml @@ -490,32 +490,32 @@ org.apache.wss4j wss4j-ws-security-common - 2.0.0 + ${apache.wss4j.version} org.bouncycastle bcpkix-jdk15on - 1.49 + ${bouncycastle.version} org.bouncycastle bcprov-jdk15on - 1.49 + ${bouncycastle.version} org.codehaus.plexus plexus-utils - 3.0.21 + ${codehaus.plexus.version} com.madgag.spongycastle pkix - 1.51.0.0 + ${spongycastle.version} org.apache.cxf cxf-rt-ws-security - 2.6.1 + ${cxf.version} @@ -606,6 +606,19 @@ 4.3.0-SNAPSHOT + + 1.51.0.0 + + + 1.49 + + + 2.0.0 + + + 3.0.21 + + diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Device.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Device.java similarity index 95% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Device.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Device.java index 20af913fff..c9e36472b0 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Device.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Device.java @@ -15,12 +15,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.cdmserver.mobileservices.android; +package org.wso2.carbon.mdm.mobileservices.android; import org.wso2.carbon.device.mgt.common.*; -import org.wso2.cdmserver.mobileservices.android.common.AndroidAgentException; -import org.wso2.cdmserver.mobileservices.android.util.AndroidAPIUtils; -import org.wso2.cdmserver.mobileservices.android.util.Message; +import org.wso2.carbon.mdm.mobileservices.android.util.AndroidAPIUtils; +import org.wso2.carbon.mdm.mobileservices.android.util.Message; +import org.wso2.carbon.mdm.mobileservices.android.common.AndroidAgentException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Enrollment.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Enrollment.java similarity index 95% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Enrollment.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Enrollment.java index d2e2438f8f..64579d696c 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Enrollment.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Enrollment.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.cdmserver.mobileservices.android; +package org.wso2.carbon.mdm.mobileservices.android; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -24,9 +24,9 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceManagementConstants; import org.wso2.carbon.device.mgt.common.DeviceManagementException; import org.wso2.carbon.device.mgt.common.DeviceManagementServiceException; -import org.wso2.cdmserver.mobileservices.android.common.AndroidAgentException; -import org.wso2.cdmserver.mobileservices.android.util.AndroidAPIUtils; -import org.wso2.cdmserver.mobileservices.android.util.Message; +import org.wso2.carbon.mdm.mobileservices.android.common.AndroidAgentException; +import org.wso2.carbon.mdm.mobileservices.android.util.AndroidAPIUtils; +import org.wso2.carbon.mdm.mobileservices.android.util.Message; import javax.ws.rs.*; import javax.ws.rs.core.Response; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Operation.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Operation.java similarity index 93% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Operation.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Operation.java index 83891c7f4d..217a4116ab 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/Operation.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/Operation.java @@ -17,16 +17,17 @@ * under the License. */ -package org.wso2.cdmserver.mobileservices.android; +package org.wso2.carbon.mdm.mobileservices.android; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.wso2.carbon.device.mgt.common.*; import org.wso2.carbon.device.mgt.core.service.DeviceManagementService; -import org.wso2.cdmserver.mobileservices.android.common.AndroidAgentException; -import org.wso2.cdmserver.mobileservices.android.util.AndroidAPIUtils; -import org.wso2.cdmserver.mobileservices.android.util.Message; +import org.wso2.carbon.mdm.mobileservices.android.common.AndroidAgentException; +import org.wso2.carbon.mdm.mobileservices.android.util.AndroidAPIUtils; +import org.wso2.carbon.mdm.mobileservices.android.util.Message; + import javax.ws.rs.*; import javax.ws.rs.core.Response; import java.util.List; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/AndroidAgentException.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/AndroidAgentException.java similarity index 96% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/AndroidAgentException.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/AndroidAgentException.java index ed5bf67369..77a8774a6f 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/AndroidAgentException.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/AndroidAgentException.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.cdmserver.mobileservices.android.common; +package org.wso2.carbon.mdm.mobileservices.android.common; public class AndroidAgentException extends Exception{ diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorHandler.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorHandler.java similarity index 95% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorHandler.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorHandler.java index a15316026a..e40faaa362 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorHandler.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorHandler.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.cdmserver.mobileservices.android.common; +package org.wso2.carbon.mdm.mobileservices.android.common; import javax.ws.rs.Produces; import javax.ws.rs.core.Response; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorMessage.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorMessage.java similarity index 94% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorMessage.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorMessage.java index 171b708e34..44095d3961 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/common/ErrorMessage.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/common/ErrorMessage.java @@ -15,7 +15,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.wso2.cdmserver.mobileservices.android.common; +package org.wso2.carbon.mdm.mobileservices.android.common; public class ErrorMessage { diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidAPIUtils.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidAPIUtils.java similarity index 98% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidAPIUtils.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidAPIUtils.java index accd7ffc37..0fa6f31dee 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidAPIUtils.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidAPIUtils.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.cdmserver.mobileservices.android.util; +package org.wso2.carbon.mdm.mobileservices.android.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidConstants.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidConstants.java similarity index 96% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidConstants.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidConstants.java index 5554839c71..da68122737 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidConstants.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/AndroidConstants.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.cdmserver.mobileservices.android.util; +package org.wso2.carbon.mdm.mobileservices.android.util; /** * Defines constants used in Android-REST API bundle. diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/Message.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/Message.java similarity index 95% rename from product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/Message.java rename to product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/Message.java index 974043a534..65259f7dcd 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/Message.java +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/mobileservices/android/util/Message.java @@ -16,7 +16,7 @@ * under the License. */ -package org.wso2.cdmserver.mobileservices.android.util; +package org.wso2.carbon.mdm.mobileservices.android.util; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/webapp/WEB-INF/cxf-servlet.xml b/product/modules/mobileservices/agents/android/jax-rs/src/main/webapp/WEB-INF/cxf-servlet.xml index 5b0c46836a..749f989361 100644 --- a/product/modules/mobileservices/agents/android/jax-rs/src/main/webapp/WEB-INF/cxf-servlet.xml +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/webapp/WEB-INF/cxf-servlet.xml @@ -51,10 +51,10 @@ - - - + + + - +