Class ControllerSecurityUtil

java.lang.Object
nl.datasteel.crudcraft.codegen.util.ControllerSecurityUtil

public final class ControllerSecurityUtil extends Object
Utility methods for applying security annotations to generated controllers.
  • 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 provided CrudSecurityPolicy and allowed endpoints.
      Parameters:
      env - the annotation processing environment
      builder - the controller type builder
      allowed - the endpoints that should be exposed
      modelDescriptor - full model metadata used for type resolution