com.raritantechnologies.security
Class SecureAccessResultMatcher

java.lang.Object
  extended bycom.raritantechnologies.security.SecureAccessResultMatcher
All Implemented Interfaces:
IConfigurable, IResultMatcher

public class SecureAccessResultMatcher
extends java.lang.Object
implements IResultMatcher

Implements result matching by checking whether a user can access a result field (usually a URL ) using the ISecurityManager canAccess( ) method.

XML Configuration Template:
   <ResultMatcher class="com.raritantechnologies.security.SecureAccessResultMatcher"
     urlField="[field ID with value SecurityManager can check]"
     securityManager="[security manager name]" >

     <!-- SecurityManager tag IF this security manager has not been configured elsewhere -->
     <SecurityManager name="security manager name]" >
       <!-- SecurityManager configuration details here -->
     </SecurityManager>

   </ResultMatcher>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultMatcher
TEMPLATE
 
Constructor Summary
SecureAccessResultMatcher()
           
 
Method Summary
 boolean equals(ILoginInfo user, IResult result)
           
 java.lang.String getConfigurationXML()
           
 java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setSecurityManager(java.lang.String securityManagerName)
           
 void setURLField(java.lang.String urlField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureAccessResultMatcher

public SecureAccessResultMatcher()
Method Detail

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

equals

public boolean equals(ILoginInfo user,
                      IResult result)
Specified by:
equals in interface IResultMatcher

setSecurityManager

public void setSecurityManager(java.lang.String securityManagerName)

setURLField

public void setURLField(java.lang.String urlField)

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IResultMatcher

getConfigurationXML

public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
Specified by:
getConfigurationXML in interface IResultMatcher