Author: xor
Date: 2008-10-28 00:12:18 +0000 (Tue, 28 Oct 2008)
New Revision: 23128
Modified:
trunk/plugins/FMSPlugin/FMSBoard.java
trunk/plugins/FMSPlugin/FMSMessageManager.java
Log:
Make the FMSBoard and FMSMessage iterators require an FMSOwnIdentity as
parameter. I suppose we will make the FMSMessageManager store the union of the
(trust-based) message sets from all own identities and make the iterators
select the view of the passed identity from that union-set.
Modified: trunk/plugins/FMSPlugin/FMSBoard.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSBoard.java 2008-10-28 00:03:35 UTC (rev
23127)
+++ trunk/plugins/FMSPlugin/FMSBoard.java 2008-10-28 00:12:18 UTC (rev
23128)
@@ -9,7 +9,7 @@
* @author xor
*
*/
-public class FMSBoard implements Iterable<FMSMessage> {
+public class FMSBoard {
private final String mName;
private String mDescription;
@@ -40,7 +40,7 @@
return mName;
}
- public Iterator<FMSMessage> iterator() {
+ public Iterator<FMSMessage> iterator(FMSOwnIdentity identity) {
// TODO Auto-generated method stub
return null;
}
Modified: trunk/plugins/FMSPlugin/FMSMessageManager.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSMessageManager.java 2008-10-28 00:03:35 UTC
(rev 23127)
+++ trunk/plugins/FMSPlugin/FMSMessageManager.java 2008-10-28 00:12:18 UTC
(rev 23128)
@@ -3,11 +3,13 @@
* http://www.gnu.org/ for further details of the GPL. */
package plugins.FMSPlugin;
+import java.util.Iterator;
+
/**
* @author xor
*
*/
-public abstract class FMSMessageManager implements Iterable<FMSBoard> {
+public abstract class FMSMessageManager {
private FMSIdentityManager mIdentityManager;
@@ -16,4 +18,6 @@
}
public abstract FMSBoard getBoardByName(String name);
+
+ public abstract Iterator<FMSBoard> iterator(FMSOwnIdentity identity);
}