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

com.yahoo.elide.annotation.OnReadPostCommit 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;

/**
 * Post-read hook. This annotation marks a callback that is triggered when a user performs a "read" action.
 * This hook will be triggered after all security checks have been run and after the datastore
 * has been committed.
 * 

* The invoked function takes a RequestScope as parameter. * * @see com.yahoo.elide.security.RequestScope */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface OnReadPostCommit { /** * Field name on which the annotated method is only triggered if that field is read. * If value is empty string, then trigger once when the object is read. * If value is "*", then trigger for all field reads. * * @return the field name that triggers the method */ String value() default ""; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy