-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Sulfrian
committed
Jun 17, 2019
1 parent
e179596
commit 81ca90d
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
|
||
import { Store } from '@ngrx/store'; | ||
import { Observable } from 'rxjs'; | ||
|
||
import { DataService } from '../data/data.service'; | ||
import { RequestService } from '../data/request.service'; | ||
import { FindAllOptions } from '../data/request.models'; | ||
import { HALEndpointService } from '../shared/hal-endpoint.service'; | ||
import { ResourcePolicy } from '../shared/resource-policy.model'; | ||
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service'; | ||
import { CoreState } from '../core.reducers'; | ||
import { ObjectCacheService } from '../cache/object-cache.service'; | ||
import { NotificationsService } from '../../shared/notifications/notifications.service'; | ||
import { NormalizedObjectBuildService } from '../cache/builders/normalized-object-build.service'; | ||
import { DefaultChangeAnalyzer } from '../data/default-change-analyzer.service'; | ||
|
||
/** | ||
* A service responsible for fetching/sending data from/to the REST API on the resourcepolicies endpoint | ||
*/ | ||
@Injectable() | ||
export class ResourcePolicyService extends DataService<ResourcePolicy> { | ||
protected linkPath = 'resourcepolicies'; | ||
protected forceBypassCache = false; | ||
|
||
constructor( | ||
protected requestService: RequestService, | ||
protected rdbService: RemoteDataBuildService, | ||
protected store: Store<CoreState>, | ||
protected halService: HALEndpointService, | ||
protected objectCache: ObjectCacheService, | ||
protected comparator: DefaultChangeAnalyzer<ResourcePolicy>, | ||
protected dataBuildService: NormalizedObjectBuildService, | ||
protected http: HttpClient, | ||
protected notificationsService: NotificationsService) { | ||
super(); | ||
} | ||
|
||
/** | ||
* Get the endpoint for browsing resource policies | ||
* @param {FindAllOptions} options | ||
* @returns {Observable<string>} | ||
*/ | ||
public getBrowseEndpoint(options: FindAllOptions = {}, linkPath: string = this.linkPath): Observable<string> { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters