org.nakedobjects.metamodel.interactions
Interface HidingInteractionAdvisor

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet
All Known Subinterfaces:
HiddenFacet, HideForContextFacet, HideForSessionFacet
All Known Implementing Classes:
HiddenFacetAbstract, HiddenFacetAlways, HiddenFacetAnnotation, HiddenFacetImpl, HiddenFacetNever, HideForContextFacetAbstract, HideForContextFacetNone, HideForContextFacetViaMethod, HideForSessionFacetAbstract, HideForSessionFacetNone, HideForSessionFacetViaMethod

public interface HidingInteractionAdvisor
extends InteractionAdvisorFacet

Mix-in interface for facets that can advise as to whether a member should be hidden.

See Also:
DisablingInteractionAdvisor, ValidatingInteractionAdvisor

Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 java.lang.String hides(VisibilityContext<? extends VisibilityEvent> ic)
          Whether the rule represented by this facet hides the member to which it applies.
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Method Detail

hides

java.lang.String hides(VisibilityContext<? extends VisibilityEvent> ic)
Whether the rule represented by this facet hides the member to which it applies.

Implementations should use the provided InteractionContext to determine whether they declare the object/member is hidden. They must however guard against a null target and session - neither are guaranteed to be populated.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.