public interface ObjectAction extends ObjectMember
| Modifier and Type | Interface and Description |
|---|---|
static class |
ObjectAction.Filters |
static class |
ObjectAction.Predicates |
static class |
ObjectAction.Utils |
| Modifier and Type | Method and Description |
|---|---|
ActionInvocationContext |
createActionInvocationInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter targetObject,
ObjectAdapter[] proposedArguments)
Creates an
interaction context
representing an attempt to invoke this action. |
ObjectAdapter |
execute(ObjectAdapter target,
ObjectAdapter[] parameters)
Invokes the action's method on the target object given the specified set
of parameters.
|
ObjectAdapter[][] |
getChoices(ObjectAdapter target)
Returns a list of possible references/values for each parameter, which
the user can choose from.
|
ObjectAdapter[] |
getDefaults(ObjectAdapter target)
Returns the defaults references/values to be used for the action.
|
ObjectSpecification |
getOnType()
Returns the specification for the type of object that this action can be
invoked upon.
|
ObjectActionParameter |
getParameterById(String paramId)
Returns the parameter with provided id.
|
ObjectActionParameter |
getParameterByName(String paramName)
Returns the parameter with provided name.
|
int |
getParameterCount()
Returns the number of parameters used by this method.
|
List<ObjectActionParameter> |
getParameters()
Returns set of parameter information.
|
List<ObjectActionParameter> |
getParameters(org.apache.isis.applib.filter.Filter<ObjectActionParameter> filter)
Returns set of parameter information matching the supplied filter.
|
List<ObjectSpecification> |
getParameterTypes()
Returns the
type of each of the
parameters. |
ObjectSpecification |
getReturnType()
Returns the specifications for the return type.
|
org.apache.isis.applib.annotation.ActionSemantics.Of |
getSemantics()
The semantics of this action.
|
ActionType |
getType() |
boolean |
hasReturn()
Returns true if the represented action returns a non-void object,
else returns false.
|
Consent |
isProposedArgumentSetValid(ObjectAdapter object,
ObjectAdapter[] proposedArguments)
Whether the provided argument set is valid, represented as a
Consent. |
boolean |
promptForParameters(ObjectAdapter target) |
createUsableInteractionContext, createVisibleInteractionContext, debugData, getHelp, isAction, isAlwaysHidden, isOneToManyAssociation, isOneToOneAssociation, isPropertyOrCollection, isUsable, isVisiblegetDescription, getId, getName, getSpecificationgetFeatureType, getInstancegetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetorg.apache.isis.applib.annotation.ActionSemantics.Of getSemantics()
ObjectSpecification getOnType()
boolean promptForParameters(ObjectAdapter target)
ActionType getType()
ObjectSpecification getReturnType()
boolean hasReturn()
ObjectAdapter execute(ObjectAdapter target, ObjectAdapter[] parameters)
ActionInvocationContext createActionInvocationInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter targetObject, ObjectAdapter[] proposedArguments)
interaction context
representing an attempt to invoke this action.
Typically it is easier to just call {@link #isProposedArgumentSetValid(ObjectAdapter, ObjectAdapter[])
Consent isProposedArgumentSetValid(ObjectAdapter object, ObjectAdapter[] proposedArguments)
Consent.int getParameterCount()
List<ObjectActionParameter> getParameters()
Implementations may build this array lazily or eagerly as required.
List<ObjectSpecification> getParameterTypes()
type of each of the
parameters.List<ObjectActionParameter> getParameters(org.apache.isis.applib.filter.Filter<ObjectActionParameter> filter)
ObjectActionParameter getParameterById(String paramId)
ObjectActionParameter getParameterByName(String paramName)
ObjectAdapter[] getDefaults(ObjectAdapter target)
ObjectAdapter[][] getChoices(ObjectAdapter target)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.