|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.user.UserFilter
public class UserFilter
A filter that operates on parameters.
Revision Info:
$Revision: 230 $ |
$Date: 2007-01-02 14:37:07 -0700 (Tue, 02 Jan 2007) $ |
$Author: dharland $ |
Constructor Summary | |
---|---|
UserFilter()
Creates a new wide-open filter that allows all parameters to pass. |
Method Summary | |
---|---|
boolean |
allows(User param)
Returns true if this filter allows the given parameter to pass through it. |
boolean |
blocks(User user)
Returns true if this filter blocks the given parameter. |
void |
clearAll()
Sets this filter to a wide-open state. |
void |
clearLastNamePattern()
Sets the band criterion to its wide-open state. |
void |
setLastNamePattern(String regex)
Sets a regular expression for matching the bandss of parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserFilter()
Method Detail |
---|
public boolean allows(User param)
The logic for allowing or blocking a parameter is somewhat complex. See
blocks(User)
for details.
allows
in interface Filter<User>
param
- the parameter to be filtered.
param
to pass through
it.public boolean blocks(User user)
blocks
in interface Filter<User>
user
- the parameter to be filtered.
user
.public void clearAll()
public void clearLastNamePattern()
setLastNamePattern(String)
public void setLastNamePattern(String regex)
regex
are allowed to pass
through this filter. If parameters should not be filtered based on their
bands, call clearLastNamePattern()
.
regex
- a regular expression for matching the bandss of parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |