refactor packaging of mobile puglins

apim420
Amalka Subasinghe 2 years ago
parent 6181f983d8
commit 798f9daa69

@ -53,7 +53,7 @@
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<configuration> <configuration>
<destFile>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/jacoco-unit.exec</destFile> <destFile>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/jacoco-unit.exec</destFile>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
@ -69,8 +69,8 @@
<goal>report</goal> <goal>report</goal>
</goals> </goals>
<configuration> <configuration>
<dataFile>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/jacoco-unit.exec</dataFile> <dataFile>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/jacoco-unit.exec</dataFile>
<outputDirectory>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/site</outputDirectory> <outputDirectory>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/site</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -122,7 +122,7 @@
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<configuration> <configuration>
<destFile>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/jacoco-unit.exec</destFile> <destFile>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/jacoco-unit.exec</destFile>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
@ -138,8 +138,8 @@
<goal>report</goal> <goal>report</goal>
</goals> </goals>
<configuration> <configuration>
<dataFile>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/jacoco-unit.exec</dataFile> <dataFile>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/jacoco-unit.exec</dataFile>
<outputDirectory>../org.wso2.carbon.device.mgt.mobile.android.api/target/coverage-reports/site</outputDirectory> <outputDirectory>../io.entgra.device.mgt.plugins.mobile.android.api/target/coverage-reports/site</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

@ -15,11 +15,10 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.AndroidOperation;
import java.io.Serializable; import java.io.Serializable;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean; package io.entgra.device.mgt.plugins.mobile.android.api.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -1,4 +1,4 @@
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.AppRestriction;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.AppRestriction;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.ApplicationInstallation; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationInstallation;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUninstallation; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationUninstallation;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUpdate; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationUpdate;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.BlacklistApplications;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.BlacklistApplications;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.Camera;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.Camera;
import java.util.List; import java.util.List;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -16,11 +16,11 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.DeviceLock; import io.entgra.device.mgt.plugins.mobile.android.api.bean.DeviceLock;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.Disenrollment; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Disenrollment;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.DeviceEncryption;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.DeviceEncryption;
import java.util.List; import java.util.List;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.FileTransfer; import io.entgra.device.mgt.plugins.mobile.android.api.bean.FileTransfer;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.LockCode; import io.entgra.device.mgt.plugins.mobile.android.api.bean.LockCode;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.Notification;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.Notification;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.PasscodePolicy; import io.entgra.device.mgt.plugins.mobile.android.api.bean.PasscodePolicy;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.UpgradeFirmware;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.UpgradeFirmware;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.Vpn; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Vpn;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.WebClip;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.WebClip;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.Wifi;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.Wifi;
import java.util.List; import java.util.List;

@ -15,11 +15,11 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.bean.wrapper; package io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.WipeData;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.mdm.services.android.bean.WipeData;
import java.util.List; import java.util.List;

