-
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.
Added additional beacon data collection
- Loading branch information
Showing
13 changed files
with
180 additions
and
23 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
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
30 changes: 30 additions & 0 deletions
30
backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/beacon/BeaconEvent.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,30 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.beacon; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
| import javax.persistence.Entity; | ||
| import javax.persistence.GeneratedValue; | ||
| import javax.persistence.GenerationType; | ||
| import javax.persistence.Id; | ||
| import java.util.Date; | ||
|
|
||
| @Entity | ||
| @Data | ||
| public class BeaconEvent { | ||
| @Id | ||
| @GeneratedValue(strategy = GenerationType.SEQUENCE) | ||
| private Long id; | ||
|
|
||
| private Date eventTime; | ||
|
|
||
| private String eventName; | ||
|
|
||
| public BeaconEvent() { | ||
| eventTime = new Date(); | ||
| } | ||
|
|
||
| public BeaconEvent(BeaconEventType eventType) { | ||
| eventTime = new Date(); | ||
| this.eventName = eventType.name(); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
...d/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/beacon/BeaconEventType.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,7 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.domain.beacon; | ||
|
|
||
| public enum BeaconEventType { | ||
| METADATA_SOURCE_MODIFIED, METADATA_SOURCE_REMOVED, METADATA_SOURCE_ENABLED, METADATA_SOURCE_CREATED, | ||
| METADATA_PROVIDER_MODIFIED, METADATA_PROVIDER_REMOVED, METADATA_PROVIDER_ENABLED, METADATA_PROVIDER_CREATED, | ||
| METADATA_FILTER_MODIFIED, METADATA_FILTER_REMOVED, METADATA_FILTER_ENABLED, METADATA_FILTER_CREATED | ||
| } |
7 changes: 7 additions & 0 deletions
7
...rc/main/java/edu/internet2/tier/shibboleth/admin/ui/repository/BeaconEventRepository.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,7 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.repository; | ||
|
|
||
| import edu.internet2.tier.shibboleth.admin.ui.domain.beacon.BeaconEvent; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface BeaconEventRepository extends JpaRepository<BeaconEvent, Long> { | ||
| } |
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
5 changes: 5 additions & 0 deletions
5
backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/service/IBeaconDataService.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 |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| package edu.internet2.tier.shibboleth.admin.ui.service; | ||
|
|
||
| import com.fasterxml.jackson.core.JsonProcessingException; | ||
| import edu.internet2.tier.shibboleth.admin.ui.domain.beacon.BeaconEvent; | ||
|
|
||
| public interface IBeaconDataService { | ||
| String getBeaconData() throws JsonProcessingException; | ||
|
|
||
| void addBeaconEvent(BeaconEvent event); | ||
|
|
||
| void addEntityDescEnabledEvent(); | ||
| } |
Oops, something went wrong.