forked from community/device-mgt-core
parent
50a17eb33d
commit
aa50bf96ed
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<artifactType type="application/vnd.wso2-license+xml" shortName="license" singularLabel="License" pluralLabel="Licenses"
|
||||||
|
hasNamespace="false" iconSet="10">
|
||||||
|
<storagePath>/license/@{overview_provider}/@{overview_name}/@{overview_version}</storagePath>
|
||||||
|
<nameAttribute>overview_name</nameAttribute>
|
||||||
|
<ui>
|
||||||
|
<list>
|
||||||
|
<column name="Provider">
|
||||||
|
<data type="path" value="overview_provider" href="@{storagePath}"/>
|
||||||
|
</column>
|
||||||
|
<column name="Name">
|
||||||
|
<data type="path" value="overview_name" href="@{storagePath}"/>
|
||||||
|
</column>
|
||||||
|
<column name="Version">
|
||||||
|
<data type="path" value="overview_version" href="@{storagePath}"/>
|
||||||
|
</column>
|
||||||
|
</list>
|
||||||
|
</ui>
|
||||||
|
<content>
|
||||||
|
<table name="Overview">
|
||||||
|
<field type="text" required="true">
|
||||||
|
<name>Provider</name>
|
||||||
|
</field>
|
||||||
|
<field type="text" required="true">
|
||||||
|
<name>Name</name>
|
||||||
|
</field>
|
||||||
|
<field type="text" required="true">
|
||||||
|
<name>Version</name>
|
||||||
|
</field>
|
||||||
|
<field type="text">
|
||||||
|
<name>Createdtime</name>
|
||||||
|
</field>
|
||||||
|
<field type="text-area">
|
||||||
|
<name>License</name>
|
||||||
|
</field>
|
||||||
|
</table>
|
||||||
|
</content>
|
||||||
|
</artifactType>
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<artifactId>wso2cdmserver-product</artifactId>
|
||||||
|
<groupId>org.wso2.cdmserver</groupId>
|
||||||
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.wso2.cdmserver</groupId>
|
||||||
|
<artifactId>wso2cdmserver-product-mobileservices</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<modules>
|
||||||
|
<module>agents/windows/jax-rs</module>
|
||||||
|
<module>agents/android/jax-rs</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
Loading…
Reference in new issue