You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2012/07/02 03:13:37 UTC
svn commit: r1356053 - in /incubator/openmeetings/trunk/singlewebapp: ./
src/org/openmeetings/app/data/beans/basic/
src/org/openmeetings/app/data/conference/
Author: solomax
Date: Mon Jul 2 01:13:36 2012
New Revision: 1356053
URL: http://svn.apache.org/viewvc?rev=1356053&view=rev
Log:
Redundant target is removed from build.xml;
getRoomsInternatlByHQL is fixed to have valid query
Added:
incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java
- copied, changed from r1355867, incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java
incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResultUsers.java
Modified:
incubator/openmeetings/trunk/singlewebapp/build.xml
incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/conference/Roommanagement.java
Modified: incubator/openmeetings/trunk/singlewebapp/build.xml
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/build.xml?rev=1356053&r1=1356052&r2=1356053&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/build.xml (original)
+++ incubator/openmeetings/trunk/singlewebapp/build.xml Mon Jul 2 01:13:36 2012
@@ -743,10 +743,6 @@
<ivy:retrieve conf="${ivy.conf.name}" pattern="${ivy.lib.location}/[artifact]-[type]-[revision].[ext]" />
</target>
- <!-- wrapper to load the server before the client to have the
- red5.jar that is necessary to build the client -->
- <target name="-retrieve-red5" depends="-retrieve-red5-client" />
-
<!-- Check for the Red5 libraries -->
<target name="-retrieve-red5-server" unless="red5.installed" description="Retrieves the libraries if needed" depends="-ant-task">
<svn refid="svn.settings">
@@ -798,7 +794,7 @@
</target>
<!-- Check for the Top level libraries -->
- <target name="-retrieve-mainlibs" unless="mainlib.installed" description="Retrieves the libraries if needed" depends="-retrieve-red5">
+ <target name="-retrieve-mainlibs" unless="mainlib.installed" description="Retrieves the libraries if needed" depends="-retrieve-red5-client">
<!-- Ivy configuration - http://ant.apache.org/ivy/history/trunk/ant.html -->
<antcall target="-retrieve" inheritAll="true" inheritRefs="true">
<param name="ivy.conf.name" value="mainlib" />
Copied: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java (from r1355867, incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java)
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java?p2=incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java&p1=incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java&r1=1355867&r2=1356053&rev=1356053&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java (original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResult.java Mon Jul 2 01:13:36 2012
@@ -18,10 +18,11 @@
*/
package org.openmeetings.app.data.beans.basic;
+import java.io.Serializable;
import java.util.List;
-public class SearchResult<T> {
-
+public class SearchResult<T> implements Serializable {
+ private static final long serialVersionUID = -2428450774121690218L;
private String objectName;
private Long records;
private List<T> result;
@@ -51,5 +52,4 @@ public class SearchResult<T> {
public void setErrorId(Long errorId) {
this.errorId = errorId;
}
-
}
Added: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResultUsers.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResultUsers.java?rev=1356053&view=auto
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResultUsers.java (added)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/beans/basic/SearchResultUsers.java Mon Jul 2 01:13:36 2012
@@ -0,0 +1,25 @@
+/*
+ * 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.openmeetings.app.data.beans.basic;
+
+import org.openmeetings.app.persistence.beans.user.Users;
+
+public class SearchResultUsers extends SearchResult<Users> {
+ private static final long serialVersionUID = -2428450774121690218L;
+}
Modified: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/conference/Roommanagement.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/conference/Roommanagement.java?rev=1356053&r1=1356052&r2=1356053&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/conference/Roommanagement.java (original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/data/conference/Roommanagement.java Mon Jul 2 01:13:36 2012
@@ -498,15 +498,15 @@ public class Roommanagement {
} else {
search = "%" + search + "%";
}
-
- hql += " ORDER BY " + orderby;
-
- if (asc) {
- hql += " ASC";
- } else {
- hql += " DESC";
+ if (orderby != null) {
+ hql += " ORDER BY " + (orderby.startsWith("c.") ? "" : "c.") + orderby;
+
+ if (asc) {
+ hql += " ASC";
+ } else {
+ hql += " DESC";
+ }
}
-
TypedQuery<Rooms> query = em.createQuery(hql, Rooms.class);
query.setParameter("search", search);
query.setFirstResult(start);