org.wamblee.security.authorization
Class GroupUserCondition

java.lang.Object
  extended by org.wamblee.persistence.AbstractPersistent
      extended by 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

Constructor Summary
protected GroupUserCondition()
          For OR mapping.
  GroupUserCondition(java.lang.String aGroup)
          Constructs the condition.
 
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 org.wamblee.persistence.AbstractPersistent
getPersistedVersion, getPrimaryKey, setPersistedVersion, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wamblee.persistence.Persistent
getPersistedVersion, getPrimaryKey, setPersistedVersion, setPrimaryKey
 

Constructor Detail

GroupUserCondition

public GroupUserCondition(java.lang.String aGroup)
Constructs the condition.

Parameters:
aGroup - Group the user must be in.

GroupUserCondition

protected GroupUserCondition()
For OR mapping.

Method Detail

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.