-
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.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...java/edu/internet2/tier/shibboleth/admin/ui/security/service/IPersistentEntityTupple.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.security.service; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Will be used as a key for PersmissionEvaluator return types | ||
*/ | ||
public interface IPersistentEntityTupple extends Serializable { | ||
|
||
String getId(); | ||
|
||
Class getType(); | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...a/edu/internet2/tier/shibboleth/admin/ui/security/service/IShibUiPermissionEvaluator.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,22 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.security.service; | ||
|
||
import org.springframework.security.access.PermissionEvaluator; | ||
import org.springframework.security.core.Authentication; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
public interface IShibUiPermissionEvaluator extends PermissionEvaluator { | ||
|
||
Collection getPersistentEntitiesWithPermission(Authentication authentication, Object permission); | ||
|
||
/** | ||
* Get ALL persistent entities that user has access to | ||
* @param authentication | ||
* @return | ||
*/ | ||
Map<IPersistentEntityTupple, Object> getPersistentEntities(Authentication authentication); | ||
|
||
Map<IPersistentEntityTupple, Object> getPersistentEntities(Authentication authentication, Class clazz); | ||
|
||
} |