org.gcube.portlets.user.workspace.shared
Class FieldVerifier

java.lang.Object
  extended by org.gcube.portlets.user.workspace.shared.FieldVerifier

public class FieldVerifier
extends Object

This class is not used

Author:
Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it

Constructor Summary
FieldVerifier()
           
 
Method Summary
static boolean isValidName(String name)
          Verifies that the specified name is valid for our service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldVerifier

public FieldVerifier()
Method Detail

isValidName

public static boolean isValidName(String name)
Verifies that the specified name is valid for our service. In this example, we only require that the name is at least four characters. In your application, you can use more complex checks to ensure that usernames, passwords, email addresses, URLs, and other fields have the proper syntax.

Parameters:
name - the name to validate
Returns:
true if valid, false if invalid


Copyright © 2013. All Rights Reserved.