C# Class Spark.Engine.Core.KeyExtensions

Datei anzeigen Open project: raysearchlabs/spark

Public Methods

Method Description
ApplyTo ( this key, Hl7.Fhir.Model.Resource resource ) : void
Clone ( this self ) : Spark.Engine.Core.Key
CreateFromLocalReference ( string reference ) : Spark.Engine.Core.Key
EqualTo ( this key, IKey other ) : bool

Value equality for two IKey's

ExtractKey ( Uri uri ) : Spark.Engine.Core.Key
ExtractKey ( this resource ) : Spark.Engine.Core.Key
ExtractKey ( this localhost, Hl7.Fhir.Model.Bundle entry ) : Spark.Engine.Core.Key
GetSegments ( this key ) : IEnumerable
HasBase ( this key ) : bool
HasResourceId ( this self ) : bool
HasVersionId ( this self ) : bool
IsTemporary ( this key ) : bool

Determines if the Key was constructed from a temporary id.

ToOperationPath ( this self ) : string
ToRelativeUri ( this key ) : Uri
ToStorageKey ( this key ) : string

A storage key is a resource reference string that is ensured to be server wide unique. This way resource can refer to eachother at a database level. These references are also used in SearchResult lists. The format is "resource/id/_history/vid"

ToUri ( this self ) : Uri
ToUri ( this key, Uri endpoint ) : Uri
ToUriString ( this key ) : string
WithBase ( this self, string _base ) : Spark.Engine.Core.Key
WithoutBase ( this self ) : Spark.Engine.Core.Key
WithoutVersion ( this self ) : Spark.Engine.Core.Key

Method Details

ApplyTo() public static method

public static ApplyTo ( this key, Hl7.Fhir.Model.Resource resource ) : void
key this
resource Hl7.Fhir.Model.Resource
return void

Clone() public static method

public static Clone ( this self ) : Spark.Engine.Core.Key
self this
return Spark.Engine.Core.Key

CreateFromLocalReference() public static method

public static CreateFromLocalReference ( string reference ) : Spark.Engine.Core.Key
reference string
return Spark.Engine.Core.Key

EqualTo() public static method

Value equality for two IKey's
public static EqualTo ( this key, IKey other ) : bool
key this
other IKey
return bool

ExtractKey() public static method

public static ExtractKey ( Uri uri ) : Spark.Engine.Core.Key
uri System.Uri
return Spark.Engine.Core.Key

ExtractKey() public static method

public static ExtractKey ( this resource ) : Spark.Engine.Core.Key
resource this
return Spark.Engine.Core.Key

ExtractKey() public static method

public static ExtractKey ( this localhost, Hl7.Fhir.Model.Bundle entry ) : Spark.Engine.Core.Key
localhost this
entry Hl7.Fhir.Model.Bundle
return Spark.Engine.Core.Key

GetSegments() public static method

public static GetSegments ( this key ) : IEnumerable
key this
return IEnumerable

HasBase() public static method

public static HasBase ( this key ) : bool
key this
return bool

HasResourceId() public static method

public static HasResourceId ( this self ) : bool
self this
return bool

HasVersionId() public static method

public static HasVersionId ( this self ) : bool
self this
return bool

IsTemporary() public static method

Determines if the Key was constructed from a temporary id.
public static IsTemporary ( this key ) : bool
key this
return bool

ToOperationPath() public static method

public static ToOperationPath ( this self ) : string
self this
return string

ToRelativeUri() public static method

public static ToRelativeUri ( this key ) : Uri
key this
return System.Uri

ToStorageKey() public static method

A storage key is a resource reference string that is ensured to be server wide unique. This way resource can refer to eachother at a database level. These references are also used in SearchResult lists. The format is "resource/id/_history/vid"
public static ToStorageKey ( this key ) : string
key this
return string

ToUri() public static method

public static ToUri ( this self ) : Uri
self this
return System.Uri

ToUri() public static method

public static ToUri ( this key, Uri endpoint ) : Uri
key this
endpoint System.Uri
return System.Uri

ToUriString() public static method

public static ToUriString ( this key ) : string
key this
return string

WithBase() public static method

public static WithBase ( this self, string _base ) : Spark.Engine.Core.Key
self this
_base string
return Spark.Engine.Core.Key

WithoutBase() public static method

public static WithoutBase ( this self ) : Spark.Engine.Core.Key
self this
return Spark.Engine.Core.Key

WithoutVersion() public static method

public static WithoutVersion ( this self ) : Spark.Engine.Core.Key
self this
return Spark.Engine.Core.Key