All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icthh.xm.commons.permission.service.rolestrategy.RoleStrategy Maven / Gradle / Ivy

There is a newer version: 4.0.17
Show 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