Browse files

Some fixes to imports and some comments.

  • Loading branch information...
1 parent 7710d13 commit b088e1deb47eb1f791417f66f89572fb8ee6c3ac @ieb ieb committed Sep 17, 2009
View
2 ...ikernel/bundles/discussion/src/main/java/org/sakaiproject/kernel/api/discussion/Post.java
@@ -35,10 +35,8 @@
import java.util.List;
import javax.jcr.Node;
-import javax.jcr.Property;
import javax.jcr.RepositoryException;
import javax.jcr.UnsupportedRepositoryOperationException;
-import javax.jcr.Value;
public class Post {
View
1 ...es/discussion/src/main/java/org/sakaiproject/kernel/discussion/DiscussionManagerImpl.java
@@ -19,7 +19,6 @@
import org.sakaiproject.kernel.api.discussion.DiscussionManager;
import org.sakaiproject.kernel.api.message.MessagingException;
-import org.sakaiproject.kernel.util.PathUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
View
5 ...bundles/discussion/src/main/java/org/sakaiproject/kernel/discussion/DiscussionRouter.java
@@ -7,7 +7,6 @@
import org.sakaiproject.kernel.api.message.MessageRoute;
import org.sakaiproject.kernel.api.message.MessageRouter;
import org.sakaiproject.kernel.api.message.MessageRoutes;
-import org.sakaiproject.kernel.message.listener.MessageRouteImpl;
import java.util.ArrayList;
import java.util.List;
@@ -58,6 +57,10 @@ public void route(Node n, MessageRoutes routing) {
String marker = n.getProperty(DiscussionConstants.PROP_MARKER).getString();
String type = n.getProperty(MessageConstants.PROP_SAKAI_TYPE).getString();
+ // TODO: I have a feeling that this is really part of something more generic
+ // and not specific to discussion. If we make it specific to discussion we
+ // will loose unified messaging and control of that messaging.
+
Node settings = discussionManager.findSettings(marker, n.getSession(), type);
if (settings != null
&& settings.hasProperty(DiscussionConstants.PROP_NOTIFICATION)) {
View
5 ...messaging/src/main/java/org/sakaiproject/kernel/message/MessageSearchResultProcessor.java
@@ -23,14 +23,9 @@
import org.sakaiproject.kernel.api.message.MessagingService;
import org.sakaiproject.kernel.api.personal.PersonalUtils;
import org.sakaiproject.kernel.api.search.SearchResultProcessor;
-import org.sakaiproject.kernel.util.PathUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-
import javax.jcr.Node;
import javax.jcr.PathNotFoundException;
import javax.jcr.Property;
View
2 ...presence/src/main/java/org/sakaiproject/kernel/presence/servlets/PresenceUserServlet.java
@@ -20,7 +20,6 @@
import java.io.IOException;
import java.io.Writer;
-import java.util.List;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
@@ -33,7 +32,6 @@
import org.apache.sling.api.servlets.SlingAllMethodsServlet;
import org.apache.sling.commons.json.JSONException;
import org.sakaiproject.kernel.api.connections.ConnectionManager;
-import org.sakaiproject.kernel.api.connections.ConnectionState;
import org.sakaiproject.kernel.api.personal.PersonalUtils;
import org.sakaiproject.kernel.api.presence.PresenceService;
import org.sakaiproject.kernel.presence.PresenceUtils;

0 comments on commit b088e1d

Please sign in to comment.