Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dspace7 Angular
Manage
Activity
Members
Labels
Plan
Issues
42
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vtechworks
Dspace7 Angular
Commits
82426700
Commit
82426700
authored
5 years ago
by
Giuseppe Digilio
Browse files
Options
Downloads
Patches
Plain Diff
Added getAuthorizedCollection method to CollectionDataService
parent
0ab2ca18
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/core/data/collection-data.service.ts
+17
-2
17 additions, 2 deletions
src/app/core/data/collection-data.service.ts
with
17 additions
and
2 deletions
src/app/core/data/collection-data.service.ts
+
17
−
2
View file @
82426700
...
...
@@ -41,11 +41,26 @@ export class CollectionDataService extends ComColDataService<Collection> {
super
();
}
/**
* Get all collections whom user has authorization to submit
*
* @return Observable<RemoteData<PaginatedList<Collection>>>
* collection list
*/
getAuthorizedCollection
():
Observable
<
RemoteData
<
PaginatedList
<
Collection
>>>
{
const
searchHref
=
'
findAuthorized
'
;
const
options
=
new
FindAllOptions
();
options
.
elementsPerPage
=
1000
;
return
this
.
searchBy
(
searchHref
,
options
).
pipe
(
filter
((
collections
:
RemoteData
<
PaginatedList
<
Collection
>>
)
=>
!
collections
.
isResponsePending
));
}
/**
* Get all collections whom user has authorization to submit to by community
*
* @return
boolean
*
true if the user has at least one collection to submit to
* @return
Observable<RemoteData<PaginatedList<Collection>>>
*
collection list
*/
getAuthorizedCollectionByCommunity
(
communityId
):
Observable
<
RemoteData
<
PaginatedList
<
Collection
>>>
{
const
searchHref
=
'
findAuthorizedByCommunity
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment