Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 41770200D48 for ; Wed, 29 Nov 2017 23:47:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3FD6F160C04; Wed, 29 Nov 2017 22:47:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC9E8160C02 for ; Wed, 29 Nov 2017 23:47:18 +0100 (CET) Received: (qmail 75383 invoked by uid 500); 29 Nov 2017 22:47:17 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 75372 invoked by uid 99); 29 Nov 2017 22:47:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2017 22:47:17 +0000 From: GitBox To: notifications@accumulo.apache.org Subject: [GitHub] milleruntime commented on a change in pull request #43: ACCUMULO-4734 Changes from review of tour Message-ID: <151199563729.31941.16206552761057187354.gitbox@gitbox.apache.org> archived-at: Wed, 29 Nov 2017 22:47:19 -0000 milleruntime commented on a change in pull request #43: ACCUMULO-4734 Changes from review of tour URL: https://github.com/apache/accumulo-website/pull/43#discussion_r153938770 ########## File path: tour/authorizations-code.md ########## @@ -1,64 +1,69 @@ --- title: Authorizations Code --- + +Below is a solution for the exercise. + ```java - // start writing your code here - // Connect to Mini Accumulo as the root user and create a table called "GothamPD". - Connector conn = mac.getConnector("root", "tourguide"); - conn.tableOperations().create("GothamPD"); +static void exercise(MiniAccumuloCluster mac) throws Exception { + // Connect to Mini Accumulo as the root user and create a table called "GothamPD". + Connector conn = mac.getConnector("root", "tourguide"); + conn.tableOperations().create("GothamPD"); - // Create a "secretIdentity" authorization & visibility - final String secId = "secretIdentity"; - Authorizations auths = new Authorizations(secId); - ColumnVisibility visibility = new ColumnVisibility(secId); + // Create a "viewSecretId" authorization & visibility + final String viewSecretId = "viewSecretId"; Review comment: I like "secretIdentity" better since it applies to both an authorization and visibility. It seems odd to secure a column with a visibility = "viewSecretId" ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services