Private Group List

This commit is contained in:
Torsten Grote
2016-09-29 18:39:37 -03:00
parent 3ea36bbd40
commit b09e30a95f
39 changed files with 945 additions and 61 deletions

View File

@@ -25,12 +25,15 @@ import org.jetbrains.annotations.NotNull;
import java.util.Collection;
import java.util.Collections;
import java.util.logging.Logger;
import javax.inject.Inject;
public class PrivateGroupManagerImpl extends BdfIncomingMessageHook implements
PrivateGroupManager {
private static final Logger LOG =
Logger.getLogger(PrivateGroupManagerImpl.class.getName());
static final ClientId CLIENT_ID = new ClientId(
StringUtils.fromHexString("5072697661746547726f75704d616e61"
+ "67657220627920546f727374656e2047"));
@@ -55,6 +58,11 @@ public class PrivateGroupManagerImpl extends BdfIncomingMessageHook implements
return CLIENT_ID;
}
@Override
public void removePrivateGroup(GroupId g) throws DbException {
}
@Override
public void addLocalMessage(GroupMessage m) throws DbException {
Transaction txn = db.startTransaction(false);
@@ -91,6 +99,11 @@ public class PrivateGroupManagerImpl extends BdfIncomingMessageHook implements
return Collections.emptyList();
}
@Override
public boolean isDissolved(GroupId g) throws DbException {
return false;
}
@NotNull
@Override
public String getMessageBody(MessageId m) throws DbException {