@@ -13,7 +13,6 @@ import { RemoteData } from '../data/remote-data';
1313import { NoContent } from '../shared/NoContent.model' ;
1414import { getFirstCompletedRemoteData } from '../shared/operators' ;
1515import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model' ;
16- import { WorkspaceItem } from './models/workspaceitem.model' ;
1716import { RequestParam } from '../cache/models/request-param.model' ;
1817import { FindListOptions } from '../data/find-list-options.model' ;
1918import { IdentifiableDataService } from '../data/base/identifiable-data.service' ;
@@ -28,7 +27,6 @@ import { dataService } from '../data/base/data-service.decorator';
2827@Injectable ( )
2928@dataService ( WorkflowItem . type )
3029export class WorkflowItemDataService extends IdentifiableDataService < WorkflowItem > implements SearchData < WorkflowItem > , DeleteData < WorkflowItem > {
31- protected linkPath = 'workflowitems' ;
3230 protected searchByItemLinkPath = 'item' ;
3331 protected responseMsToLive = 10 * 1000 ;
3432
@@ -42,7 +40,7 @@ export class WorkflowItemDataService extends IdentifiableDataService<WorkflowIte
4240 protected halService : HALEndpointService ,
4341 protected notificationsService : NotificationsService ,
4442 ) {
45- super ( 'workspaceitems ' , requestService , rdbService , objectCache , halService ) ;
43+ super ( 'workflowitems ' , requestService , rdbService , objectCache , halService ) ;
4644
4745 this . searchData = new SearchDataImpl ( this . linkPath , requestService , rdbService , objectCache , halService , this . responseMsToLive ) ;
4846 this . deleteData = new DeleteDataImpl ( this . linkPath , requestService , rdbService , objectCache , halService , notificationsService , this . responseMsToLive , this . constructIdEndpoint ) ;
@@ -105,7 +103,7 @@ export class WorkflowItemDataService extends IdentifiableDataService<WorkflowIte
105103 * @param options The {@link FindListOptions} object
106104 * @param linksToFollow List of {@link FollowLinkConfig} that indicate which {@link HALLink}s should be automatically resolved
107105 */
108- public findByItem ( uuid : string , useCachedVersionIfAvailable = false , reRequestOnStale = true , options : FindListOptions = { } , ...linksToFollow : FollowLinkConfig < WorkspaceItem > [ ] ) : Observable < RemoteData < WorkspaceItem > > {
106+ public findByItem ( uuid : string , useCachedVersionIfAvailable = false , reRequestOnStale = true , options : FindListOptions = { } , ...linksToFollow : FollowLinkConfig < WorkflowItem > [ ] ) : Observable < RemoteData < WorkflowItem > > {
109107 const findListOptions = new FindListOptions ( ) ;
110108 findListOptions . searchParams = [ new RequestParam ( 'uuid' , encodeURIComponent ( uuid ) ) ] ;
111109 const href$ = this . searchData . getSearchByHref ( this . searchByItemLinkPath , findListOptions , ...linksToFollow ) ;
@@ -126,7 +124,7 @@ export class WorkflowItemDataService extends IdentifiableDataService<WorkflowIte
126124 * @return {Observable<RemoteData<PaginatedList<T>> }
127125 * Return an observable that emits response from the server
128126 */
129- public searchBy ( searchMethod : string , options ?: FindListOptions , useCachedVersionIfAvailable ?: boolean , reRequestOnStale ?: boolean , ...linksToFollow : FollowLinkConfig < WorkspaceItem > [ ] ) : Observable < RemoteData < PaginatedList < WorkspaceItem > > > {
127+ public searchBy ( searchMethod : string , options ?: FindListOptions , useCachedVersionIfAvailable ?: boolean , reRequestOnStale ?: boolean , ...linksToFollow : FollowLinkConfig < WorkflowItem > [ ] ) : Observable < RemoteData < PaginatedList < WorkflowItem > > > {
130128 return this . searchData . searchBy ( searchMethod , options , useCachedVersionIfAvailable , reRequestOnStale , ...linksToFollow ) ;
131129 }
132130
0 commit comments