org.jasig.portal.portlets.swapper
Class AttributeSwapRequestValidator

java.lang.Object
  extended by org.jasig.portal.portlets.swapper.AttributeSwapRequestValidator

public class AttributeSwapRequestValidator
extends Object

Validator for PersonQuery

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
AttributeSwapRequestValidator()
           
 
Method Summary
protected  void checkAttributesMap(org.springframework.binding.message.MessageContext context, String basePath, Set<String> swappableAttributes, Map<String,Attribute> attributesToCopy)
          Checks the keys in the Map on the model against a Set to ensure there are no values in the Map that aren't also in the Set
 IAttributeSwapperHelper getAttributeSwapperHelper()
           
 void setAttributeSwapperHelper(IAttributeSwapperHelper attributeSwapperHelper)
          IAttributeSwapperHelper to use for getting configuration and query information from for validation.
 void validateAttributesForm(AttributeSwapRequest attributeSwapRequest, org.springframework.binding.message.MessageContext context)
          Ensures all passed attributes are part of the valid query attribute set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSwapRequestValidator

public AttributeSwapRequestValidator()
Method Detail

getAttributeSwapperHelper

public IAttributeSwapperHelper getAttributeSwapperHelper()

setAttributeSwapperHelper

public void setAttributeSwapperHelper(IAttributeSwapperHelper attributeSwapperHelper)
IAttributeSwapperHelper to use for getting configuration and query information from for validation.


validateAttributesForm

public void validateAttributesForm(AttributeSwapRequest attributeSwapRequest,
                                   org.springframework.binding.message.MessageContext context)
Ensures all passed attributes are part of the valid query attribute set.


checkAttributesMap

protected void checkAttributesMap(org.springframework.binding.message.MessageContext context,
                                  String basePath,
                                  Set<String> swappableAttributes,
                                  Map<String,Attribute> attributesToCopy)
Checks the keys in the Map on the model against a Set to ensure there are no values in the Map that aren't also in the Set



Copyright © 2010 Jasig. All Rights Reserved.