-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into SHIBUI-619
- Loading branch information
Showing
45 changed files
with
644 additions
and
223 deletions.
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
29 changes: 29 additions & 0 deletions
29
...a/edu/internet2/tier/shibboleth/admin/ui/domain/resolvers/FilesystemMetadataResolver.java
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,29 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain.resolvers; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import javax.persistence.Embedded; | ||
import javax.persistence.Entity; | ||
|
||
/** | ||
* @author Bill Smith (wsmith@unicon.net) | ||
*/ | ||
@Entity | ||
@EqualsAndHashCode(callSuper = true) | ||
@Getter | ||
@Setter | ||
@ToString | ||
public class FilesystemMetadataResolver extends MetadataResolver { | ||
|
||
public FilesystemMetadataResolver() { | ||
type = "FilesystemMetadataResolver"; | ||
} | ||
|
||
private String metadataFile; | ||
|
||
@Embedded | ||
private ReloadableMetadataResolverAttributes reloadableMetadataResolverAttributes; | ||
} |
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
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
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- This file is an EXAMPLE metadata configuration file. --> | ||
<MetadataProvider xmlns="urn:mace:shibboleth:2.0:metadata" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
id="ShibbolethMetadata" | ||
xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd urn:mace:shibboleth:2.0:resource http://shibboleth.net/schema/idp/shibboleth-resource.xsd urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd urn:oasis:names:tc:SAML:2.0:assertion http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd" | ||
xsi:type="ChainingMetadataProvider"> | ||
<MetadataProvider id="FilesystemMetadata" | ||
maxRefreshDelay="PT1H" | ||
metadataFile="some metadata filename" | ||
minRefreshDelay="PT5M" | ||
refreshDelayFactor="0.75" | ||
xsi:type="FilesystemMetadataProvider"/> | ||
</MetadataProvider> |
2 changes: 1 addition & 1 deletion
2
ui/src/app/metadata/manager/component/provider-search.component.html
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
17 changes: 17 additions & 0 deletions
17
ui/src/app/metadata/manager/container/dashboard-providers-list.component.html
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,17 @@ | ||
<section class="section"> | ||
<div class="section-body border border-top-0 border-primary"> | ||
<div class="section-header bg-primary p-2 text-light"> | ||
<div class="row justify-content-between"> | ||
<div class="col-12"> | ||
<span class="lead" i18n="@@label--current-metadata-sources">Current Metadata Providers</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="p-3"> | ||
<code><pre>{{ providers$ | async | json }}</pre></code> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
|
21 changes: 21 additions & 0 deletions
21
ui/src/app/metadata/manager/container/dashboard-providers-list.component.ts
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,21 @@ | ||
import { Component } from '@angular/core'; | ||
import { MetadataProvider } from '../../domain/model'; | ||
import { Observable } from '../../../../../node_modules/rxjs'; | ||
import { Store } from '@ngrx/store'; | ||
import { ProviderState, getAllProviders } from '../../provider/reducer'; | ||
|
||
@Component({ | ||
selector: 'dashboard-providers-list', | ||
templateUrl: './dashboard-providers-list.component.html' | ||
}) | ||
|
||
export class DashboardProvidersListComponent { | ||
|
||
providers$: Observable<MetadataProvider[]>; | ||
|
||
constructor( | ||
private store: Store<ProviderState> | ||
) { | ||
this.providers$ = this.store.select(getAllProviders); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
ui/src/app/metadata/manager/container/dashboard-resolvers-list.component.html
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,44 @@ | ||
<section class="section"> | ||
<div class="section-body border border-top-0 border-primary"> | ||
<div class="section-header bg-primary p-2 text-light"> | ||
<div class="row justify-content-between"> | ||
<div class="col-md-8"> | ||
<span class="lead" i18n="@@label--current-metadata-sources">Current Metadata Sources</span> | ||
</div> | ||
<div class="col-md-4"> | ||
<provider-search | ||
[query]="searchQuery$ | async" | ||
[searching]="loading$ | async" | ||
(search)="search($event)"> | ||
</provider-search> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="p-3"> | ||
<ul class="list-unstyled m-0"> | ||
<li *ngFor="let entity of limited$ | async; index as i" | ||
[ngClass]="{'mt-2': i > 0}" | ||
aria-label="Provider Item Accordion. Press Spacebar to open"> | ||
<entity-item | ||
[entity]="entity" | ||
[isOpen]="(entitiesOpen$ | async)[entity.getId()]" | ||
(select)="edit(entity)" | ||
(toggle)="toggleEntity(entity)" | ||
(preview)="openPreviewDialog(entity)" | ||
(delete)="deleteResolver(entity)"> | ||
</entity-item> | ||
</li> | ||
</ul> | ||
<div class="mt-3 clearfix" *ngIf="(total$ | async) > limit"> | ||
<ngb-pagination | ||
class="float-right" | ||
[collectionSize]="total$ | async" | ||
[page]="page" | ||
[pageSize]="limit" | ||
(pageChange)="changePage($event)" | ||
aria-label="Pages"> | ||
</ngb-pagination> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
Oops, something went wrong.