org.wamblee.security.authorization
Class GroupUserCondition
java.lang.Object
org.wamblee.persistence.AbstractPersistent
org.wamblee.security.authorization.GroupUserCondition
- All Implemented Interfaces:
- Persistent, UserCondition
public class GroupUserCondition
- extends AbstractPersistent
- implements UserCondition
Checks if a user against a specific group.
- Author:
- Erik Brakkee
|
Method Summary |
protected java.lang.String |
getGroup()
|
boolean |
matches(User aUser)
Determines if the condition matches. |
protected void |
setGroup(java.lang.String aGroup)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GroupUserCondition
public GroupUserCondition(java.lang.String aGroup)
- Constructs the condition.
- Parameters:
aGroup - Group the user must be in.
GroupUserCondition
protected GroupUserCondition()
- For OR mapping.
matches
public boolean matches(User aUser)
- Description copied from interface:
UserCondition
- Determines if the condition matches.
- Specified by:
matches in interface UserCondition
- Parameters:
aUser - user to check.
- Returns:
- True if the condition matches, false otherwise.
getGroup
protected java.lang.String getGroup()
- Returns:
- Returns the _group.
setGroup
protected void setGroup(java.lang.String aGroup)
- Parameters:
_group - The _group to set.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.