GigaSpaces XAP 9.5 API

com.gigaspaces.security.authorities
Class SpaceAuthority.PackageFilter

java.lang.Object
  extended by com.gigaspaces.security.authorities.SpaceAuthority.PackageFilter
All Implemented Interfaces:
SpaceAuthority.Filter<String>, Serializable
Direct Known Subclasses:
SpaceAuthority.NegatePackageFilter
Enclosing class:
SpaceAuthority

public static class SpaceAuthority.PackageFilter
extends Object
implements SpaceAuthority.Filter<String>

Package filter accepting only the defined package

See Also:
Serialized Form

Constructor Summary
SpaceAuthority.PackageFilter(String packagename)
           
 
Method Summary
 boolean accept(String other)
          Tests whether or not the object is acceptable.
 String getExpression()
          The wildcard expression representing this filter.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpaceAuthority.PackageFilter

public SpaceAuthority.PackageFilter(String packagename)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

accept

public boolean accept(String other)
Description copied from interface: SpaceAuthority.Filter
Tests whether or not the object is acceptable.

Specified by:
accept in interface SpaceAuthority.Filter<String>
Parameters:
other - an object to accept.
Returns:
true if and only if the filter accepts the the given string; false otherwise.

getExpression

public String getExpression()
Description copied from interface: SpaceAuthority.Filter
The wildcard expression representing this filter.

Specified by:
getExpression in interface SpaceAuthority.Filter<String>
Returns:
wildcard expression.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.