
com.yahoo.elide.annotation.OnCreatePreSecurity Maven / Gradle / Ivy
/*
* Copyright 2016, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* On Create trigger annotation.
*
* The invoked function takes a RequestScope as parameter.
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Deprecated
public @interface OnCreatePreSecurity {
/**
* Field name on which the annotated method is only triggered if that field is modified.
* If value is empty string, then trigger once when the object is created.
* If value is "*", then this method will be triggered once for each field that
* the user sent in the creation request.
*
* @return the field name that triggers the method
*/
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy