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

org.craftercms.commons.jackson.mvc.SecurePropertyHandler Maven / Gradle / Ivy

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

/**
 * Defines how the SecureProperty Should be handel.
 */
public interface SecurePropertyHandler {
    /**
     * Checks if the property is allowed for the given role.
     * @param roles Roles to check if Property is allowed.
     * @param propertyName Property name to check. (this will be a full class name + actual property name)
     * @return True if the property must be suppress from the output, False otherwise.
     */
    boolean suppressProperty(final Object propertyName, final String[] roles);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy