ImplementYourScreenNameValidator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Users | |
## | |
# | |
# Input a class name that implements | |
# com.liferay.portal.security.auth.ScreenNameValidator. This class will be | |
# called to validate user screen names. | |
# | |
users.screen.name.validator=it.dontesta.portal.security.auth.PortaleDontestaScreenNameValidator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package it.dontesta.portal.security.auth; | |
import com.ext.portal.util.PortalExtPropsValues; | |
import com.liferay.portal.kernel.util.CharPool; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.security.auth.ScreenNameValidator; | |
/** | |
* @author musarra | |
*/ | |
public class PortaleDontestaScreenNameValidator implements ScreenNameValidator { | |
/* | |
* (non-Javadoc) | |
* @see com.liferay.portal.security.auth.ScreenNameValidator#validate(long, | |
* java.lang.String) | |
*/ | |
@Override | |
public boolean validate(long companyId, String screenName) { | |
//TODO Implement validation logic for screeName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment