com.raritantechnologies.searchApp.userInfoComparators
Class CanAccessURIComparator

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

public class CanAccessURIComparator
extends java.lang.Object
implements ILoginInfoComparator

LoginInfo Comparator that checks if the LoginInfo can access one or more resources.

XML Configuration Template:
  <UserInfoComparator class="com.raritantechnologies.searchApp.userInfoComparators.CanAccessURIComparator" 
                         isAnd="[ true|false( default ) - if isAnd all must match ]" >

    <!-- One or more Resource values -->
    <Resource>[ the string resource (URI) that will be checked for access ]</Resource>

    <!-- etc... -->

  </UserInfoComparator>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
CanAccessURIComparator()
           
 
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

CanAccessURIComparator

public CanAccessURIComparator()
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