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

org.nakedobjects.metamodel.interactions.HidingInteractionAdvisor Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.metamodel.interactions;

import org.nakedobjects.applib.events.VisibilityEvent;
import org.nakedobjects.metamodel.consent.InteractionAdvisorFacet;


/**
 * Mix-in interface for facets that can advise as to whether a member should be hidden.
 * 
 * @see DisablingInteractionAdvisor
 * @see ValidatingInteractionAdvisor
 */
public interface HidingInteractionAdvisor extends InteractionAdvisorFacet {

    /**
     * Whether the rule represented by this facet hides the member to which it applies.
     * 
     * 

* Implementations should use the provided {@link InteractionContext} to determine whether they declare * the object/member is hidden. They must however guard against a null * {@link InteractionContext#getTarget() target} and {@link InteractionContext#getSession() session} - * neither are guaranteed to be populated. */ String hides(final VisibilityContext ic); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy