Methods
Static attemptResourceWithToken
-
Parameters
-
-
openTokenService: function
-
-
Parameters
Returns Promise<any>
-
Static authorize
- authorize(resource: IExternalResource, tokenStorageStrategy: string, clickThrough: function, restricted: function, login: function, getAccessToken: function, storeAccessToken: function, getStoredAccessToken: function): Promise<IExternalResource>
-
Parameters
-
-
tokenStorageStrategy: string
-
clickThrough: function
-
-
Parameters
Returns Promise<any>
-
restricted: function
-
-
Parameters
Returns Promise<any>
-
login: function
-
-
Parameters
Returns Promise<any>
-
getAccessToken: function
-
storeAccessToken: function
-
-
Parameters
-
-
-
tokenStorageStrategy: string
Returns Promise<any>
-
getStoredAccessToken: function
-
-
Parameters
-
-
tokenStorageStrategy: string
Static createAuthorizationFailedError
- createAuthorizationFailedError(): Error
Static createError
- createError(name: StatusCode, message: string): Error
Static createInternalServerError
- createInternalServerError(message: string): Error
Static createRestrictedError
- createRestrictedError(): Error
Static doAuthChain
- doAuthChain(resource: IExternalResource, openContentProviderInteraction: function, openTokenService: function, userInteractedWithContentProvider: function, getContentProviderInteraction: function, handleMovedTemporarily: function, showOutOfOptionsMessages: function): Promise<IExternalResource | void>
-
Parameters
-
-
openContentProviderInteraction: function
-
openTokenService: function
-
-
Parameters
Returns Promise<any>
-
userInteractedWithContentProvider: function
-
- (contentProviderInteraction: any): Promise<any>
-
Parameters
-
contentProviderInteraction: any
Returns Promise<any>
-
getContentProviderInteraction: function
-
-
Parameters
Returns Promise<any>
-
handleMovedTemporarily: function
-
-
Parameters
Returns Promise<any>
-
showOutOfOptionsMessages: function
Static generateTreeNodeIds
- generateTreeNodeIds(treeNode: TreeNode, index?: number): void
-
Parameters
-
-
Default value index: number = 0
Returns void
Static getImageQuality
- getImageQuality(profile: ServiceProfile): string
-
Parameters
Returns string
Static getInexactLocale
- getInexactLocale(locale: string): string
-
Parameters
Returns string
Static getLocalisedValue
- getLocalisedValue(resource: any, locale: string): string | null
-
Parameters
-
resource: any
-
locale: string
Returns string
|
null
Static getMediaType
- getMediaType(type: string): MediaType
-
Parameters
Returns MediaType
Static getService
- getService(resource: any, profile: ServiceProfile): Service | null
-
Parameters
-
resource: any
-
profile: ServiceProfile
Returns Service
|
null
Static getServices
- getServices(resource: any): Service[]
Static getTemporalComponent
- getTemporalComponent(target: string): number[] | null
-
Parameters
Returns number[]
|
null
Static isImageProfile
- isImageProfile(profile: ServiceProfile): boolean
-
Parameters
Returns boolean
Static isLevel0ImageProfile
- isLevel0ImageProfile(profile: ServiceProfile): boolean
-
Parameters
Returns boolean
Static isLevel1ImageProfile
- isLevel1ImageProfile(profile: ServiceProfile): boolean
-
Parameters
Returns boolean
Static isLevel2ImageProfile
- isLevel2ImageProfile(profile: ServiceProfile): boolean
-
Parameters
Returns boolean
Static loadExternalResourceAuth09
- loadExternalResourceAuth09(resource: IExternalResource, tokenStorageStrategy: string, clickThrough: function, restricted: function, login: function, getAccessToken: function, storeAccessToken: function, getStoredAccessToken: function, handleResourceResponse: function, options?: IManifestoOptions): Promise<IExternalResource>
-
Parameters
-
-
tokenStorageStrategy: string
-
clickThrough: function
-
-
Parameters
Returns Promise<any>
-
restricted: function
-
-
Parameters
Returns Promise<any>
-
login: function
-
-
Parameters
Returns Promise<any>
-
getAccessToken: function
-
storeAccessToken: function
-
-
Parameters
-
-
-
tokenStorageStrategy: string
Returns Promise<any>
-
getStoredAccessToken: function
-
-
Parameters
-
-
tokenStorageStrategy: string
-
handleResourceResponse: function
-
-
Parameters
Returns Promise<any>
-
Static loadExternalResourceAuth1
- loadExternalResourceAuth1(resource: IExternalResource, openContentProviderInteraction: function, openTokenService: function, getStoredAccessToken: function, userInteractedWithContentProvider: function, getContentProviderInteraction: function, handleMovedTemporarily: function, showOutOfOptionsMessages: function): Promise<IExternalResource>
-
Parameters
-
-
openContentProviderInteraction: function
-
openTokenService: function
-
-
Parameters
Returns Promise<void>
-
getStoredAccessToken: function
-
userInteractedWithContentProvider: function
-
- (contentProviderInteraction: any): Promise<any>
-
Parameters
-
contentProviderInteraction: any
Returns Promise<any>
-
getContentProviderInteraction: function
-
-
Parameters
Returns Promise<any>
-
handleMovedTemporarily: function
-
-
Parameters
Returns Promise<any>
-
showOutOfOptionsMessages: function
Static loadExternalResourcesAuth09
- loadExternalResourcesAuth09(resources: IExternalResource[], tokenStorageStrategy: string, clickThrough: function, restricted: function, login: function, getAccessToken: function, storeAccessToken: function, getStoredAccessToken: function, handleResourceResponse: function, options?: IManifestoOptions): Promise<IExternalResource[]>
-
Parameters
-
-
tokenStorageStrategy: string
-
clickThrough: function
-
-
Parameters
Returns Promise<any>
-
restricted: function
-
-
Parameters
Returns Promise<any>
-
login: function
-
-
Parameters
Returns Promise<any>
-
getAccessToken: function
-
storeAccessToken: function
-
-
Parameters
-
-
-
tokenStorageStrategy: string
Returns Promise<any>
-
getStoredAccessToken: function
-
-
Parameters
-
-
tokenStorageStrategy: string
-
handleResourceResponse: function
-
-
Parameters
Returns Promise<any>
-
Static loadExternalResourcesAuth1
- loadExternalResourcesAuth1(resources: IExternalResource[], openContentProviderInteraction: function, openTokenService: function, getStoredAccessToken: function, userInteractedWithContentProvider: function, getContentProviderInteraction: function, handleMovedTemporarily: function, showOutOfOptionsMessages: function): Promise<IExternalResource[]>
-
Parameters
-
-
openContentProviderInteraction: function
-
openTokenService: function
-
-
Parameters
Returns Promise<any>
-
getStoredAccessToken: function
-
userInteractedWithContentProvider: function
-
- (contentProviderInteraction: any): Promise<any>
-
Parameters
-
contentProviderInteraction: any
Returns Promise<any>
-
getContentProviderInteraction: function
-
-
Parameters
Returns Promise<any>
-
handleMovedTemporarily: function
-
-
Parameters
Returns Promise<any>
-
showOutOfOptionsMessages: function
Static loadManifest
- loadManifest(uri: string): Promise<string>
-
Parameters
Returns Promise<string>
Static normaliseType
- normaliseType(type: string): string
-
Parameters
Returns string
Static normaliseUrl
- normaliseUrl(url: string): string
-
Parameters
Returns string
Static normalisedUrlsMatch
- normalisedUrlsMatch(url1: string, url2: string): boolean
-
Parameters
-
url1: string
-
url2: string
Returns boolean
Static Private showAuthInteraction
- showAuthInteraction(resource: IExternalResource, tokenStorageStrategy: any, clickThrough: any, restricted: any, login: any, getAccessToken: any, storeAccessToken: any, resolve: any, reject: any): void
-
Parameters
-
-
tokenStorageStrategy: any
-
clickThrough: any
-
restricted: any
-
login: any
-
getAccessToken: any
-
storeAccessToken: any
-
resolve: any
-
reject: any
Returns void
Static traverseAndFind
- traverseAndFind(object: any, k: string, v: string): object & void
-
Parameters
-
object: any
-
k: string
-
v: string
Returns object
&
void
Does a depth first traversal of an Object, returning an Object that matches provided k and v arguments
Utils.traverseAndFind({foo: 'bar'}, 'foo', 'bar')