Package com.totvs.tjf.rac.maven.plugin
Class SpelFormatter
- java.lang.Object
-
- com.totvs.tjf.rac.maven.plugin.SpelFormatter
-
public class SpelFormatter extends Object
This class parses a informed value recovered from a determinedRolesAllowed
orPreAuthorize
Spring annotation to get the informed Roles and Resources to send them to RAC.- Author:
- Diego N. da Silveira
-
-
Constructor Summary
Constructors Constructor Description SpelFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRolesAllowed(String[] value)
Add roles.List<String>
getResources()
Gets the annotation resources.List<String>
getRoles()
Gets the annotation roles.void
parseValuePreAuthorize(String value)
Parses the SpEL of the informed value.
-
-
-
Method Detail
-
getResources
public List<String> getResources()
Gets the annotation resources.- Returns:
- List of the resources.
-
parseValuePreAuthorize
public void parseValuePreAuthorize(String value)
Parses the SpEL of the informed value.- Parameters:
value
- Original informed value.
-
addRolesAllowed
public void addRolesAllowed(String[] value)
Add roles.- Parameters:
value
- Original informed value.
-
-