com.raritantechnologies.searchApp.userInfoComparators
Class UserHasAttributeComparator

java.lang.Object
  extended bycom.raritantechnologies.searchApp.userInfoComparators.UserHasAttributeComparator
All Implemented Interfaces:
IConfigurable, ILoginInfoComparator

public class UserHasAttributeComparator
extends java.lang.Object
implements ILoginInfoComparator

LoginInfo Comparator that checks if the LoginInfo has a particular attribute and value (optional).

XML Configuration Template:
  <UserInfoComparator class="com.raritantechnologies.searchApp.userInfoComparators.UserHasAttributeComparator" 
                         attributeName="[ name of user Attribute to check ]"
                         matchValue="[ exact match value ]"
                         notNullMatches="[ true|false(default) : if true presence of a non-null value matches ]" >

    <Comparator class="[ class of com.raritantechnologies.utils.comparators.IComparator" >

    </Comparator>

  </UserInfoComparator>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
UserHasAttributeComparator()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 boolean matches(ILoginInfo userInfo, ISecurityManager securityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHasAttributeComparator

public UserHasAttributeComparator()
Method Detail

matches

public boolean matches(ILoginInfo userInfo,
                       ISecurityManager securityManager)
Specified by:
matches in interface ILoginInfoComparator

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable