(Boolean.valueOf(archivedGroup)).toString(), StringSerializer.get(), StringSerializer.get()));
}
@Override
public Group getGroupDetails(String groupId) {
Group group = new Group();
group.setGroupId(groupId);
group.setPublicGroup(false);
ColumnSlice<String, String> result = createSliceQuery(keyspaceOperator,
StringSerializer.get(), StringSerializer.get(), StringSerializer.get())
.setColumnFamily(GROUP_DETAILS_CF)
.setKey(groupId)
.setRange(null, null, false, 4)
.execute()
.get();
for (HColumn<String, String> column : result.getColumns()) {
if (column.getName().equals(NAME)) {
group.setName(column.getValue());
} else if (column.getName().equals(DESCRIPTION)) {
group.setDescription(column.getValue());
} else if (column.getName().equals(PUBLIC_GROUP)) {
if (column.getValue().equals(Boolean.TRUE.toString())) {
group.setPublicGroup(true);
}
} else if (column.getName().equals(ARCHIVED_GROUP)) {
if (column.getValue().equals(Boolean.TRUE.toString())) {
group.setArchivedGroup(true);
}
}
}
return group;
}