congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AccessControlList.clearEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
clearEntries
method
in
alluxio.security.authorization.AccessControlList

Best Java code snippets using alluxio.security.authorization.AccessControlList.clearEntries (Showing top 2 results out of 315)

origin: Alluxio/alluxio

/**
 * Creates a new instance where owning user and owning group are initialized to empty strings,
 * and no action is permitted for any user or group.
 */
public AccessControlList() {
 mOwningUser = "";
 mOwningGroup = "";
 clearEntries();
}
origin: Alluxio/alluxio

/**
 * Replaces all existing ACL entries with a new list of entries.
 *
 * @param entries the new list of ACL entries
 * @return the updated object
 */
public T replaceAcl(List<AclEntry> entries) {
 boolean clearACL = false;
 for (AclEntry entry : entries) {
  /**
   * if we are only setting default ACLs, we do not need to clear access ACL entries
   * observed same behavior on linux
   */
  if (!entry.isDefault()) {
   clearACL = true;
  }
 }
 if (clearACL) {
  mAcl.clearEntries();
 }
 return setAcl(entries);
}
alluxio.security.authorizationAccessControlListclearEntries

Javadoc

Clears out all entries (does not modify the owner name and owning group).

Popular methods of AccessControlList

  • <init>
    Creates a new instance where owning user and owning group are initialized to empty strings, and no a
  • getEntries
    Returns a list of AclEntry which represent this ACL instance. The mask will only be included if exte
  • getOwningGroup
  • getOwningUser
  • hasExtended
  • setEntry
    Sets an entry into the access control list. If an entry with the same type and subject already exist
  • setOwningGroup
    Sets owning group.
  • setOwningUser
    Sets owning user.
  • getMode
  • getPermission
    Gets the permitted actions for a user. When AccessControlList is not modified after calling getPermi
  • setMode
    Sets permitted actions for owning user, owning group, and other based on the mode. The format of mod
  • toString
  • setMode,
  • toString,
  • toStringEntries,
  • checkPermission,
  • fromStringEntries,
  • getOtherActions,
  • getOwningGroupActions,
  • getOwningUserActions,
  • removeEntry

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • IsNull (org.hamcrest.core)
    Is the value null?
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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