Search
Preparing search index...
The search index is not available
Community Solid Server
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Community Solid Server
index
ReadOnlyStore
Class ReadOnlyStore<T>
Store that only allow read operations on the underlying source.
Type parameters
T
:
ResourceStore
=
ResourceStore
Hierarchy
PassthroughStore
<
T
>
ReadOnlyStore
Index
Constructors
constructor
Properties
source
Methods
add
Resource
delete
Resource
get
Representation
modify
Resource
set
Representation
Constructors
constructor
new
Read
Only
Store<T>
(
source
:
T
)
:
ReadOnlyStore
<
T
>
Type parameters
T
:
ResourceStore
=
ResourceStore
Parameters
source:
T
Returns
ReadOnlyStore
<
T
>
Properties
Protected
Readonly
source
source
:
T
Methods
add
Resource
add
Resource
(
container
:
ResourceIdentifier
, representation
:
Representation
, conditions
?:
Conditions
)
:
Promise
<
ResourceIdentifier
>
Parameters
container:
ResourceIdentifier
representation:
Representation
Optional
conditions:
Conditions
Returns
Promise
<
ResourceIdentifier
>
delete
Resource
delete
Resource
(
identifier
:
ResourceIdentifier
, conditions
?:
Conditions
)
:
Promise
<
void
>
Parameters
identifier:
ResourceIdentifier
Optional
conditions:
Conditions
Returns
Promise
<
void
>
get
Representation
get
Representation
(
identifier
:
ResourceIdentifier
, preferences
:
RepresentationPreferences
, conditions
?:
Conditions
)
:
Promise
<
Representation
>
Parameters
identifier:
ResourceIdentifier
preferences:
RepresentationPreferences
Optional
conditions:
Conditions
Returns
Promise
<
Representation
>
modify
Resource
modify
Resource
(
identifier
:
ResourceIdentifier
, patch
:
Patch
, conditions
?:
Conditions
)
:
Promise
<
void
>
Parameters
identifier:
ResourceIdentifier
patch:
Patch
Optional
conditions:
Conditions
Returns
Promise
<
void
>
set
Representation
set
Representation
(
identifier
:
ResourceIdentifier
, representation
:
Representation
, conditions
?:
Conditions
)
:
Promise
<
void
>
Parameters
identifier:
ResourceIdentifier
representation:
Representation
Optional
conditions:
Conditions
Returns
Promise
<
void
>
Exports
index
Read
Only
Store
constructor
source
add
Resource
delete
Resource
get
Representation
modify
Resource
set
Representation
Store that only allow read operations on the underlying source.