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 java.lang.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: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia

Constructor Summary
RegisteredServiceValidator()
           
 
Method Summary
 void setMaxDescriptionLength(int maxLength)
           
 void setServicesManager(ServicesManager serviceRegistry)
           
 boolean supports(java.lang.Class clazz)
          Supports the RegisteredServiceImpl.
 void validate(java.lang.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(java.lang.Class clazz)
Supports the RegisteredServiceImpl.

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

validate

public void validate(java.lang.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)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.