public interface ObjectMember extends ObjectFeature
| Modifier and Type | Method and Description |
|---|---|
UsabilityContext<?> |
createUsableInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter target,
org.apache.isis.applib.annotation.Where where)
Create an
InteractionContext to represent an attempt to
use this member (that is, to
check if it is usable or not). |
VisibilityContext<?> |
createVisibleInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter targetObjectAdapter,
org.apache.isis.applib.annotation.Where where)
Create an
InteractionContext to represent an attempt to view this
member (that is, to check if it is visible or not). |
String |
debugData() |
String |
getHelp()
Return the help text for this member - the field or action - to
complement the description.
|
boolean |
isAction()
Whether this member represents a
ObjectAction. |
boolean |
isAlwaysHidden()
When the member is always hidden.
|
boolean |
isOneToManyAssociation()
Whether this member represents a
OneToManyAssociation. |
boolean |
isOneToOneAssociation()
Whether this member represents a
OneToOneAssociation. |
boolean |
isPropertyOrCollection()
Whether this member represents a
ObjectAssociation. |
Consent |
isUsable(AuthenticationSession session,
ObjectAdapter target,
org.apache.isis.applib.annotation.Where where)
Determines whether this member is usable, represented as a
Consent. |
Consent |
isVisible(AuthenticationSession session,
ObjectAdapter target,
org.apache.isis.applib.annotation.Where where)
Determines if this member is visible, represented as a
Consent. |
getDescription, getId, getName, getSpecificationgetFeatureType, getInstancegetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetString getHelp()
ObjectFeature.getDescription()boolean isAlwaysHidden()
Determined as per the HiddenFacet being present and
WhenValueFacet.when() returning When.ALWAYS, and
WhenAndWhereValueFacet.where() returning When#ANYWHERE.
VisibilityContext<?> createVisibleInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter targetObjectAdapter, org.apache.isis.applib.annotation.Where where)
InteractionContext to represent an attempt to view this
member (that is, to check if it is visible or not).
Typically it is easier to just call
isVisible(AuthenticationSession, ObjectAdapter, Where) or
#isVisibleResult(AuthenticationSession, ObjectAdapter); this is
provided as API for symmetry with interactions (such as
AccessContext accesses) have no corresponding vetoing methods.
Consent isVisible(AuthenticationSession session, ObjectAdapter target, org.apache.isis.applib.annotation.Where where)
Consent.target - may be null if just checking for authorization.where - the member is being rendered in the UI#isVisibleResult(AuthenticationSession, ObjectAdapter)UsabilityContext<?> createUsableInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter target, org.apache.isis.applib.annotation.Where where)
InteractionContext to represent an attempt to
use this member (that is, to
check if it is usable or not).
Typically it is easier to just call
isUsable(AuthenticationSession, ObjectAdapter, Where) or
#isUsableResult(AuthenticationSession, ObjectAdapter); this is
provided as API for symmetry with interactions (such as
AccessContext accesses) have no corresponding vetoing methods.
Consent isUsable(AuthenticationSession session, ObjectAdapter target, org.apache.isis.applib.annotation.Where where)
Consent.target - may be null if just checking for authorization.where - the member is being rendered in the UI#isUsableResult(AuthenticationSession, ObjectAdapter)boolean isPropertyOrCollection()
ObjectAssociation.
If so, can be safely downcast to ObjectAssociation.
boolean isOneToManyAssociation()
OneToManyAssociation.
If so, can be safely downcast to OneToManyAssociation.
boolean isOneToOneAssociation()
OneToOneAssociation.
If so, can be safely downcast to OneToOneAssociation.
boolean isAction()
ObjectAction.
If so, can be safely downcast to ObjectAction.
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.