com.icthh.xm.commons.permission.service.rolestrategy.RoleStrategy Maven / Gradle / Ivy
The newest version!
package com.icthh.xm.commons.permission.service.rolestrategy;
import com.icthh.xm.commons.permission.service.translator.SpelTranslator;
import java.io.Serializable;
import java.util.Collection;
import org.springframework.security.core.Authentication;
public interface RoleStrategy {
boolean hasPermission(Authentication authentication, Object privilege);
boolean hasPermission(Authentication authentication, Object resource, Object privilege);
boolean hasPermission(Authentication authentication, Serializable resource, String resourceType, Object privilege);
String createCondition(Authentication authentication, Object privilegeKey, SpelTranslator translator);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy