-
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-1902 (pull request #481)
SHIBUI-1902 Approved-by: Jonathan Johnson
- Loading branch information
Showing
9 changed files
with
163 additions
and
103 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
20 changes: 0 additions & 20 deletions
20
...ain/java/edu/internet2/tier/shibboleth/admin/ui/repository/CustomAttributeRepository.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...ernet2/tier/shibboleth/admin/ui/repository/CustomEntityAttributeDefinitionRepository.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,20 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.repository; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.domain.CustomEntityAttributeDefinition; | ||
|
||
/** | ||
* Repository to manage {@link CustomEntityAttributeDefinition} instances. | ||
*/ | ||
public interface CustomEntityAttributeDefinitionRepository extends JpaRepository<CustomEntityAttributeDefinition, String> { | ||
|
||
List<CustomEntityAttributeDefinition> findAll(); | ||
|
||
CustomEntityAttributeDefinition findByName(String name); | ||
|
||
@SuppressWarnings("unchecked") | ||
CustomEntityAttributeDefinition save(CustomEntityAttributeDefinition attribute); | ||
} |
17 changes: 0 additions & 17 deletions
17
...src/main/java/edu/internet2/tier/shibboleth/admin/ui/service/CustomAttributesService.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...main/java/edu/internet2/tier/shibboleth/admin/ui/service/CustomAttributesServiceImpl.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...u/internet2/tier/shibboleth/admin/ui/service/CustomEntityAttributesDefinitionService.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,17 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.service; | ||
|
||
import java.util.List; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.domain.CustomEntityAttributeDefinition; | ||
|
||
public interface CustomEntityAttributesDefinitionService { | ||
|
||
CustomEntityAttributeDefinition createOrUpdateDefinition(CustomEntityAttributeDefinition definition); | ||
|
||
void deleteDefinition(CustomEntityAttributeDefinition definition); | ||
|
||
CustomEntityAttributeDefinition find(String name); | ||
|
||
List<CustomEntityAttributeDefinition> getAllDefinitions(); | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
...ternet2/tier/shibboleth/admin/ui/service/CustomEntityAttributesDefinitionServiceImpl.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,36 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.service; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Service; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.domain.CustomEntityAttributeDefinition; | ||
import edu.internet2.tier.shibboleth.admin.ui.repository.CustomEntityAttributeDefinitionRepository; | ||
|
||
@Service | ||
public class CustomEntityAttributesDefinitionServiceImpl implements CustomEntityAttributesDefinitionService { | ||
@Autowired | ||
private CustomEntityAttributeDefinitionRepository repository; | ||
|
||
@Override | ||
public CustomEntityAttributeDefinition createOrUpdateDefinition(CustomEntityAttributeDefinition definition) { | ||
return repository.save(definition); | ||
} | ||
|
||
@Override | ||
public void deleteDefinition(CustomEntityAttributeDefinition definition) { | ||
repository.delete(definition); | ||
} | ||
|
||
@Override | ||
public CustomEntityAttributeDefinition find(String name) { | ||
return repository.findByName(name); | ||
} | ||
|
||
@Override | ||
public List<CustomEntityAttributeDefinition> getAllDefinitions() { | ||
return repository.findAll(); | ||
} | ||
|
||
} |
Oops, something went wrong.