GigaSpaces XAP 9.7.2 API

com.gigaspaces.security.authorities
Class SpaceAuthority.WildcardExpressionToFilterConverter

java.lang.Object
  extended by com.gigaspaces.security.authorities.SpaceAuthority.WildcardExpressionToFilterConverter
Enclosing class:
SpaceAuthority

public static class SpaceAuthority.WildcardExpressionToFilterConverter
extends Object

Convert a wildcard expression to a filter instance.


Constructor Summary
SpaceAuthority.WildcardExpressionToFilterConverter()
           
 
Method Summary
static SpaceAuthority.Filter<?> convert(String expression, boolean allow)
          Convert the wildcard expression into a filter.
static SpaceAuthority.Filter<?> convertToRegex(String expression, boolean allow)
          Convert the wildcard expression into a regex expression, since we found that this is a faster implementation even for fully matched strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceAuthority.WildcardExpressionToFilterConverter

public SpaceAuthority.WildcardExpressionToFilterConverter()
Method Detail

convert

public static SpaceAuthority.Filter<?> convert(String expression,
                                               boolean allow)
Convert the wildcard expression into a filter.

Parameters:
expression - expression to convert.
allow - true to allow matches of the expression; false to deny.
Returns:
a filter instance representing this expression.

convertToRegex

public static SpaceAuthority.Filter<?> convertToRegex(String expression,
                                                      boolean allow)
Convert the wildcard expression into a regex expression, since we found that this is a faster implementation even for fully matched strings.

Parameters:
expression - expression to convert.
allow - true to allow matches of the expression; false to deny.
Returns:
a filter instance representing this expression.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.