public class HideForContextFacetViaMethod extends HideForContextFacetAbstract implements ImperativeFacet
FacetAbstract.Derivation, FacetAbstract.Disabling, FacetAbstract.Hiding, FacetAbstract.ValidatingImperativeFacet.Flags, ImperativeFacet.Intent, ImperativeFacet.UtilFILTERNOOP| Constructor and Description |
|---|
HideForContextFacetViaMethod(Method method,
FacetHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
ImperativeFacet.Intent |
getIntent(Method method)
The intent of this method, so that the
WrapperFactory knows whether to delegate on or to reject. |
List<Method> |
getMethods()
Returns a singleton list of the
Method provided in the
constructor. |
String |
hides(VisibilityContext<? extends org.apache.isis.applib.events.VisibilityEvent> ic)
Whether the rule represented by this facet hides the member to which it
applies.
|
boolean |
impliesObjectChanged()
Whether invoking this method requires an
DomainObjectContainer.objectChanged(Object) to occur afterwards. |
boolean |
impliesResolve()
Whether invoking this requires a
DomainObjectContainer.resolve(Object) to occur first. |
protected String |
toStringValues() |
typealwaysReplace, facetType, getFacetHolder, getIdentified, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetpublic HideForContextFacetViaMethod(Method method, FacetHolder holder)
public List<Method> getMethods()
Method provided in the
constructor.getMethods in interface ImperativeFacetpublic ImperativeFacet.Intent getIntent(Method method)
ImperativeFacetWrapperFactory knows whether to delegate on or to reject.getIntent in interface ImperativeFacetmethod - - one of the methods returned from ImperativeFacet.getMethods()public boolean impliesResolve()
ImperativeFacetDomainObjectContainer.resolve(Object) to occur first.impliesResolve in interface ImperativeFacetpublic boolean impliesObjectChanged()
ImperativeFacetDomainObjectContainer.objectChanged(Object) to occur afterwards.impliesObjectChanged in interface ImperativeFacetpublic String hides(VisibilityContext<? extends org.apache.isis.applib.events.VisibilityEvent> ic)
HidingInteractionAdvisor
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.
hides in interface HidingInteractionAdvisorprotected String toStringValues()
toStringValues in class FacetAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.