Tabnine Logo
DefaultAccessControlList.toStringEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
toStringEntries
method
in
alluxio.security.authorization.DefaultAccessControlList

Best Java code snippets using alluxio.security.authorization.DefaultAccessControlList.toStringEntries (Showing top 4 results out of 315)

origin: Alluxio/alluxio

/**
 * @return the default ACL as string entries for this file
 */
public List<String> convertDefaultAclToStringEntries() {
 // do not use getX as the name of the method, otherwise it will be used by json serialization
 return (mDefaultAcl == null) ? new ArrayList<>() : mDefaultAcl.toStringEntries();
}
origin: Alluxio/alluxio

@Override
protected void runPlainPath(AlluxioURI path, CommandLine cl)
  throws AlluxioException, IOException {
 URIStatus status = mFileSystem.getStatus(path);
 System.out.println("# file: " + status.getPath());
 System.out.println("# owner: " + status.getOwner());
 System.out.println("# group: " + status.getGroup());
 for (String entry : status.getAcl().toStringEntries()) {
  System.out.println(entry);
 }
 List<String> defaultAclEntries = status.getDefaultAcl().toStringEntries();
 for (String entry: defaultAclEntries) {
  System.out.println(entry);
 }
}
origin: Alluxio/alluxio

@Test
public void inheritNonExtendedDefaultAcl() throws Exception {
 AlluxioURI dir = new AlluxioURI("/dir");
 mFileSystemMaster.createDirectory(dir, CreateDirectoryContext.defaults());
 String aclString = "default:user::-w-";
 mFileSystemMaster.setAcl(dir, SetAclAction.MODIFY,
   Arrays.asList(AclEntry.fromCliString(aclString)), SetAclContext.defaults());
 AlluxioURI inner = new AlluxioURI("/dir/inner");
 mFileSystemMaster.createDirectory(inner, CreateDirectoryContext.defaults());
 FileInfo fileInfo = mFileSystemMaster.getFileInfo(inner, GetStatusContext.defaults());
 List<String> accessEntries = fileInfo.getAcl().toStringEntries();
 assertTrue(accessEntries.toString(), accessEntries.contains("user::-w-"));
 List<String> defaultEntries = fileInfo.getDefaultAcl().toStringEntries();
 assertTrue(defaultEntries.toString(), defaultEntries.contains(aclString));
}
origin: Alluxio/alluxio

@Test
public void inheritExtendedDefaultAcl() throws Exception {
 AlluxioURI dir = new AlluxioURI("/dir");
 mFileSystemMaster.createDirectory(dir, CreateDirectoryContext.defaults());
 String aclString = "default:user:foo:-w-";
 mFileSystemMaster.setAcl(dir, SetAclAction.MODIFY,
   Arrays.asList(AclEntry.fromCliString(aclString)), SetAclContext.defaults());
 AlluxioURI inner = new AlluxioURI("/dir/inner");
 mFileSystemMaster.createDirectory(inner, CreateDirectoryContext.defaults());
 FileInfo fileInfo = mFileSystemMaster.getFileInfo(inner, GetStatusContext.defaults());
 List<String> accessEntries = fileInfo.getAcl().toStringEntries();
 assertTrue(accessEntries.toString(), accessEntries.contains("user:foo:-w-"));
 List<String> defaultEntries = fileInfo.getDefaultAcl().toStringEntries();
 assertTrue(defaultEntries.toString(), defaultEntries.contains(aclString));
}
alluxio.security.authorizationDefaultAccessControlListtoStringEntries

Popular methods of DefaultAccessControlList

  • isEmpty
    Returns true if the default ACL is empty.
  • <init>
    Constructor to build a default ACL based on an access ACL.
  • generateChildFileACL
    create a child file 's accessACL based on the default ACL.
  • getEntries
    Returns a list of AclEntry which represent this ACL instance. The mask will only be included if exte
  • setEmpty
  • equals
  • generateChildDirACL
    Creates a child directory's access ACL and default ACL based on the default ACL.
  • hasExtended
  • setEntry
  • setOwningGroup
  • setOwningUser
  • toString
  • setOwningUser,
  • toString,
  • updateMask

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now