GigaSpaces XAP 7.0 API

com.gigaspaces.security.authorities
Class SpaceAuthority.ClassFilter

java.lang.Object
  extended by com.gigaspaces.security.authorities.SpaceAuthority.ClassFilter
All Implemented Interfaces:
SpaceAuthority.Filter, Serializable
Direct Known Subclasses:
SpaceAuthority.NegateClassFilter
Enclosing class:
SpaceAuthority

public static class SpaceAuthority.ClassFilter
extends Object
implements SpaceAuthority.Filter

Class filter accepting only the defined class-name.

See Also:
Serialized Form

Constructor Summary
SpaceAuthority.ClassFilter(String className)
           
 
Method Summary
 boolean accept(Object other)
          Tests whether or not the object is acceptable.
 boolean accept(String otherClassName)
          Tests whether or not the string is acceptable.
 String getClassName()
           
 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.ClassFilter

public SpaceAuthority.ClassFilter(String className)
Method Detail

getClassName

public String getClassName()

toString

public String toString()
Overrides:
toString in class Object

accept

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

Specified by:
accept in interface SpaceAuthority.Filter
Parameters:
otherClassName - a string as used to construct the filter.
Returns:
true if and only if the filter accepts the the given string; false otherwise.

accept

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

Specified by:
accept in interface SpaceAuthority.Filter
Parameters:
other - an object to accept, possibly holding extra acceptance info.
Returns:
true if and only if the filter accepts the the given input; 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
Returns:
wildcard expression.

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.