org.gcube.portlets.user.workspace.shared
Class FieldVerifier
java.lang.Object
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
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 |
FieldVerifier
public FieldVerifier()
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 © 2014. All Rights Reserved.