class ExternalSiteService extends java.lang.Object
Get information from external sites
| Type | Name and description |
|---|---|
java.lang.String |
allowedAttributesAllowed attributes for HTML |
java.lang.String |
allowedElementsAllowed elements for HTML |
java.lang.String |
bhlApiAPI Key to use when accessing BHL |
java.lang.String |
bhlApiKeyBase URL of BHL web services |
boolean |
bhlExtendExtend BHL information with DOIs and citations |
int |
bhlPageSizeThe fixed BHL search page size |
Blacklist |
blacklistBlacklist for external sites |
java.lang.String |
eolLanguageAccept these languages for the EoL pages |
java.lang.String |
eolPageServiceThe EoL page service pattern |
boolean |
eolSanitiseSanitize the EoL pages |
java.lang.String |
eolSearchServiceThe EoL search service patterm |
java.lang.String |
updateFileThe file containing elements to update |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
sanitiseBodyText(org.owasp.html.PolicyFactory policy, java.lang.String input)Utility to sanitise HTML text and only allow links to be kept, removing any other HTML markup. |
|
java.lang.String |
sanitiseEolOutput(java.lang.String text)Sanitise EOL response with defined policy. |
|
java.lang.Object |
searchBhl(java.util.List<java.lang.String> search, int start = 0, int rows = 10, boolean fulltext = false)Search the BHL for terms (PublicationSearch) |
|
java.lang.Object |
searchEol(java.lang.String name, java.lang.String filter) |
|
void |
setConfiguration(grails.config.Config config) |
|
java.lang.String |
updateEolOutput(java.lang.String text)Update EOL content before rendering, rules specified in an external file. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Allowed attributes for HTML
Allowed elements for HTML
API Key to use when accessing BHL
Base URL of BHL web services
Extend BHL information with DOIs and citations
The fixed BHL search page size
Blacklist for external sites
Accept these languages for the EoL pages
The EoL page service pattern
Sanitize the EoL pages
The EoL search service patterm
The file containing elements to update
Utility to sanitise HTML text and only allow links to be kept, removing any other HTML markup.
policy - PolicyFactoryinput - HTML StringSanitise EOL response with defined policy.
text - EOL responseSearch the BHL for terms (PublicationSearch)
search - The terms to search forstart - The start positionrows - The number of rowsfulltext - Do a full text search if true (very slow)Update EOL content before rendering, rules specified in an external file.