public class NullDataProvider extends Object implements IDataProvider
IDataProvider which populates IUserPresentation with empty strings and a user ID of 0 for every input
and always validates input URLs.| Constructor and Description |
|---|
NullDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
IUserPresentation |
getUserPresentation(Long uid)
Retrieve user information object based on UID
|
IUserPresentation |
getUserPresentation(String emailAddress)
Retrieve user information object based on user email
|
void |
validateURI(URI uri)
Check an URI against a whitelist of supported protocols.
|
public IUserPresentation getUserPresentation(String emailAddress) throws InvalidInputException
IDataProvidergetUserPresentation in interface IDataProvideremailAddress - Email of the user whose information to retrieveInvalidInputExceptionpublic IUserPresentation getUserPresentation(Long uid) throws InvalidInputException
IDataProvidergetUserPresentation in interface IDataProvideruid - UID of the user whose information to retrieveInvalidInputExceptionpublic void validateURI(URI uri) throws InvalidInputException, ProcessingException
IDataProvidervalidateURI in interface IDataProvideruri - the URI to checkInvalidInputException - thrown if the URI protocol is not supportedProcessingException - thrown on a malformed URI or a backend errorCopyright © 2020 The Symphony Software Foundation. All rights reserved.