org.jasig.cas.services.web.support
Class RegisteredServiceValidator

java.lang.Object
  extended by org.jasig.cas.services.web.support.RegisteredServiceValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public final class RegisteredServiceValidator
extends Object
implements org.springframework.validation.Validator

RegisteredServiceValidator ensures that a new RegisteredService does not have a conflicting Service Id with another service already in the registry.

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Constructor Summary
RegisteredServiceValidator()
           
 
Method Summary
 void setMaxDescriptionLength(int maxLength)
           
 void setPersonAttributeDao(org.jasig.services.persondir.IPersonAttributeDao personAttributeDao)
           
 void setServicesManager(ServicesManager serviceRegistry)
           
 boolean supports(Class<?> clazz)
          Supports RegisteredService objects.
 void validate(Object o, org.springframework.validation.Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisteredServiceValidator

public RegisteredServiceValidator()
Method Detail

supports

public boolean supports(Class<?> clazz)
Supports RegisteredService objects.

Specified by:
supports in interface org.springframework.validation.Validator
See Also:
Validator.supports(java.lang.Class)

validate

public void validate(Object o,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator

setServicesManager

public void setServicesManager(ServicesManager serviceRegistry)

setMaxDescriptionLength

public void setMaxDescriptionLength(int maxLength)

setPersonAttributeDao

public void setPersonAttributeDao(org.jasig.services.persondir.IPersonAttributeDao personAttributeDao)


Copyright © 2004-2013 Jasig. All Rights Reserved.