Package com.mapr.fs
Class MapRFileAce
- java.lang.Object
-
- com.mapr.fs.MapRFileAce
-
public class MapRFileAce extends java.lang.ObjectAccess 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapRFileAce.AccessTypeAccess type.
-
Constructor Summary
Constructors Constructor Description MapRFileAce(MapRFileAce.AccessType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MapRFileAce.AccessTypegetAccessType()Returns access type.java.lang.StringgetBooleanExpression()Returns boolean expression.static booleanIsBooleanExpressionValid(java.lang.String bExprIn)Checks whether boolean expression is valid.voidsetBooleanExpression(java.lang.String bExprIn)Set Access Control Expression.
-
-
-
Constructor Detail
-
MapRFileAce
public MapRFileAce(MapRFileAce.AccessType type)
-
-
Method Detail
-
setBooleanExpression
public void setBooleanExpression(java.lang.String bExprIn) throws java.io.IOExceptionSet 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.
-
getAccessType
public MapRFileAce.AccessType getAccessType()
Returns access type.
-
getBooleanExpression
public java.lang.String getBooleanExpression()
Returns boolean expression.
-
-