org.wamblee.security.authorization
Class AnyUserCondition

java.lang.Object
  extended by org.wamblee.security.authorization.AbstractUserCondition
      extended by org.wamblee.security.authorization.AnyUserCondition
All Implemented Interfaces:
UserCondition

@Entity
public class AnyUserCondition
extends AbstractUserCondition

Matches any user.

Author:
Erik Brakkee

Constructor Summary
AnyUserCondition()
          Constructs the condition.
 
Method Summary
 boolean matches(java.lang.String aUser)
          Determines if the condition matches.
 void setUserAdmin(UserAdministration aAdmin)
          Sets the user administration object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyUserCondition

public AnyUserCondition()
Constructs the condition.

Method Detail

setUserAdmin

public void setUserAdmin(UserAdministration aAdmin)
Description copied from interface: UserCondition
Sets the user administration object.

Parameters:
aAdmin - User administration.

matches

public boolean matches(java.lang.String aUser)
Description copied from interface: UserCondition
Determines if the condition matches.

Parameters:
aUser - user to check.
Returns:
True if the condition matches, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2022. All Rights Reserved.