Package io.fathom.cloud.state.StateStore

Examples of io.fathom.cloud.state.StateStore.StateNode


        return new NumberedItemCollection<GroupData>(domain, GroupData.newBuilder(), ProjectData.getDescriptor()
                .findFieldByNumber(GroupData.ID_FIELD_NUMBER));
    }

    public NumberedItemCollection<UserData> getUsers() {
        StateNode node = stateStore.getRoot("users");

        return new NumberedItemCollection<UserData>(node, UserData.newBuilder(), UserData.getDescriptor()
                .findFieldByNumber(UserData.ID_FIELD_NUMBER));
    }
View Full Code Here


    public NamedItemCollection<CredentialData> getUsernames(DomainData domain) {
        if (domain == null) {
            throw new IllegalArgumentException();
        }

        StateNode root = stateStore.getRoot("credentials");
        StateNode domainNode = root.child(Long.toHexString(domain.getId()));

        return new NamedItemCollection<CredentialData>(domainNode, CredentialData.newBuilder(), CredentialData
                .getDescriptor().findFieldByNumber(CredentialData.KEY_FIELD_NUMBER));
    }
View Full Code Here

    public RoleStore getRoles() {
        return new RoleStore();
    }

    public NamedItemCollection<CredentialData> getEc2Credentials() {
        StateNode root = stateStore.getRoot("ec2cred");

        return new NamedItemCollection<CredentialData>(root, CredentialData.newBuilder(), CredentialData
                .getDescriptor().findFieldByNumber(CredentialData.KEY_FIELD_NUMBER));
    }
View Full Code Here

        return new NamedItemCollection<CredentialData>(root, CredentialData.newBuilder(), CredentialData
                .getDescriptor().findFieldByNumber(CredentialData.KEY_FIELD_NUMBER));
    }

    public NamedItemCollection<AttachmentData> getUserAttachments(long userId) {
        StateNode root = stateStore.getRoot("attach-user");
        StateNode child = root.child(Long.toHexString(userId));
        return new NamedItemCollection<AttachmentData>(child, AttachmentData.newBuilder(), AttachmentData
                .getDescriptor().findFieldByNumber(AttachmentData.KEY_FIELD_NUMBER));
    }
View Full Code Here

        return new NamedItemCollection<AttachmentData>(child, AttachmentData.newBuilder(), AttachmentData
                .getDescriptor().findFieldByNumber(AttachmentData.KEY_FIELD_NUMBER));
    }

    public NamedItemCollection<AttachmentData> getProjectAttachments(long projectId) {
        StateNode root = stateStore.getRoot("attach-project");
        StateNode child = root.child(Long.toHexString(projectId));
        return new NamedItemCollection<AttachmentData>(child, AttachmentData.newBuilder(), AttachmentData
                .getDescriptor().findFieldByNumber(AttachmentData.KEY_FIELD_NUMBER));
    }
View Full Code Here

        return new NamedItemCollection<AttachmentData>(child, AttachmentData.newBuilder(), AttachmentData
                .getDescriptor().findFieldByNumber(AttachmentData.KEY_FIELD_NUMBER));
    }

    public NamedItemCollection<ClientAppData> getClientApps(long projectId) {
        StateNode root = stateStore.getRoot("clientapps");
        StateNode projectNode = root.child(Long.toHexString(projectId));

        return new NamedItemCollection<ClientAppData>(projectNode, ClientAppData.newBuilder(), ClientAppData
                .getDescriptor().findFieldByNumber(ClientAppData.KEY_FIELD_NUMBER));
    }
View Full Code Here

        return new NamedItemCollection<ClientAppData>(projectNode, ClientAppData.newBuilder(), ClientAppData
                .getDescriptor().findFieldByNumber(ClientAppData.KEY_FIELD_NUMBER));
    }

    public NamedItemCollection<CredentialData> getPublicKeyCredentials(long domainId) {
        StateNode root = stateStore.getRoot("publickeys");
        StateNode domain = root.child(Long.toHexString(domainId));

        return NamedItemCollection.builder(domain, CredentialData.class).idField(CredentialData.KEY_FIELD_NUMBER)
                .create();
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.state.StateStore.StateNode

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.