Package com.mapr.fs

Class MapRFileAce

java.lang.Object
com.mapr.fs.MapRFileAce

public class MapRFileAce extends Object
Access Control Expression. An ACE is defined by a combination of user, group, or role definitions. You can combine these definitions using the following syntax:
  • u: Username or user ID, as they appear in /etc/passwd, of a specific user. Usage: u:[username or user ID]
  • g: Group name or group ID, as they appear in /etc/group, of a specific group. Usage: g:[group name or group ID]
  • r: Name of a specific role. Usage: r:[role name]. More details about roles is found at Roles
  • p: Public. Specifies that this operation is available to the public without restriction. Cannot be combined with any other operator.
  • !: Negation operator. Usage: ![operator].
  • &: AND operation.
  • |: OR operation
  • (): Delimiters for subexpressions.
  • "": The empty string indicates that no user has the specified permission.
An example definition is u:1001 | g:engineering, which restricts access to the user with ID 1001 or to any user belonging to engineering group. More details about syntax and examples is found in ACE
  • Constructor Details

  • Method Details

    • setBooleanExpression

      public void setBooleanExpression(String bExprIn) throws IOException
      Set Access Control Expression.
      Throws:
      IOException - if boolean expression is invalid
    • IsBooleanExpressionValid

      public static boolean IsBooleanExpressionValid(String bExprIn)
      Checks whether boolean expression is valid.
    • getAccessType

      public MapRFileAce.AccessType getAccessType()
      Returns access type.
    • getBooleanExpression

      public String getBooleanExpression()
      Returns boolean expression.