From 0cbc115704574c0ccb1cfef2b0a88c3876c5467a Mon Sep 17 00:00:00 2001 From: Vinod Kumar Vavilapalli Date: Sat, 1 Nov 2014 11:10:03 -0700 Subject: [PATCH] HADOOP-11254. Changed visibility of AccessControlList to be public for consumption by ecosystem. Contributed by Zhijie Shen. (cherry picked from commit b18e8a272eaf69d05d567b8c39e3e7c556935b08) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../apache/hadoop/security/authorize/AccessControlList.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index eaf825be98a..bd9d391afde 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -271,6 +271,9 @@ Release 2.6.0 - UNRELEASED HADOOP-11216. Improve Openssl library finding. (cmccabe via yliu) + HADOOP-11254. Changed visibility of AccessControlList to be public for + consumption by ecosystem. (Zhijie Shen via vinodkv) + OPTIMIZATIONS HADOOP-10838. Byte array native checksumming. (James Thomas via todd) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java index d250df10b2e..f19776fc139 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java @@ -39,7 +39,7 @@ import org.apache.hadoop.util.StringUtils; /** * Class representing a configured access control list. */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public class AccessControlList implements Writable { @@ -209,7 +209,7 @@ public class AccessControlList implements Writable { * Get the names of users allowed for this service. * @return the set of user names. the set must not be modified. */ - Collection getUsers() { + public Collection getUsers() { return users; } @@ -217,7 +217,7 @@ public class AccessControlList implements Writable { * Get the names of user groups allowed for this service. * @return the set of group names. the set must not be modified. */ - Collection getGroups() { + public Collection getGroups() { return groups; }