|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectMember
Provides reflective access to an action or a field on a domain object.
| Method Summary | |
|---|---|
UsabilityContext<?> |
createUsableInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject target)
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,
NakedObject targetNakedObject)
Create an InteractionContext to represent an attempt to view this member (that is, to check if
it is visible or not). |
java.lang.String |
debugData()
|
java.lang.String |
getHelp()
Return the help text for this member - the field or action - to complement the description. |
java.lang.String |
getId()
Returns the identifier of the member, which must not change. |
boolean |
isAction()
Whether this member represents a NakedObjectAction. |
boolean |
isAssociation()
Whether this member represents a NakedObjectAssociation. |
boolean |
isOneToManyAssociation()
Whether this member represents a OneToManyAssociation. |
boolean |
isOneToOneAssociation()
Whether this member represents a OneToOneAssociation. |
Consent |
isUsable(AuthenticationSession session,
NakedObject target)
Determines whether this member is usable, represented as a Consent. |
Consent |
isVisible(AuthenticationSession session,
NakedObject target)
Determines if this member is visible, represented as a Consent. |
| Methods inherited from interface org.nakedobjects.metamodel.spec.TypedSpecification |
|---|
getSpecification |
| Methods inherited from interface org.nakedobjects.metamodel.spec.Specification |
|---|
getInstance |
| Methods inherited from interface org.nakedobjects.metamodel.spec.identifier.Identified |
|---|
getIdentifier |
| Methods inherited from interface org.nakedobjects.metamodel.facets.FacetHolder |
|---|
addFacet, addFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacet |
| Methods inherited from interface org.nakedobjects.metamodel.spec.NamedAndDescribed |
|---|
getDescription, getName |
| Method Detail |
|---|
java.lang.String getId()
java.lang.String getHelp()
NamedAndDescribed.getDescription()
VisibilityContext<?> createVisibleInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetNakedObject)
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, NakedObject) or
#isVisibleResult(AuthenticationSession, NakedObject); this is provided as API for symmetry with interactions
(such as AccessContext accesses) have no corresponding vetoing methods.
session - targetNakedObject -
Consent isVisible(AuthenticationSession session,
NakedObject target)
Consent.
session - target - may be null if just checking for authorization.#isVisibleResult(AuthenticationSession, NakedObject)
UsabilityContext<?> createUsableInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject target)
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, NakedObject) or
#isUsableResult(AuthenticationSession, NakedObject); this is provided as API for symmetry with interactions
(such as AccessContext accesses) have no corresponding vetoing methods.
session - target -
Consent isUsable(AuthenticationSession session,
NakedObject target)
Consent.
session - target - may be null if just checking for authorization.#isUsableResult(AuthenticationSession, NakedObject)boolean isAssociation()
NakedObjectAssociation.
If so, can be safely downcast to NakedObjectAssociation.
boolean isOneToManyAssociation()
OneToManyAssociation.
If so, can be safely downcast to OneToManyAssociation.
boolean isOneToOneAssociation()
OneToOneAssociation.
If so, can be safely downcast to OneToOneAssociation.
boolean isAction()
NakedObjectAction.
If so, can be safely downcast to NakedObjectAction.
java.lang.String debugData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||