All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sirius.biz.web.Autoloaded Maven / Gradle / Ivy

There is a newer version: 9.6
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.biz.web;

import sirius.db.mixing.Entity;
import sirius.web.http.WebContext;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Fields marked with this annotation are auto filled from the given request, when calling {@link
 * BizController#load(WebContext, Entity)}.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Autoloaded {

    /**
     * Controls the permissions required to be able to fill the field.
     * 

* If the current user hasn't all of the given permissions, the value in the context will not be applied. * * @return the list of permissions required to be able to fill the annotated field */ String[] permissions() default {}; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy