org.nakedobjects.metamodel.interactions
Interface DisablingInteractionAdvisor

All Superinterfaces:
Facet, InteractionAdvisor, InteractionAdvisorFacet
All Known Subinterfaces:
BoundedFacet, DerivedFacet, DisabledFacet, DisableForContextFacet, DisableForSessionFacet, ImmutableFacet, NotPersistableFacet
All Known Implementing Classes:
BoundedFacetAbstract, BoundedFacetAnnotation, BoundedFacetImpl, BoundedFacetMarkerInterface, DerivedFacetAbstract, DerivedFacetInferred, DisabledFacetAbstract, DisabledFacetAlways, DisabledFacetAnnotation, DisabledFacetDerivedFromImmutable, DisabledFacetImpl, DisabledFacetNever, DisableForContextFacetAbstract, DisableForContextFacetNone, DisableForContextFacetViaMethod, DisableForSessionFacetAbstract, DisableForSessionFacetNone, DisableForSessionFacetViaMethod, ImmutableFacetAbstract, ImmutableFacetAnnotation, ImmutableFacetImpl, ImmutableFacetMarkerInterface, ImmutableFacetNever, ImmutableFacetViaValueSemantics, NotPersistableFacetAbstract, NotPersistableFacetAnnotation, NotPersistableFacetImpl, NotPersistableFacetMarkerInterface, NotPersistableFacetNull

public interface DisablingInteractionAdvisor
extends InteractionAdvisorFacet

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

See Also:
ValidatingInteractionAdvisor, HidingInteractionAdvisor

Field Summary
 
Fields inherited from interface org.nakedobjects.metamodel.consent.InteractionAdvisorFacet
NOOP
 
Method Summary
 java.lang.String disables(UsabilityContext<? extends UsabilityEvent> ic)
          Whether the rule represented by this facet disables 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

disables

java.lang.String disables(UsabilityContext<? extends UsabilityEvent> ic)
Whether the rule represented by this facet disables the member to which it applies.

Implementations should use the provided InteractionContext to determine whether they disable the member from being modified or used. 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.