shz.spring.auth.AuthService Maven / Gradle / Ivy
package shz.spring.auth;
public interface AuthService {
boolean isDba(Long roleId);
boolean isDba();
boolean hasApiPermission(Long roleId, long apiId);
boolean hasApiPermission(Long roleId, long... apiIds);
void checkApiPermission(Long roleId, long apiId);
void checkApiPermission(Long roleId, long... apiIds);
boolean hasRolePermission(Long roleId, int otherRoleLevel);
boolean hasRolePermission(Long roleId, int... otherRoleLevels);
boolean hasRolePermission(Long roleId, long otherId);
boolean hasRolePermission(Long roleId, long... otherIds);
void checkRolePermission(Long roleId, int otherRoleLevel);
void checkRolePermission(Long roleId, int... otherRoleLevels);
void checkRolePermission(Long roleId, long otherId);
void checkRolePermission(Long roleId, long... otherIds);
boolean hasUserPermission(Long userid, Long roleId, long otherId);
boolean hasUserPermission(Long userid, Long roleId, long... otherIds);
void checkUserPermission(Long userid, Long roleId, long otherId);
void checkUserPermission(Long userid, Long roleId, long... otherIds);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy