Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

@Retention(CLASS) @Target({PARAMETER})

public @interface P

Names a parameter for a PreAuthorize expression, which refers to it as #name. Needed only when the class is compiled without parameter names; where both exist, this one wins.

@PreAuthorize("#owner == authentication.name")
public Report read(@P("owner") String user) { ... }

Methods

public abstract String value()The name the expression uses.

Method details

value

public abstract String value()
The name the expression uses.