Skip to content

Commit

Permalink
API, polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Nov 4, 2022
1 parent b2e65e4 commit 897f921
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import edu.internet2.tier.shibboleth.admin.ui.domain.EntityDescriptorProtocol;
import lombok.Getter;
import org.hibernate.criterion.Projection;

import java.time.LocalDateTime;

Expand Down Expand Up @@ -53,4 +54,4 @@ public String getEntityId() {
public EntityDescriptorProtocol getProtocol() {
return protocol == null ? EntityDescriptorProtocol.SAML : protocol;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package edu.internet2.tier.shibboleth.admin.ui.security.permission;

import edu.internet2.tier.shibboleth.admin.ui.domain.Auditable;
import edu.internet2.tier.shibboleth.admin.ui.exception.ForbiddenException;
import liquibase.pro.packaged.T;
import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.core.Authentication;

Expand All @@ -19,4 +21,6 @@ public interface IShibUiPermissionEvaluator extends PermissionEvaluator {
* @throws ForbiddenException if the user does not have the correct authority required
*/
Collection getPersistentEntities(Authentication authentication, ShibUiPermissibleType type, PermissionType permissionType) throws ForbiddenException;
}

<T extends Auditable> Collection<T> getAuditableEntities(Authentication authentication, Class<T> auditableType, PermissionType permissionType);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package edu.internet2.tier.shibboleth.admin.ui.security.permission;

public enum PermissionType {
admin, approver, enable, fetch, viewOrEdit;
}
admin, approve, enable, fetch, viewOrEdit;
}

0 comments on commit 897f921

Please sign in to comment.