-
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.
Merged in feature/SHIBUI-1783 (pull request #482)
Feature/SHIBUI-1783 Approved-by: Jonathan Johnson
- Loading branch information
Showing
15 changed files
with
393 additions
and
79 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
43 changes: 43 additions & 0 deletions
43
...u/internet2/tier/shibboleth/admin/ui/domain/filters/CustomEntityAttributeFilterValue.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,43 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain.filters; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.Table; | ||
import javax.persistence.UniqueConstraint; | ||
|
||
import org.hibernate.envers.Audited; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.domain.CustomEntityAttributeDefinition; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Entity(name = "custom_entity_attr_filter_value") | ||
@Table(uniqueConstraints = { @UniqueConstraint(columnNames = { "filter_id", "custom_entity_attribute_name" }) }) | ||
@Audited | ||
// NOTE: lombok's toString and equals cause an infinite loop somewhere that causes stack overflows, so if we need impls, | ||
// do it manually. Do not replace the Getter and Setter with @Data... | ||
@Getter | ||
@Setter | ||
public class CustomEntityAttributeFilterValue { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.AUTO) | ||
@Column(name = "generated_id") | ||
private Integer id; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "filter_id", nullable = false) | ||
EntityAttributesFilter entityAttributesFilter; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "custom_entity_attribute_name", referencedColumnName = "name", nullable = false) | ||
CustomEntityAttributeDefinition customEntityAttributeDefinition; | ||
|
||
@Column(name = "value", nullable = false) | ||
String value; | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...va/edu/internet2/tier/shibboleth/admin/ui/domain/filters/IConcreteMetadataFilterType.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,14 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain.filters; | ||
|
||
/** | ||
* Concrete implementations of the MetadataFilter should implement the updateConcreteFilterTypeData signature to | ||
* populate specific type data from the existing filter to the target filter. | ||
*/ | ||
public interface IConcreteMetadataFilterType<T> { | ||
|
||
/** | ||
* @param filterToBeUpdated the target of the data | ||
* @return the filterToBeUpdated with the updated information from the existing filter | ||
*/ | ||
T updateConcreteFilterTypeData(T filterToBeUpdated); | ||
} |
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
Oops, something went wrong.