arlas-wui-toolkit / Exports / PersistenceService
Class: PersistenceService
Table of contents
Constructors
Properties
Methods
- create
- createPersistenceApiInstance
- dashboardToResourcesGroups
- delete
- deleteResource
- duplicate
- exists
- get
- getGroupsByZone
- getOptionsSetOrg
- list
- rename
- renameResource
- setOptions
- update
- updateResource
Constructors
constructor
• new PersistenceService(getOptions
, settingsService
)
Parameters
Name | Type |
---|---|
getOptions |
any |
settingsService |
ArlasSettingsService |
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:36
Properties
isAvailable
• isAvailable: boolean
= false
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:34
options
• options: any
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:33
Methods
create
▸ create(zone
, name
, body
, readers?
, writers?
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
zone |
string |
name |
string |
body |
string |
readers? |
string [] |
writers? |
string [] |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:57
createPersistenceApiInstance
▸ createPersistenceApiInstance(): void
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:44
dashboardToResourcesGroups
▸ dashboardToResourcesGroups(dashboardReaders
, dashboardWiters
): Object
Parameters
Name | Type |
---|---|
dashboardReaders |
string [] |
dashboardWiters |
string [] |
Returns
Object
Name | Type |
---|---|
readers |
string [] |
writers |
string [] |
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:131
delete
▸ delete(id
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
id |
string |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:53
deleteResource
▸ deleteResource(previewId
, options?
): void
deletes the resource by its id
Parameters
Name | Type |
---|---|
previewId |
string |
options |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:164
duplicate
▸ duplicate(zone
, id
, newName?
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
zone |
string |
id |
string |
newName? |
string |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:79
exists
▸ exists(id
, options?
): Observable
<Exists
>
Parameters
Name | Type |
---|---|
id |
string |
options |
any |
Returns
Observable
<Exists
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:66
get
▸ get(id
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
id |
string |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:62
getGroupsByZone
▸ getGroupsByZone(zone
, options?
): Observable
<string
>
Parameters
Name | Type |
---|---|
zone |
string |
options |
any |
Returns
Observable
<string
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:95
getOptionsSetOrg
▸ getOptionsSetOrg(org
): any
Parameters
Name | Type |
---|---|
org |
string |
Returns
any
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:151
list
▸ list(zone
, size
, page
, order
, key?
, options?
): Observable
<DataResource
>
Parameters
Name | Type | Default value |
---|---|---|
zone |
string |
undefined |
size |
number |
undefined |
page |
number |
undefined |
order |
string |
undefined |
key |
any |
undefined |
options |
any |
undefined |
Returns
Observable
<DataResource
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:70
rename
▸ rename(id
, newName
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
id |
string |
newName |
string |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:87
renameResource
▸ renameResource(id
, newName
, options?
): void
Parameters
Name | Type |
---|---|
id |
string |
newName |
string |
options |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:118
setOptions
▸ setOptions(options
): void
Parameters
Name | Type |
---|---|
options |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:99
update
▸ update(id
, body
, lastUpdate
, name?
, readers?
, writers?
, options?
): Observable
<DataWithLinks
>
Parameters
Name | Type |
---|---|
id |
string |
body |
string |
lastUpdate |
number |
name? |
string |
readers? |
string [] |
writers? |
string [] |
options |
any |
Returns
Observable
<DataWithLinks
>
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:74
updateResource
▸ updateResource(id
, readers
, writers
, newValue?
, options?
): void
updates the resource's name, readers and writers
Parameters
Name | Type |
---|---|
id |
string |
readers |
string [] |
writers |
string [] |
newValue? |
string |
options |
any |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/persistence/persistence.service.ts:104