summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-09 07:13:34 (EDT)
committerEike Stepper2007-10-09 07:13:34 (EDT)
commit8704a4307a4d79b6bbf146bd6d6f75a743f83b88 (patch)
treef4c974fb273a5cf2d022dbb54d25c51d1800d9ec
parente947597f34fcda5c0130e96b67ad942ed85fb5db (diff)
downloadcdo-8704a4307a4d79b6bbf146bd6d6f75a743f83b88.zip
cdo-8704a4307a4d79b6bbf146bd6d6f75a743f83b88.tar.gz
cdo-8704a4307a4d79b6bbf146bd6d6f75a743f83b88.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerBuddy.java8
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerMessageIndication.java2
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientBuddy.java7
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/Self.java11
4 files changed, 23 insertions, 5 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerBuddy.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerBuddy.java
index 38dbc2d..0084853 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerBuddy.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerBuddy.java
@@ -47,7 +47,13 @@ public class ServerBuddy extends Buddy
throw new UnsupportedOperationException("Not yet implemented");
}
- public ICollaboration join(String collaborationID)
+ public ICollaboration join(long collaborationID)
+ {
+ // TODO Implement method ServerBuddy.join()
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
+ public ICollaboration join(Object invitationToken)
{
// TODO Implement method ServerBuddy.join()
throw new UnsupportedOperationException("Not yet implemented");
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerMessageIndication.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerMessageIndication.java
index 3cee0e0..dba28b1 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerMessageIndication.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerMessageIndication.java
@@ -22,7 +22,7 @@ public class ServerMessageIndication extends MessageIndication
{
synchronized (IBuddyAdmin.INSTANCE)
{
- Map<String, ICollaboration> collaborations = IBuddyAdmin.INSTANCE.getCollaborations();
+ Map<Long, ICollaboration> collaborations = IBuddyAdmin.INSTANCE.getCollaborations();
Collaboration collaboration = (Collaboration)collaborations.get(message.getCollaborationID());
if (collaboration != null)
{
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientBuddy.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientBuddy.java
index 99b6187..340258d 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientBuddy.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientBuddy.java
@@ -58,7 +58,12 @@ public class ClientBuddy extends Buddy
throw new UnsupportedOperationException();
}
- public ICollaboration join(String collaborationID)
+ public ICollaboration join(long collaborationID)
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public ICollaboration join(Object invitationToken)
{
throw new UnsupportedOperationException();
}
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/Self.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/Self.java
index a9b45ed..b75b8ad 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/Self.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/Self.java
@@ -63,8 +63,15 @@ public class Self extends Buddy
}
}
- public ICollaboration join(String collaborationID)
+ public ICollaboration join(long collaborationID)
{
- return null;
+ // TODO Implement method Self.join()
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
+ public ICollaboration join(Object invitationToken)
+ {
+ // TODO Implement method Self.join()
+ throw new UnsupportedOperationException("Not yet implemented");
}
}