Class MethodMapSicherheitAttributeSource
java.lang.Object
de.bund.bva.isyfact.serviceapi.core.serviceimpl.MethodMapSicherheitAttributeSource
- All Implemented Interfaces:
SicherheitAttributeSource,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.InitializingBean
@Deprecated
public class MethodMapSicherheitAttributeSource
extends Object
implements SicherheitAttributeSource, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean
Deprecated.
This module is deprecated and will be removed in a future release.
It is recommended to use REST according to IsyFacts REST Concept instead.
Stellt die benötigten Rechte pro Methode in einer Map bereit.
Diese Klasse ist als Kopie der Spring MethodMapTransactionAttributeSource entstanden.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGesichertMethod(Class<?> clazz, String mappedName, String[] attr) Deprecated.Add an attribute for a "gesichert" method.voidaddGesichertMethod(Method method, String[] attr) Deprecated.Add an attribute for a "gesichert" method.voidaddGesichertMethod(String name, String[] attr) Deprecated.Add an attribute for a "gesichert" method.voidDeprecated.Eagerly initializes the specified"methodMap", if any.String[]getBenoetigeRechte(Method method, Class<?> targetClass) Deprecated.protected voidinitMethodMap(Map<String, String[]> methodMap) Deprecated.Initialize the specified"methodMap", if any.protected booleanDeprecated.Return if the given method name matches the mapped name.voidsetBeanClassLoader(ClassLoader beanClassLoader) Deprecated.voidsetMethodMap(Map<String, String[]> methodMap) Deprecated.Set a name/attribute map, consisting of "FQCN.method" method names (e.g.
-
Constructor Details
-
MethodMapSicherheitAttributeSource
public MethodMapSicherheitAttributeSource()Deprecated.
-
-
Method Details
-
setMethodMap
Deprecated.Set a name/attribute map, consisting of "FQCN.method" method names (e.g. "com.mycompany.mycode.MyClass.myMethod") and String[] instances.Intended for configuration via setter injection, typically within a Spring bean factory. Relies on
afterPropertiesSet()being called afterwards.- Parameters:
methodMap- saidMapfrom method name to attribute value
-
setBeanClassLoader
Deprecated.- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.Eagerly initializes the specified"methodMap", if any.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- See Also:
-
initMethodMap
Deprecated.Initialize the specified"methodMap", if any.- Parameters:
methodMap- Map from method names toString[]instances- See Also:
-
addGesichertMethod
Deprecated.Add an attribute for a "gesichert" method.Method names can end or start with "*" for matching multiple methods.
- Parameters:
name- class and method name, separated by a dotattr- attribute associated with the method- Throws:
IllegalArgumentException- in case of an invalid name
-
addGesichertMethod
Deprecated.Add an attribute for a "gesichert" method. Method names can end or start with "*" for matching multiple methods.- Parameters:
clazz- target interface or classmappedName- mapped method nameattr- attribute associated with the method
-
addGesichertMethod
Deprecated.Add an attribute for a "gesichert" method.- Parameters:
method- the methodattr- attribute associated with the method
-
isMatch
Deprecated.Return if the given method name matches the mapped name.The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.
- Parameters:
methodName- the method name of the classmappedName- the name in the descriptor- Returns:
- if the names match
- See Also:
-
PatternMatchUtils.simpleMatch(String, String)
-
getBenoetigeRechte
Deprecated.- Specified by:
getBenoetigeRechtein interfaceSicherheitAttributeSource
-