Revision: 4133
Author:   seba.wagner
Date:     Mon Aug 29 14:13:20 2011
Log:      Remove wanring from springBean
Remove several warning from ScopeApplicationAdapter
http://code.google.com/p/openmeetings/source/detail?r=4133

Modified:
 /branches/dev/injection/.springBeans
/branches/dev/injection/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java

=======================================
--- /branches/dev/injection/.springBeans        Sun Aug 28 09:19:04 2011
+++ /branches/dev/injection/.springBeans        Mon Aug 29 14:13:20 2011
@@ -7,7 +7,6 @@
        </configSuffixes>
        <enableImports><![CDATA[false]]></enableImports>
        <configs>
-               <config>WebContent/WEB-INF/red5-web.xml</config>
                
<config>WebContent/WEB-INF/openmeetings-applicationContext.xml</config>
<config>WebContent/WEB-INF/red5-services/appointmentcategoryservice.service.xml</config> <config>WebContent/WEB-INF/red5-services/appointmentreminderservice.service.xml</config>
=======================================
--- /branches/dev/injection/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java Mon Aug 29 12:03:45 2011 +++ /branches/dev/injection/src/app/org/openmeetings/app/remote/red5/ScopeApplicationAdapter.java Mon Aug 29 14:13:20 2011
@@ -203,11 +203,11 @@
                return true;
        }

+       @SuppressWarnings({ "rawtypes", "unchecked" })
        public synchronized Map screenSharerAction(Map map) {
                try {

                        IConnection current = Red5.getConnectionLocal();
-                       IServiceCapableConnection service = 
(IServiceCapableConnection) current;

                        RoomClient currentClient = this.clientListManager
                                        
.getClientByStreamId(current.getClient().getId());
@@ -377,6 +377,7 @@
                return null;
        }

+       @SuppressWarnings({ "rawtypes", "unchecked" })
        public synchronized Map setConnectionAsSharingClient(Map map) {
                try {

@@ -1174,6 +1175,7 @@
                return -1L;
        }

+       @SuppressWarnings("unchecked")
        public void setNewCursorPosition(Object item) {
                try {

@@ -1184,6 +1186,7 @@

                        // log.debug("[setNewCursorPosition]"+item);

+                       @SuppressWarnings("rawtypes")
                        Map cursor = (Map) item;
                        cursor.put("streamPublishName",
                                        currentClient.getStreamPublishName());
@@ -1359,7 +1362,7 @@
        public synchronized Long applyForModeration(String publicSID) {
                try {

-                       IConnection current = Red5.getConnectionLocal();
+                       // IConnection current = Red5.getConnectionLocal();
                        // String streamid = current.getClient().getId();

                        RoomClient currentClient = this.clientListManager
@@ -1430,7 +1433,7 @@
                        RoomClient currentClient = this.clientListManager
                                        .getClientByStreamId(streamid);
                        currentClient.setAvsettings(avsettings);
-                       Long room_id = currentClient.getRoom_id();
+                       // Long room_id = currentClient.getRoom_id();
                        this.clientListManager.updateClientByStreamId(streamid,
                                        currentClient);

@@ -2247,7 +2250,7 @@
                                        + currentClient.getUsername());
                        currentClient.setUsercolor(colorObj);
                        currentClient.setUserpos(userPos);
-                       Long room_id = currentClient.getRoom_id();
+                       // Long room_id = currentClient.getRoom_id();

                        // Notify all clients of the same scope (room)
                        Collection<Set<IConnection>> conCollection = 
current.getScope()
@@ -2414,6 +2417,7 @@
         * @param whiteboardObj
         * @return
         */
+       @SuppressWarnings({ "rawtypes", "unchecked" })
        public synchronized void sendVars(ArrayList whiteboardObjParam) {
                //
                try {
@@ -2471,7 +2475,7 @@
                                
WhiteboardManagement.getInstance().addWhiteBoardObject(room_id,
                                                whiteboardObj);
                        }
-                       int numberOfUsers = 0;
+                       // int numberOfUsers = 0;

                        // This is no longer necessary
                        // boolean ismod = currentClient.getIsMod();
@@ -2518,7 +2522,7 @@
                                                                                
                        this);
                                                                        // 
log.debug("sending sendVarsToWhiteboard to "
                                                                        // + conn + 
" rcl " + rcl);
-                                                                       
numberOfUsers++;
+                                                                       // 
numberOfUsers++;
                                                                }
                                                        }
                                                }
@@ -2542,6 +2546,7 @@
         * @param whiteboardObj
         * @return
         */
+       @SuppressWarnings({ "rawtypes", "unchecked" })
        public synchronized void sendVarsByWhiteboardId(
                        ArrayList whiteboardObjParam, Long whiteboardId) {
                //
@@ -2618,8 +2623,6 @@
                                                room_id, whiteboardObj, 
whiteboardId);

                        }
-
-                       int numberOfUsers = 0;

                        // This is no longer necessary
                        // boolean ismod = currentClient.getIsMod();
@@ -2668,7 +2671,7 @@
                                                                                
                                        sendObject }, this);
                                                                        // 
log.debug("sending sendVarsToWhiteboard to "
                                                                        // + conn + 
" rcl " + rcl);
-                                                                       
numberOfUsers++;
+                                                                       // 
numberOfUsers++;
                                                                }
                                                        }
                                                }
@@ -2692,7 +2695,7 @@
                        IConnection current = Red5.getConnectionLocal();
                        RoomClient currentClient = this.clientListManager
                                        
.getClientByStreamId(current.getClient().getId());
-                       Long room_id = currentClient.getRoom_id();
+                       // Long room_id = currentClient.getRoom_id();

                        log.debug("***** id: " + currentClient.getStreamid());

@@ -2786,6 +2789,7 @@
                return 1;
        }

+       @SuppressWarnings({ "rawtypes" })
        public synchronized int sendBrowserMessageToMembers(Object newMessage) {
                try {
                        IConnection current = Red5.getConnectionLocal();
@@ -2903,7 +2907,6 @@
                        IConnection current = Red5.getConnectionLocal();
                        RoomClient currentClient = this.clientListManager
                                        
.getClientByStreamId(current.getClient().getId());
-                       Long room_id = currentClient.getRoom_id();

                        HashMap<String, Object> hsm = new HashMap<String, 
Object>();
                        hsm.put("client", currentClient);
@@ -2956,8 +2959,6 @@
public synchronized int sendMessageById(Object newMessage, String clientId,
                        IScope scope) {
                try {
-                       IConnection current = Red5.getConnectionLocal();
-
                        log.debug("### sendMessageById ###" + clientId);

                        HashMap<String, Object> hsm = new HashMap<String, 
Object>();
@@ -3761,15 +3762,13 @@
                return null;
        }

+       @SuppressWarnings({ "rawtypes" })
        public synchronized Boolean sendRemoteCursorEvent(String streamid,
                        Map messageObj) {
                try {

                        IConnection current = Red5.getConnectionLocal();

-                       boolean found = false;
-                       Long flvRecordingId = null;
-
                        Collection<Set<IConnection>> conCollection = 
current.getScope()
                                        .getConnections();
                        for (Set<IConnection> conset : conCollection) {

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to