Class ControllerSecurityUtil
java.lang.Object
nl.datasteel.crudcraft.codegen.util.ControllerSecurityUtil
Utility methods for applying security annotations to generated controllers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplySecurity(ProcessingEnvironment env, com.squareup.javapoet.TypeSpec.Builder builder, Set<CrudEndpoint> allowed, ModelDescriptor modelDescriptor) Adds security annotations to the generated controller methods based on the providedCrudSecurityPolicyand allowed endpoints.
-
Method Details
-
applySecurity
public static void applySecurity(ProcessingEnvironment env, com.squareup.javapoet.TypeSpec.Builder builder, Set<CrudEndpoint> allowed, ModelDescriptor modelDescriptor) Adds security annotations to the generated controller methods based on the providedCrudSecurityPolicyand allowed endpoints.- Parameters:
env- the annotation processing environmentbuilder- the controller type builderallowed- the endpoints that should be exposedmodelDescriptor- full model metadata used for type resolution
-