@ -15,9 +15,9 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.common; package io.entgra.device.mgt.plugins.mobile.android.api.common;
import org.wso2.carbon.mdm.services.android.exception.AndroidAgentException; import io.entgra.device.mgt.plugins.mobile.android.api.exception.AndroidAgentException;
import javax.ws.rs.Produces; import javax.ws.rs.Produces;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.common; package io.entgra.device.mgt.plugins.mobile.android.api.common;
public class ErrorMessage { public class ErrorMessage {

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.common; package io.entgra.device.mgt.plugins.mobile.android.api.common;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.common; package io.entgra.device.mgt.plugins.mobile.android.api.common;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
/** /**
* *

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.util.Message; import io.entgra.device.mgt.plugins.mobile.android.api.util.Message;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

@ -16,9 +16,9 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -16,12 +16,12 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import com.google.gson.JsonParseException; import com.google.gson.JsonParseException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidDeviceUtils;
import javax.naming.AuthenticationException; import javax.naming.AuthenticationException;
import javax.validation.ConstraintViolationException; import javax.validation.ConstraintViolationException;

@ -16,10 +16,10 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidDeviceUtils;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;

@ -16,10 +16,10 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.exception; package io.entgra.device.mgt.plugins.mobile.android.api.exception;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants; import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -16,8 +16,11 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services; package io.entgra.device.mgt.plugins.mobile.android.api.services;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.*;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.*;
import io.swagger.annotations.SwaggerDefinition; import io.swagger.annotations.SwaggerDefinition;
import io.swagger.annotations.Info; import io.swagger.annotations.Info;
import io.swagger.annotations.ExtensionProperty; import io.swagger.annotations.ExtensionProperty;
@ -32,8 +35,6 @@ import io.swagger.annotations.ResponseHeader;
import org.wso2.carbon.apimgt.annotations.api.Scope; import org.wso2.carbon.apimgt.annotations.api.Scope;
import org.wso2.carbon.apimgt.annotations.api.Scopes; import org.wso2.carbon.apimgt.annotations.api.Scopes;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity; import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
import org.wso2.carbon.mdm.services.android.bean.wrapper.*;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import javax.validation.Valid; import javax.validation.Valid;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
@ -866,7 +867,7 @@ public interface DeviceManagementAdminService {
value = "Provide the the passcode, which is the passcode that the Android agent prompts the device owner to set at the time of device enrollment, " + value = "Provide the the passcode, which is the passcode that the Android agent prompts the device owner to set at the time of device enrollment, " +
"to enable the factory reset operation, and the ID of the Android device. Multiple device IDs can be added by using comma separated values. ", "to enable the factory reset operation, and the ID of the Android device. Multiple device IDs can be added by using comma separated values. ",
required = true) required = true)
WipeDataBeanWrapper wipeDataBeanWrapper); WipeDataBeanWrapper wipeDataBeanWrapper);
@POST @POST
@Path("/applications") @Path("/applications")
@ -1301,7 +1302,7 @@ public interface DeviceManagementAdminService {
"URL and name of the application, the date and time for the scheduled installation, and the ID of the" + "URL and name of the application, the date and time for the scheduled installation, and the ID of the" +
"Android device. Multiple device IDs can be added by using comma separated values.", "Android device. Multiple device IDs can be added by using comma separated values.",
required = true) required = true)
ApplicationUninstallationBeanWrapper applicationUninstallationBeanWrapper); ApplicationUninstallationBeanWrapper applicationUninstallationBeanWrapper);
@POST @POST
@Path("/blacklist-applications") @Path("/blacklist-applications")
@ -1491,7 +1492,7 @@ public interface DeviceManagementAdminService {
name = "vpnBean", name = "vpnBean",
value = "VPN configuration and DeviceIds", value = "VPN configuration and DeviceIds",
required = true) required = true)
VpnBeanWrapper vpnBeanWrapper); VpnBeanWrapper vpnBeanWrapper);
@POST @POST
@Path("/send-notification") @Path("/send-notification")
@ -1614,7 +1615,7 @@ public interface DeviceManagementAdminService {
"the ssid or the name of the Wi-Fi network that you wish to configure and the ID of the Android device." + "the ssid or the name of the Wi-Fi network that you wish to configure and the ID of the Android device." +
" Multiple device IDs can be added by using comma separated values.", " Multiple device IDs can be added by using comma separated values.",
required = true) required = true)
WifiBeanWrapper wifiBeanWrapper); WifiBeanWrapper wifiBeanWrapper);
@POST @POST
@Path("/encrypt-storage") @Path("/encrypt-storage")
@ -1676,7 +1677,7 @@ public interface DeviceManagementAdminService {
"true as the value or do not encrypt the storage on the device by assigning false as the value and " + "true as the value or do not encrypt the storage on the device by assigning false as the value and " +
"provide the ID of the Android device. Multiple device IDs can be added by using comma separated values.", "provide the ID of the Android device. Multiple device IDs can be added by using comma separated values.",
required = true) required = true)
EncryptionBeanWrapper encryptionBeanWrapper); EncryptionBeanWrapper encryptionBeanWrapper);
@POST @POST
@Path("/change-lock-code") @Path("/change-lock-code")

@ -16,16 +16,16 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services; package io.entgra.device.mgt.plugins.mobile.android.api.services;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.wso2.carbon.apimgt.annotations.api.Scope; import org.wso2.carbon.apimgt.annotations.api.Scope;
import org.wso2.carbon.apimgt.annotations.api.Scopes; import org.wso2.carbon.apimgt.annotations.api.Scopes;
import org.wso2.carbon.device.mgt.common.operation.mgt.Operation; import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidApplication; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.AndroidApplication;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidDevice; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.AndroidDevice;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;

@ -16,8 +16,10 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services; package io.entgra.device.mgt.plugins.mobile.android.api.services;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.AndroidAgentException;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.swagger.annotations.SwaggerDefinition; import io.swagger.annotations.SwaggerDefinition;
import io.swagger.annotations.Info; import io.swagger.annotations.Info;
import io.swagger.annotations.ExtensionProperty; import io.swagger.annotations.ExtensionProperty;
@ -32,9 +34,7 @@ import io.swagger.annotations.ResponseHeader;
import org.wso2.carbon.apimgt.annotations.api.Scope; import org.wso2.carbon.apimgt.annotations.api.Scope;
import org.wso2.carbon.apimgt.annotations.api.Scopes; import org.wso2.carbon.apimgt.annotations.api.Scopes;
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
import org.wso2.carbon.mdm.services.android.bean.AndroidPlatformConfiguration; import io.entgra.device.mgt.plugins.mobile.android.api.bean.AndroidPlatformConfiguration;
import org.wso2.carbon.mdm.services.android.exception.AndroidAgentException;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import javax.validation.Valid; import javax.validation.Valid;
import javax.ws.rs.*; import javax.ws.rs.*;

@ -16,8 +16,9 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services; package io.entgra.device.mgt.plugins.mobile.android.api.services;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.swagger.annotations.SwaggerDefinition; import io.swagger.annotations.SwaggerDefinition;
import io.swagger.annotations.Info; import io.swagger.annotations.Info;
import io.swagger.annotations.ExtensionProperty; import io.swagger.annotations.ExtensionProperty;
@ -31,9 +32,8 @@ import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.ResponseHeader; import io.swagger.annotations.ResponseHeader;
import org.wso2.carbon.apimgt.annotations.api.Scope; import org.wso2.carbon.apimgt.annotations.api.Scope;
import org.wso2.carbon.apimgt.annotations.api.Scopes; import org.wso2.carbon.apimgt.annotations.api.Scopes;
import org.wso2.carbon.mdm.services.android.bean.DeviceState; import io.entgra.device.mgt.plugins.mobile.android.api.bean.DeviceState;
import org.wso2.carbon.mdm.services.android.bean.wrapper.EventBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.EventBeanWrapper;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;

@ -16,8 +16,13 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services.impl; package io.entgra.device.mgt.plugins.mobile.android.api.services.impl;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.BadRequestException;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.UnexpectedServerErrorException;
import io.entgra.device.mgt.plugins.mobile.android.api.services.DeviceManagementAdminService;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidDeviceUtils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.json.JSONException; import org.json.JSONException;
@ -28,44 +33,39 @@ import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException; import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation;
import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationInstallation; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationInstallation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUninstallation; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationUninstallation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUpdate; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ApplicationUpdate;
import org.wso2.carbon.mdm.services.android.bean.BlacklistApplications; import io.entgra.device.mgt.plugins.mobile.android.api.bean.BlacklistApplications;
import org.wso2.carbon.mdm.services.android.bean.Camera; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Camera;
import org.wso2.carbon.mdm.services.android.bean.DeviceEncryption; import io.entgra.device.mgt.plugins.mobile.android.api.bean.DeviceEncryption;
import org.wso2.carbon.mdm.services.android.bean.DeviceLock; import io.entgra.device.mgt.plugins.mobile.android.api.bean.DeviceLock;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.bean.FileTransfer; import io.entgra.device.mgt.plugins.mobile.android.api.bean.FileTransfer;
import org.wso2.carbon.mdm.services.android.bean.LockCode; import io.entgra.device.mgt.plugins.mobile.android.api.bean.LockCode;
import org.wso2.carbon.mdm.services.android.bean.Notification; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Notification;
import org.wso2.carbon.mdm.services.android.bean.PasscodePolicy; import io.entgra.device.mgt.plugins.mobile.android.api.bean.PasscodePolicy;
import org.wso2.carbon.mdm.services.android.bean.UpgradeFirmware; import io.entgra.device.mgt.plugins.mobile.android.api.bean.UpgradeFirmware;
import org.wso2.carbon.mdm.services.android.bean.Vpn; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Vpn;
import org.wso2.carbon.mdm.services.android.bean.WebClip; import io.entgra.device.mgt.plugins.mobile.android.api.bean.WebClip;
import org.wso2.carbon.mdm.services.android.bean.Wifi; import io.entgra.device.mgt.plugins.mobile.android.api.bean.Wifi;
import org.wso2.carbon.mdm.services.android.bean.WipeData; import io.entgra.device.mgt.plugins.mobile.android.api.bean.WipeData;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationInstallationBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.ApplicationInstallationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationUninstallationBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.ApplicationUninstallationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationUpdateBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.ApplicationUpdateBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.BlacklistApplicationsBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.BlacklistApplicationsBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.CameraBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.CameraBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.DeviceLockBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.DeviceLockBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.EncryptionBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.EncryptionBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.FileTransferBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.FileTransferBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.LockCodeBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.LockCodeBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.NotificationBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.NotificationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.PasswordPolicyBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.PasswordPolicyBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.UpgradeFirmwareBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.UpgradeFirmwareBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.VpnBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.VpnBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WebClipBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.WebClipBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WifiBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.WifiBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WipeDataBeanWrapper; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.WipeDataBeanWrapper;
import org.wso2.carbon.mdm.services.android.exception.BadRequestException;
import org.wso2.carbon.mdm.services.android.exception.UnexpectedServerErrorException;
import org.wso2.carbon.mdm.services.android.services.DeviceManagementAdminService;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils;
import javax.validation.Valid; import javax.validation.Valid;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;

@ -16,8 +16,16 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services.impl; package io.entgra.device.mgt.plugins.mobile.android.api.services.impl;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.BadRequestException;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.NotFoundException;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.UnexpectedServerErrorException;
import io.entgra.device.mgt.plugins.mobile.android.api.services.DeviceManagementService;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidAPIUtils;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidDeviceUtils;
import io.entgra.device.mgt.plugins.mobile.android.api.util.Message;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
@ -35,15 +43,9 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceExce
import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException; import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException;
import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager; import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager;
import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.CommandOperation;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidApplication; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.AndroidApplication;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidDevice; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.AndroidDevice;
import org.wso2.carbon.mdm.services.android.exception.UnexpectedServerErrorException;
import org.wso2.carbon.mdm.services.android.services.DeviceManagementService;
import org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils;
import org.wso2.carbon.mdm.services.android.util.Message;
import org.wso2.carbon.policy.mgt.common.PolicyManagementException; import org.wso2.carbon.policy.mgt.common.PolicyManagementException;
import org.wso2.carbon.policy.mgt.core.PolicyManagerService; import org.wso2.carbon.policy.mgt.core.PolicyManagerService;
@ -249,7 +251,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
if (androidDevice == null) { if (androidDevice == null) {
String errorMessage = "The payload of the android device enrollment is incorrect."; String errorMessage = "The payload of the android device enrollment is incorrect.";
log.error(errorMessage); log.error(errorMessage);
throw new org.wso2.carbon.mdm.services.android.exception.BadRequestException( throw new BadRequestException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build()); new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build());
} }
try { try {
@ -398,13 +400,13 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
if (androidDevice == null) { if (androidDevice == null) {
String errorMessage = "The payload of the android device enrollment is incorrect."; String errorMessage = "The payload of the android device enrollment is incorrect.";
log.error(errorMessage); log.error(errorMessage);
throw new org.wso2.carbon.mdm.services.android.exception.BadRequestException( throw new BadRequestException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build()); new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build());
} }
if (device == null) { if (device == null) {
String errorMessage = "The device to be modified doesn't exist."; String errorMessage = "The device to be modified doesn't exist.";
log.error(errorMessage); log.error(errorMessage);
throw new org.wso2.carbon.mdm.services.android.exception.NotFoundException( throw new NotFoundException(
new ErrorResponse.ErrorResponseBuilder().setCode(404l).setMessage(errorMessage).build()); new ErrorResponse.ErrorResponseBuilder().setCode(404l).setMessage(errorMessage).build());
} }
if(androidDevice.getEnrolmentInfo() != null){ if(androidDevice.getEnrolmentInfo() != null){

@ -16,8 +16,13 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services.impl; package io.entgra.device.mgt.plugins.mobile.android.api.services.impl;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.BadRequestException;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.UnexpectedServerErrorException;
import io.entgra.device.mgt.plugins.mobile.android.api.services.DeviceTypeConfigurationService;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidAPIUtils;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
@ -31,13 +36,9 @@ import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException;
import org.wso2.carbon.device.mgt.common.license.mgt.License; import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException; import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation; import org.wso2.carbon.device.mgt.core.operation.mgt.ProfileOperation;
import org.wso2.carbon.mdm.services.android.bean.AndroidPlatformConfiguration; import io.entgra.device.mgt.plugins.mobile.android.api.bean.AndroidPlatformConfiguration;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.bean.NotifierFrequency; import io.entgra.device.mgt.plugins.mobile.android.api.bean.NotifierFrequency;
import org.wso2.carbon.mdm.services.android.exception.UnexpectedServerErrorException;
import org.wso2.carbon.mdm.services.android.services.DeviceTypeConfigurationService;
import org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import javax.validation.Valid; import javax.validation.Valid;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
@ -104,7 +105,7 @@ public class DeviceTypeConfigurationServiceImpl implements DeviceTypeConfigurati
if (androidPlatformConfiguration == null) { if (androidPlatformConfiguration == null) {
String errorMessage = "The payload of the android platform configuration is incorrect."; String errorMessage = "The payload of the android platform configuration is incorrect.";
log.error(errorMessage); log.error(errorMessage);
throw new org.wso2.carbon.mdm.services.android.exception.BadRequestException( throw new BadRequestException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build()); new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(errorMessage).build());
} }
configuration.setConfiguration(androidPlatformConfiguration.getConfiguration()); configuration.setConfiguration(androidPlatformConfiguration.getConfiguration());

@ -16,10 +16,13 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.services.impl; package io.entgra.device.mgt.plugins.mobile.android.api.services.impl;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.BadRequestException;
import io.entgra.device.mgt.plugins.mobile.android.api.exception.UnexpectedServerErrorException;
import io.entgra.device.mgt.plugins.mobile.android.api.services.EventReceiverService;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
@ -27,17 +30,8 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil; import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
import org.wso2.carbon.mdm.services.android.bean.DeviceState; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.EventBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.EventBeanWrapper;
import org.wso2.carbon.mdm.services.android.exception.BadRequestException;
import org.wso2.carbon.mdm.services.android.exception.NotFoundException;
import org.wso2.carbon.mdm.services.android.exception.UnexpectedServerErrorException;
import org.wso2.carbon.mdm.services.android.services.EventReceiverService;
import org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils;
import org.wso2.carbon.mdm.services.android.util.Message;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
@ -47,7 +41,6 @@ import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.QueryParam; import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.List;
@Path("/events") @Path("/events")
public class EventReceiverServiceImpl implements EventReceiverService { public class EventReceiverServiceImpl implements EventReceiverService {

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
/** /**
* Defines constants used in Android-REST API bundle. * Defines constants used in Android-REST API bundle.

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonArray; import com.google.gson.JsonArray;
@ -45,16 +45,14 @@ import org.wso2.carbon.device.mgt.common.policy.mgt.monitor.PolicyComplianceExce
import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException; import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException;
import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager; import org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager;
import org.wso2.carbon.device.mgt.core.search.mgt.impl.Utils; import org.wso2.carbon.device.mgt.core.search.mgt.impl.Utils;
import org.wso2.carbon.mdm.services.android.bean.DeviceState; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorListItem;
import org.wso2.carbon.mdm.services.android.bean.ErrorListItem; import io.entgra.device.mgt.plugins.mobile.android.api.bean.ErrorResponse;
import org.wso2.carbon.mdm.services.android.bean.ErrorResponse; import io.entgra.device.mgt.plugins.mobile.android.api.exception.BadRequestException;
import org.wso2.carbon.mdm.services.android.exception.BadRequestException;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
/** /**

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
import javax.servlet.*; import javax.servlet.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.util; package io.entgra.device.mgt.plugins.mobile.android.api.util;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;

@ -43,8 +43,8 @@
<bean id="swaggerWriter" class="io.swagger.jaxrs.listing.SwaggerSerializers" /> <bean id="swaggerWriter" class="io.swagger.jaxrs.listing.SwaggerSerializers" />
<bean id="swaggerResource" class="io.swagger.jaxrs.listing.ApiListingResource" /> <bean id="swaggerResource" class="io.swagger.jaxrs.listing.ApiListingResource" />
<bean id="GlobalExceptionMapper" class="org.wso2.carbon.mdm.services.android.exception.GlobalThrowableMapper"/> <bean id="GlobalExceptionMapper" class="io.entgra.device.mgt.plugins.mobile.android.api.exception.GlobalThrowableMapper"/>
<bean id="ValidationInterceptor" class="org.wso2.carbon.mdm.services.android.common.ValidationInterceptor"/> <bean id="ValidationInterceptor" class="io.entgra.device.mgt.plugins.mobile.android.api.common.ValidationInterceptor"/>
<bean id="swaggerConfig" class="io.swagger.jaxrs.config.BeanConfig"> <bean id="swaggerConfig" class="io.swagger.jaxrs.config.BeanConfig">
<property name="resourcePackage" value="org.wso2.carbon.mdm.services.android.services"/> <property name="resourcePackage" value="org.wso2.carbon.mdm.services.android.services"/>
@ -59,12 +59,12 @@
<property name="scan" value="true"/> <property name="scan" value="true"/>
</bean> </bean>
<bean id="deviceManagementService" class="org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementServiceImpl"/> <bean id="deviceManagementService" class="io.entgra.device.mgt.plugins.mobile.android.api.services.impl.DeviceManagementServiceImpl"/>
<bean id="deviceManagementAdminService" class="org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementAdminServiceImpl"/> <bean id="deviceManagementAdminService" class="io.entgra.device.mgt.plugins.mobile.android.api.services.impl.DeviceManagementAdminServiceImpl"/>
<bean id="eventReceiverService" class="org.wso2.carbon.mdm.services.android.services.impl.EventReceiverServiceImpl"/> <bean id="eventReceiverService" class="io.entgra.device.mgt.plugins.mobile.android.api.services.impl.EventReceiverServiceImpl"/>
<bean id="deviceTypeConfigurationService" class="org.wso2.carbon.mdm.services.android.services.impl.DeviceTypeConfigurationServiceImpl"/> <bean id="deviceTypeConfigurationService" class="io.entgra.device.mgt.plugins.mobile.android.api.services.impl.DeviceTypeConfigurationServiceImpl"/>
<bean id="jsonProvider" class="org.wso2.carbon.mdm.services.android.common.GsonMessageBodyHandler"/> <bean id="jsonProvider" class="io.entgra.device.mgt.plugins.mobile.android.api.common.GsonMessageBodyHandler"/>
<bean id="errorHandler" class="org.wso2.carbon.mdm.services.android.common.ErrorHandler"/> <bean id="errorHandler" class="io.entgra.device.mgt.plugins.mobile.android.api.common.ErrorHandler"/>
<cxf:bus> <cxf:bus>
<cxf:inInterceptors> <cxf:inInterceptors>
<ref bean="ValidationInterceptor"/> <ref bean="ValidationInterceptor"/>

@ -76,7 +76,7 @@
<filter> <filter>
<filter-name>ApiOriginFilter</filter-name> <filter-name>ApiOriginFilter</filter-name>
<filter-class>org.wso2.carbon.mdm.services.android.util.ApiOriginFilter</filter-class> <filter-class>io.entgra.device.mgt.plugins.mobile.android.api.util.ApiOriginFilter</filter-class>
</filter> </filter>
<filter-mapping> <filter-mapping>
<filter-name>ApiOriginFilter</filter-name> <filter-name>ApiOriginFilter</filter-name>

@ -16,8 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android; package io.entgra.device.mgt.plugins.mobile.android.api;
import io.entgra.device.mgt.plugins.mobile.android.api.services.impl.DeviceManagementAdminServiceImpl;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidAPIUtils;
import org.mockito.MockitoAnnotations; import org.mockito.MockitoAnnotations;
import org.powermock.api.mockito.PowerMockito; import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PowerMockIgnore;
@ -31,10 +33,8 @@ import org.testng.annotations.Test;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException; import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException;
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException; import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
import org.wso2.carbon.mdm.services.android.mocks.DeviceManagementProviderServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.DeviceManagementProviderServiceMock;
import org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementAdminServiceImpl; import io.entgra.device.mgt.plugins.mobile.android.api.utils.TestUtils;
import org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils;
import org.wso2.carbon.mdm.services.android.utils.TestUtils;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;

@ -16,8 +16,11 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android; package io.entgra.device.mgt.plugins.mobile.android.api;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.AndroidDevice;
import io.entgra.device.mgt.plugins.mobile.android.api.services.impl.DeviceManagementServiceImpl;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidAPIUtils;
import org.mockito.MockitoAnnotations; import org.mockito.MockitoAnnotations;
import org.powermock.api.mockito.PowerMockito; import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PowerMockIgnore;
@ -32,15 +35,12 @@ import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException; import org.wso2.carbon.device.mgt.common.exceptions.InvalidDeviceException;
import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException; import org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidDevice; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.ApplicationManagementProviderServiceMock;
import org.wso2.carbon.mdm.services.android.mocks.ApplicationManagementProviderServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.DeviceInformationManagerServiceMock;
import org.wso2.carbon.mdm.services.android.mocks.DeviceInformationManagerServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.DeviceManagementProviderServiceMock;
import org.wso2.carbon.mdm.services.android.mocks.DeviceManagementProviderServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.NotificationManagementServiceMock;
import org.wso2.carbon.mdm.services.android.mocks.NotificationManagementServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.mocks.PolicyManagerServiceMock;
import org.wso2.carbon.mdm.services.android.mocks.PolicyManagerServiceMock; import io.entgra.device.mgt.plugins.mobile.android.api.utils.TestUtils;
import org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementServiceImpl;
import org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils;
import org.wso2.carbon.mdm.services.android.utils.TestUtils;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.ArrayList; import java.util.ArrayList;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.mocks; package io.entgra.device.mgt.plugins.mobile.android.api.mocks;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -1,4 +1,4 @@
package org.wso2.carbon.mdm.services.android.mocks; package io.entgra.device.mgt.plugins.mobile.android.api.mocks;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -33,7 +33,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.mocks; package io.entgra.device.mgt.plugins.mobile.android.api.mocks;
import org.wso2.carbon.device.mgt.common.ActivityPaginationRequest; import org.wso2.carbon.device.mgt.common.ActivityPaginationRequest;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
@ -77,7 +77,7 @@ import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import org.wso2.carbon.device.mgt.core.dto.DeviceTypeVersion; import org.wso2.carbon.device.mgt.core.dto.DeviceTypeVersion;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.carbon.device.mgt.core.service.EmailMetaInfo; import org.wso2.carbon.device.mgt.core.service.EmailMetaInfo;
import org.wso2.carbon.mdm.services.android.utils.TestUtils; import io.entgra.device.mgt.plugins.mobile.android.api.utils.TestUtils;
import org.apache.commons.collections.map.SingletonMap; import org.apache.commons.collections.map.SingletonMap;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.mocks; package io.entgra.device.mgt.plugins.mobile.android.api.mocks;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.mocks; package io.entgra.device.mgt.plugins.mobile.android.api.mocks;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -16,8 +16,12 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.mdm.services.android.utils; package io.entgra.device.mgt.plugins.mobile.android.api.utils;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.*;
import io.entgra.device.mgt.plugins.mobile.android.api.bean.wrapper.*;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidConstants;
import io.entgra.device.mgt.plugins.mobile.android.api.util.AndroidDeviceUtils;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceManagementConstants; import org.wso2.carbon.device.mgt.common.DeviceManagementConstants;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
@ -26,40 +30,7 @@ import org.wso2.carbon.device.mgt.common.device.details.DeviceInfo;
import org.wso2.carbon.device.mgt.common.device.details.DeviceLocation; import org.wso2.carbon.device.mgt.common.device.details.DeviceLocation;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity; import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
import org.wso2.carbon.device.mgt.common.operation.mgt.Operation; import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationInstallation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUninstallation;
import org.wso2.carbon.mdm.services.android.bean.ApplicationUpdate;
import org.wso2.carbon.mdm.services.android.bean.BlacklistApplications;
import org.wso2.carbon.mdm.services.android.bean.Camera;
import org.wso2.carbon.mdm.services.android.bean.DeviceEncryption;
import org.wso2.carbon.mdm.services.android.bean.DeviceLock;
import org.wso2.carbon.mdm.services.android.bean.LockCode;
import org.wso2.carbon.mdm.services.android.bean.Notification;
import org.wso2.carbon.mdm.services.android.bean.PasscodePolicy;
import org.wso2.carbon.mdm.services.android.bean.UpgradeFirmware;
import org.wso2.carbon.mdm.services.android.bean.Vpn;
import org.wso2.carbon.mdm.services.android.bean.WebClip;
import org.wso2.carbon.mdm.services.android.bean.Wifi;
import org.wso2.carbon.mdm.services.android.bean.WipeData;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidApplication;
import org.wso2.carbon.mdm.services.android.bean.wrapper.AndroidDevice;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationInstallationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationUninstallationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.ApplicationUpdateBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.BlacklistApplicationsBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.CameraBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.DeviceLockBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.EncryptionBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.LockCodeBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.NotificationBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.PasswordPolicyBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.UpgradeFirmwareBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.VpnBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WebClipBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WifiBeanWrapper;
import org.wso2.carbon.mdm.services.android.bean.wrapper.WipeDataBeanWrapper;
import org.wso2.carbon.mdm.services.android.util.AndroidConstants;
import org.wso2.carbon.mdm.services.android.util.AndroidDeviceUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

@ -23,8 +23,8 @@
<test name="API Tests" preserve-order="true"> <test name="API Tests" preserve-order="true">
<classes> <classes>
<class name="org.wso2.carbon.mdm.services.android.DeviceManagementAdminServiceTests" /> <class name="io.entgra.device.mgt.plugins.mobile.android.api.DeviceManagementAdminServiceTests" />
<class name="org.wso2.carbon.mdm.services.android.DeviceManagementServiceTests" /> <class name="io.entgra.device.mgt.plugins.mobile.android.api.DeviceManagementServiceTests" />
</classes> </classes>
</test> </test>
</suite> </suite>

@ -42,7 +42,7 @@
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix> <classpathPrefix>lib/</classpathPrefix>
<mainClass>org.carbon.android.emulator.TryIt</mainClass> <mainClass>io.entgra.device.mgt.plugins.mobile.android.emulator.TryIt</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.carbon.android.emulator; package io.entgra.device.mgt.plugins.mobile.android.emulator;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.carbon.android.emulator; package io.entgra.device.mgt.plugins.mobile.android.emulator;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;

@ -16,8 +16,9 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl; package io.entgra.device.mgt.plugins.mobile.android.impl;
import io.entgra.device.mgt.plugins.mobile.android.impl.util.AndroidPluginConstants;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.DeviceManager; import org.wso2.carbon.device.mgt.common.DeviceManager;
@ -38,8 +39,7 @@ import org.wso2.carbon.device.mgt.common.pull.notification.PullNotificationSubsc
import org.wso2.carbon.device.mgt.common.push.notification.PushNotificationConfig; import org.wso2.carbon.device.mgt.common.push.notification.PushNotificationConfig;
import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService; import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService;
import org.wso2.carbon.device.mgt.common.type.mgt.DeviceTypePlatformDetails; import org.wso2.carbon.device.mgt.common.type.mgt.DeviceTypePlatformDetails;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.AndroidPluginConstants; import io.entgra.device.mgt.plugins.mobile.android.internal.AndroidDeviceManagementDataHolder;
import org.wso2.carbon.device.mgt.mobile.android.internal.AndroidDeviceManagementDataHolder;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;

@ -16,8 +16,14 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl; package io.entgra.device.mgt.plugins.mobile.android.impl;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.AbstractMobileDeviceManagementDAOFactory;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.AndroidDAOFactory;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.MobileDeviceManagementDAOException;
import io.entgra.device.mgt.plugins.mobile.android.impl.dto.MobileDevice;
import io.entgra.device.mgt.plugins.mobile.android.impl.util.AndroidPluginConstants;
import io.entgra.device.mgt.plugins.mobile.android.impl.util.AndroidPluginUtils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
@ -32,14 +38,8 @@ import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException; import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManager; import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManager;
import org.wso2.carbon.device.mgt.extensions.license.mgt.registry.RegistryBasedLicenseManager; import org.wso2.carbon.device.mgt.extensions.license.mgt.registry.RegistryBasedLicenseManager;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.AbstractMobileDeviceManagementDAOFactory; import io.entgra.device.mgt.plugins.mobile.android.impl.dao.impl.AndroidDeviceMgtPluginException;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.AndroidDAOFactory; import io.entgra.device.mgt.plugins.mobile.android.impl.util.MobileDeviceManagementUtil;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.MobileDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.impl.AndroidDeviceMgtPluginException;
import org.wso2.carbon.device.mgt.mobile.android.impl.dto.MobileDevice;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.AndroidPluginConstants;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.AndroidPluginUtils;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.MobileDeviceManagementUtil;
import org.wso2.carbon.registry.api.RegistryException; import org.wso2.carbon.registry.api.RegistryException;
import org.wso2.carbon.registry.api.Resource; import org.wso2.carbon.registry.api.Resource;

@ -16,19 +16,19 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl; package io.entgra.device.mgt.plugins.mobile.android.impl;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.AndroidDAOFactory;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.MobileDeviceManagementDAOException;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.MobileDeviceManagementDAOFactory;
import io.entgra.device.mgt.plugins.mobile.android.impl.dao.MobileFeatureDAO;
import io.entgra.device.mgt.plugins.mobile.android.impl.dto.MobileFeature;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.Feature; import org.wso2.carbon.device.mgt.common.Feature;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.AndroidDAOFactory; import io.entgra.device.mgt.plugins.mobile.android.impl.util.MobileDeviceManagementUtil;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.MobileDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.MobileDeviceManagementDAOFactory;
import org.wso2.carbon.device.mgt.mobile.android.impl.dao.MobileFeatureDAO;
import org.wso2.carbon.device.mgt.mobile.android.impl.dto.MobileFeature;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.MobileDeviceManagementUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

@ -17,7 +17,7 @@
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl; package io.entgra.device.mgt.plugins.mobile.android.impl;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonArray; import com.google.gson.JsonArray;

@ -16,11 +16,11 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl.config; package io.entgra.device.mgt.plugins.mobile.android.impl.config;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.mobile.android.impl.util.MobileDeviceManagementUtil; import io.entgra.device.mgt.plugins.mobile.android.impl.util.MobileDeviceManagementUtil;
import org.wso2.carbon.utils.CarbonUtils; import org.wso2.carbon.utils.CarbonUtils;
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl.config; package io.entgra.device.mgt.plugins.mobile.android.impl.config;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl.config; package io.entgra.device.mgt.plugins.mobile.android.impl.config;
import org.wso2.carbon.device.mgt.mobile.android.impl.config.datasource.DataSourceConfigAdapter; import io.entgra.device.mgt.plugins.mobile.android.impl.config.datasource.DataSourceConfigAdapter;
import org.wso2.carbon.device.mgt.mobile.android.impl.config.datasource.MobileDataSourceConfig; import io.entgra.device.mgt.plugins.mobile.android.impl.config.datasource.MobileDataSourceConfig;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl.config.datasource; package io.entgra.device.mgt.plugins.mobile.android.impl.config.datasource;
import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.util.HashMap; import java.util.HashMap;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.carbon.device.mgt.mobile.android.impl.config.datasource; package io.entgra.device.mgt.plugins.mobile.android.impl.config.datasource;
import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.*;
import java.util.List; import java.util.List;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save