Class NullDataProvider
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.util.NullDataProvider
-
- All Implemented Interfaces:
IDataProvider
public class NullDataProvider extends Object implements IDataProvider
A utilityIDataProviderwhich populatesIUserPresentationwith empty strings and a user ID of 0 for every input and always validates input URLs.
-
-
Constructor Summary
Constructors Constructor Description NullDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolutionResultsgetFinTagPresentation(List<InstrumentResolution> criteria)Retrieve financial tag information based on list of instrument resolution listIUserPresentationgetUserPresentation(Long uid)Retrieve user information object based on UIDIUserPresentationgetUserPresentation(String emailAddress)Retrieve user information object based on user emailvoidvalidateURI(URI uri)Check an URI against a whitelist of supported protocols.
-
-
-
Method Detail
-
getUserPresentation
public IUserPresentation getUserPresentation(String emailAddress) throws InvalidInputException
Description copied from interface:IDataProviderRetrieve user information object based on user email- Specified by:
getUserPresentationin interfaceIDataProvider- Parameters:
emailAddress- Email of the user whose information to retrieve- Returns:
- User presentation object
- Throws:
InvalidInputException
-
getUserPresentation
public IUserPresentation getUserPresentation(Long uid) throws InvalidInputException
Description copied from interface:IDataProviderRetrieve user information object based on UID- Specified by:
getUserPresentationin interfaceIDataProvider- Parameters:
uid- UID of the user whose information to retrieve- Returns:
- User presentation object
- Throws:
InvalidInputException
-
validateURI
public void validateURI(URI uri) throws InvalidInputException, ProcessingException
Description copied from interface:IDataProviderCheck an URI against a whitelist of supported protocols.- Specified by:
validateURIin interfaceIDataProvider- Parameters:
uri- the URI to check- Throws:
InvalidInputException- thrown if the URI protocol is not supportedProcessingException- thrown on a malformed URI or a backend error
-
getFinTagPresentation
public ResolutionResults getFinTagPresentation(List<InstrumentResolution> criteria) throws InvalidInputException
Description copied from interface:IDataProviderRetrieve financial tag information based on list of instrument resolution list- Specified by:
getFinTagPresentationin interfaceIDataProvider- Parameters:
criteria- List of instrument resolution criteria- Returns:
- Resolution results
- Throws:
InvalidInputException
-
-