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

org.craftercms.commons.jackson.mvc.annotations.SecureProperty Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
package org.craftercms.commons.jackson.mvc.annotations;

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

/**
 * Check if this property will be serialize depending of the result of
 * {@link org.craftercms.commons.jackson.mvc.SecurePropertyHandler#suppressProperty(String,String)}.
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface SecureProperty {
    /**
     * Role name to check if has access to the property.
     * @return Role Name.
     */
    public String[] role();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy