Package com.mapr.fs

Class MapRFileAce


  • public class MapRFileAce
    extends java.lang.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
    • Method Detail

      • setBooleanExpression

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

        public static boolean IsBooleanExpressionValid​(java.lang.String bExprIn)
        Checks whether boolean expression is valid.
      • getBooleanExpression

        public java.lang.String getBooleanExpression()
        Returns boolean expression.