Author: solomax Date: Fri Aug 19 06:31:32 2016 New Revision: 1756870 URL: http://svn.apache.org/viewvc?rev=1756870&view=rev Log: [OPENMEETINGS-1453] API to get basic Om version is added
Added: openmeetings/application/branches/3.1.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java openmeetings/application/branches/3.2.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java openmeetings/application/trunk/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java Modified: openmeetings/application/branches/3.1.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml openmeetings/application/branches/3.2.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml openmeetings/application/trunk/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml Modified: openmeetings/application/branches/3.1.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml?rev=1756870&r1=1756869&r2=1756870&view=diff ============================================================================== --- openmeetings/application/branches/3.1.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml (original) +++ openmeetings/application/branches/3.1.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml Fri Aug 19 06:31:32 2016 @@ -264,6 +264,7 @@ <bean id="errorWebService" class="org.apache.openmeetings.webservice.ErrorWebService" /> <bean id="fileWebService" class="org.apache.openmeetings.webservice.FileWebService" /> <bean id="groupWebService" class="org.apache.openmeetings.webservice.GroupWebService" /> + <bean id="infoWebService" class="org.apache.openmeetings.webservice.InfoWebService" /> <bean id="recordWebService" class="org.apache.openmeetings.webservice.RecordingWebService" /> <bean id="roomWebService" class="org.apache.openmeetings.webservice.RoomWebService" /> <bean id="serverWebService" class="org.apache.openmeetings.webservice.ServerWebService" /> @@ -277,6 +278,7 @@ <ref bean="errorWebService"/> <ref bean="fileWebService"/> <ref bean="groupWebService"/> + <ref bean="infoWebService"/> <ref bean="recordWebService"/> <ref bean="roomWebService"/> <ref bean="serverWebService"/> @@ -287,6 +289,7 @@ <jaxws:endpoint id="calendarServiceWS" address="/CalendarService" implementor="#calendarWebService"/> <jaxws:endpoint id="errorServiceWS" address="/ErrorService" implementor="#errorWebService" /> <jaxws:endpoint id="groupServiceWS" address="/GroupService" implementor="#groupWebService" /> + <jaxws:endpoint id="infoServiceWS" address="/InfoService" implementor="#infoWebService" /> <jaxws:endpoint id="fileServiceWS" address="/FileService" implementor="#fileWebService" /> <jaxws:endpoint id="recordServiceWS" address="/RecordService" implementor="#recordWebService" /> <jaxws:endpoint id="roomServiceWS" address="/RoomService" implementor="#roomWebService" /> Added: openmeetings/application/branches/3.1.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java?rev=1756870&view=auto ============================================================================== --- openmeetings/application/branches/3.1.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java (added) +++ openmeetings/application/branches/3.1.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java Fri Aug 19 06:31:32 2016 @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF 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.apache.openmeetings.webservice; + +import static org.apache.openmeetings.webservice.Constants.TNS; + +import javax.jws.WebMethod; +import javax.jws.WebService; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import org.apache.cxf.feature.Features; +import org.apache.openmeetings.util.Version; + +/** + * + * The Service contains methods to get localized errors + * + * @author solomax + * + */ +@WebService(serviceName="org.apache.openmeetings.webservice.InfoWebService", targetNamespace = TNS) +@Features(features = "org.apache.cxf.feature.LoggingFeature") +@Produces({MediaType.APPLICATION_JSON}) +@Path("/info") +public class InfoWebService { + /** + * Method to get current OpenMeetings version + * + * @return - version + */ + @WebMethod + @GET + @Path("/version") + public String getVersion() { + return Version.getVersion(); + } +} Modified: openmeetings/application/branches/3.2.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.2.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml?rev=1756870&r1=1756869&r2=1756870&view=diff ============================================================================== --- openmeetings/application/branches/3.2.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml (original) +++ openmeetings/application/branches/3.2.x/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml Fri Aug 19 06:31:32 2016 @@ -260,6 +260,7 @@ <bean id="errorWebService" class="org.apache.openmeetings.webservice.ErrorWebService" /> <bean id="fileWebService" class="org.apache.openmeetings.webservice.FileWebService" /> <bean id="groupWebService" class="org.apache.openmeetings.webservice.GroupWebService" /> + <bean id="infoWebService" class="org.apache.openmeetings.webservice.InfoWebService" /> <bean id="recordWebService" class="org.apache.openmeetings.webservice.RecordingWebService" /> <bean id="roomWebService" class="org.apache.openmeetings.webservice.RoomWebService" /> <bean id="serverWebService" class="org.apache.openmeetings.webservice.ServerWebService" /> @@ -273,6 +274,7 @@ <ref bean="errorWebService"/> <ref bean="fileWebService"/> <ref bean="groupWebService"/> + <ref bean="infoWebService"/> <ref bean="recordWebService"/> <ref bean="roomWebService"/> <ref bean="serverWebService"/> @@ -283,6 +285,7 @@ <jaxws:endpoint id="calendarServiceWS" address="/CalendarService" implementor="#calendarWebService"/> <jaxws:endpoint id="errorServiceWS" address="/ErrorService" implementor="#errorWebService" /> <jaxws:endpoint id="groupServiceWS" address="/GroupService" implementor="#groupWebService" /> + <jaxws:endpoint id="infoServiceWS" address="/InfoService" implementor="#infoWebService" /> <jaxws:endpoint id="fileServiceWS" address="/FileService" implementor="#fileWebService" /> <jaxws:endpoint id="recordServiceWS" address="/RecordService" implementor="#recordWebService" /> <jaxws:endpoint id="roomServiceWS" address="/RoomService" implementor="#roomWebService" /> Added: openmeetings/application/branches/3.2.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java URL: http://svn.apache.org/viewvc/openmeetings/application/branches/3.2.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java?rev=1756870&view=auto ============================================================================== --- openmeetings/application/branches/3.2.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java (added) +++ openmeetings/application/branches/3.2.x/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java Fri Aug 19 06:31:32 2016 @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF 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.apache.openmeetings.webservice; + +import static org.apache.openmeetings.webservice.Constants.TNS; + +import javax.jws.WebMethod; +import javax.jws.WebService; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import org.apache.cxf.feature.Features; +import org.apache.openmeetings.util.Version; + +/** + * + * The Service contains methods to get localized errors + * + * @author solomax + * + */ +@WebService(serviceName="org.apache.openmeetings.webservice.InfoWebService", targetNamespace = TNS) +@Features(features = "org.apache.cxf.feature.LoggingFeature") +@Produces({MediaType.APPLICATION_JSON}) +@Path("/info") +public class InfoWebService { + /** + * Method to get current OpenMeetings version + * + * @return - version + */ + @WebMethod + @GET + @Path("/version") + public String getVersion() { + return Version.getVersion(); + } +} Modified: openmeetings/application/trunk/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml URL: http://svn.apache.org/viewvc/openmeetings/application/trunk/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml?rev=1756870&r1=1756869&r2=1756870&view=diff ============================================================================== --- openmeetings/application/trunk/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml (original) +++ openmeetings/application/trunk/openmeetings-web/src/main/webapp/WEB-INF/classes/openmeetings-applicationContext.xml Fri Aug 19 06:31:32 2016 @@ -258,6 +258,7 @@ <bean id="errorWebService" class="org.apache.openmeetings.webservice.ErrorWebService" /> <bean id="fileWebService" class="org.apache.openmeetings.webservice.FileWebService" /> <bean id="groupWebService" class="org.apache.openmeetings.webservice.GroupWebService" /> + <bean id="infoWebService" class="org.apache.openmeetings.webservice.InfoWebService" /> <bean id="recordWebService" class="org.apache.openmeetings.webservice.RecordingWebService" /> <bean id="roomWebService" class="org.apache.openmeetings.webservice.RoomWebService" /> <bean id="serverWebService" class="org.apache.openmeetings.webservice.ServerWebService" /> @@ -271,6 +272,7 @@ <ref bean="errorWebService"/> <ref bean="fileWebService"/> <ref bean="groupWebService"/> + <ref bean="infoWebService"/> <ref bean="recordWebService"/> <ref bean="roomWebService"/> <ref bean="serverWebService"/> @@ -281,6 +283,7 @@ <jaxws:endpoint id="calendarServiceWS" address="/CalendarService" implementor="#calendarWebService"/> <jaxws:endpoint id="errorServiceWS" address="/ErrorService" implementor="#errorWebService" /> <jaxws:endpoint id="groupServiceWS" address="/GroupService" implementor="#groupWebService" /> + <jaxws:endpoint id="infoServiceWS" address="/InfoService" implementor="#infoWebService" /> <jaxws:endpoint id="fileServiceWS" address="/FileService" implementor="#fileWebService" /> <jaxws:endpoint id="recordServiceWS" address="/RecordService" implementor="#recordWebService" /> <jaxws:endpoint id="roomServiceWS" address="/RoomService" implementor="#roomWebService" /> Added: openmeetings/application/trunk/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java URL: http://svn.apache.org/viewvc/openmeetings/application/trunk/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java?rev=1756870&view=auto ============================================================================== --- openmeetings/application/trunk/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java (added) +++ openmeetings/application/trunk/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java Fri Aug 19 06:31:32 2016 @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF 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.apache.openmeetings.webservice; + +import static org.apache.openmeetings.webservice.Constants.TNS; + +import javax.jws.WebMethod; +import javax.jws.WebService; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import org.apache.cxf.feature.Features; +import org.apache.openmeetings.util.Version; + +/** + * + * The Service contains methods to get localized errors + * + * @author solomax + * + */ +@WebService(serviceName="org.apache.openmeetings.webservice.InfoWebService", targetNamespace = TNS) +@Features(features = "org.apache.cxf.feature.LoggingFeature") +@Produces({MediaType.APPLICATION_JSON}) +@Path("/info") +public class InfoWebService { + /** + * Method to get current OpenMeetings version + * + * @return - version + */ + @WebMethod + @GET + @Path("/version") + public String getVersion() { + return Version.getVersion(); + } +}