diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/License.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/License.java new file mode 100644 index 000000000..b72605bae --- /dev/null +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/License.java @@ -0,0 +1,53 @@ +/* + * + * * Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * * + * * WSO2 Inc. licenses this file to you under the Apache License, + * * Version 2.0 (the "License"); you may not use this file except + * * in compliance with the License. + * * You may obtain a copy of the License at + * * + * * http://www.apache.org/licenses/LICENSE-2.0 + * * + * * Unless required by applicable law or agreed to in writing, + * * software distributed under the License is distributed on an + * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * * KIND, either express or implied. See the License for the + * * specific language governing permissions and limitations + * * under the License. + * / + */ + +package org.wso2.carbon.device.mgt.common; + +public class License { + + private String licenseName; + private String licenseText; + private String licenseVersion; + + public String getLicenseName() { + return licenseName; + } + + public void setLicenseName(String licenseName) { + this.licenseName = licenseName; + } + + public String getLicenseText() { + return licenseText; + } + + public void setLicenseText(String licenseText) { + this.licenseText = licenseText; + } + + public String getLicenseVersion() { + return licenseVersion; + } + + public void setLicenseVersion(String licenseVersion) { + this.licenseVersion = licenseVersion; + } + +} diff --git a/product/modules/distribution/src/repository/resources/rxts/license.rxt b/product/modules/distribution/src/repository/resources/rxts/license.rxt new file mode 100644 index 000000000..72f5c2618 --- /dev/null +++ b/product/modules/distribution/src/repository/resources/rxts/license.rxt @@ -0,0 +1,38 @@ + + + /license/@{overview_provider}/@{overview_name}/@{overview_version} + overview_name + + + + + + + + + + + + + + + + + Provider + + + Name + + + Version + + + Createdtime + + + License + +
+
+
diff --git a/product/modules/mobileservices/agents/android/jax-rs/src/main/java/Licenses.java b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/Licenses.java new file mode 100644 index 000000000..aa49c5939 --- /dev/null +++ b/product/modules/mobileservices/agents/android/jax-rs/src/main/java/Licenses.java @@ -0,0 +1,45 @@ +/* + * + * * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * * + * * WSO2 Inc. licenses this file to you under the Apache License, + * * Version 2.0 (the "License"); you may not use this file except + * * in compliance with the License. + * * You may obtain a copy of the License at + * * + * * http://www.apache.org/licenses/LICENSE-2.0 + * * + * * Unless required by applicable law or agreed to in writing, + * * software distributed under the License is distributed on an + * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * * KIND, either express or implied. See the License for the + * * specific language governing permissions and limitations + * * under the License. + * / + */ + +import org.wso2.cdmserver.mobileservices.android.common.AndroidAgentException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.wso2.carbon.device.mgt.common.License; + +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.Produces; + +/** + * License Management related JAX RS APIs + */ + +@Produces({ "application/json", "application/xml" }) +@Consumes({ "application/json", "application/xml" }) +public class Licenses { + + private static Log log = LogFactory.getLog(Licenses.class); + + @GET + public License getLicense(String deviceType) throws AndroidAgentException { + return null; + } + +} diff --git a/product/modules/mobileservices/pom.xml b/product/modules/mobileservices/pom.xml new file mode 100644 index 000000000..140e86014 --- /dev/null +++ b/product/modules/mobileservices/pom.xml @@ -0,0 +1,20 @@ + + + + wso2cdmserver-product + org.wso2.cdmserver + 2.0.0-SNAPSHOT + ../../pom.xml + + + 4.0.0 + org.wso2.cdmserver + wso2cdmserver-product-mobileservices + pom + + agents/windows/jax-rs + agents/android/jax-rs + + \ No newline at end of file