Package fr.ippon.tatami.domain

Examples of fr.ippon.tatami.domain.Group


                (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;
    }
View Full Code Here


                        .setName(groupId)
                        .execute()
                        .get();

        if (column != null) {
            Group group = new Group();
            group.setDomain(domain);
            group.setGroupId(groupId);
            return group;
        } else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of fr.ippon.tatami.domain.Group

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.