org.nakedobjects.metamodel.facets.hide
Class HideForSessionFacetAbstract
java.lang.Object
org.nakedobjects.metamodel.facets.FacetAbstract
org.nakedobjects.metamodel.facets.hide.HideForSessionFacetAbstract
- All Implemented Interfaces:
- InteractionAdvisor, InteractionAdvisorFacet, Facet, HideForSessionFacet, HidingInteractionAdvisor
- Direct Known Subclasses:
- HideForSessionFacetNone, HideForSessionFacetViaMethod
public abstract class HideForSessionFacetAbstract
- extends FacetAbstract
- implements HideForSessionFacet
Hide a property, collection or action based on the current session.
In the standard Naked Objects Programming Model, corresponds to invoking the hideXxx(UserMemento)
support method for the member.
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetAbstract |
alwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toString, toStringValues, unwrapObject, unwrapString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HideForSessionFacetAbstract
public HideForSessionFacetAbstract(FacetHolder holder)
type
public static java.lang.Class<? extends Facet> type()
hides
public java.lang.String hides(VisibilityContext<? extends VisibilityEvent> ic)
- Description copied from interface:
HidingInteractionAdvisor
- 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.
- Specified by:
hides in interface HidingInteractionAdvisor
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.