public abstract class ERD2WDirectAction extends ERXDirectAction
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryAll
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryArticle
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryArticle?__fs=findNewArticles
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/InspectArticle?__key=<articleid>
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/EditArticle?__key=<articleid>
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/CreateArticle
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ListArticle?__key=<userid>&__keypath=User.articles
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ListArticle?__fs=recentArticles&authorName=*foo*
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ListArticle?__fs=&author.name=*foo*&__fs_fetchLimit=0
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ErrorSomeStuff?__message=Some+Test
allowPageConfiguration(String)
. Also, this
class is abstract, so you need to subclass it.com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected Logger |
actionLog |
static String |
contextIDKey
denotes the context ID for the previous page
|
static String |
createPrefix |
static String |
fetchLimitKey
fetchLimit for the fetchSpec.
|
static String |
fetchSpecificationKey
fetchSpecificationKey is used to get the named fetchspec of a given object.
|
static String |
keyPathKey
keyPathKey is used to get relationships of a given object.
|
protected static Logger |
log
logging support
|
static String |
primaryKeyKey
primaryKeyKey is used to identity a given object via it's primary key.
|
static String |
usesDistinctKey
fetchLimit for the fetchSpec.
|
Constructor and Description |
---|
ERD2WDirectAction(com.webobjects.appserver.WORequest r)
Public constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowPageConfiguration(String pageConfiguration)
Checks if a page configuration is allowed to render.
|
com.webobjects.appserver.WOActionResults |
dynamicPageForActionNamed(String anActionName) |
com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecificationFromRequest(String entityName)
Retrieves and executes the fetch specification given in the request.
|
com.webobjects.appserver.WOActionResults |
forbiddenAction()
Returns a response with a 401 (access denied) message.
|
String |
keyPathFromRequest() |
protected com.webobjects.eocontrol.EOEditingContext |
newEditingContext()
For edit pages, we always use a fresh editing context.
|
com.webobjects.appserver.WOActionResults |
performActionNamed(String anActionName)
Overrides the default implementation to try to look up the action as a
page configuration if there is no method with the wanted name.
|
protected void |
prepareEditPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.EditPageInterface epi,
String entityName) |
protected void |
prepareEditRelationshipPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.EditRelationshipPageInterface erpi,
String entityName) |
protected com.webobjects.appserver.WOActionResults |
prepareErrorPage(com.webobjects.directtoweb.D2WContext d2wContext,
com.webobjects.directtoweb.ErrorPageInterface epi)
Returns an error page and sets the message to the key
__message . |
protected void |
prepareInspectPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.InspectPageInterface ipi,
String entityName) |
protected void |
prepareListPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.ListPageInterface lpi,
String entityName) |
protected void |
prepareQueryPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.QueryPageInterface qpi,
String entityName) |
com.webobjects.appserver.WOComponent |
previousPageFromRequest() |
NSDictionary |
primaryKeyFromRequest(com.webobjects.eocontrol.EOEditingContext ec,
String entityName) |
protected Object |
qualifierValueForAttribute(EOAttribute attribute,
String stringValue)
Overwrite for custom value conversion.
|
com.webobjects.eocontrol.EOArrayDataSource |
relationshipArrayFromRequest(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.eocontrol.EOClassDescription cd) |
com.webobjects.appserver.WOActionResults |
reportException(Exception ex)
Creates an error page with the given exception.
|
browser, canPerformActionWithPasswordKey, closeHTTPSessionAction, databaseConsoleAction, dumpCreatedKeysAction, editLocalizedFilesAction, emptyAction, eoAdaptorDebuggingAction, eventsAction, eventsSetupAction, flushComponentCacheAction, forbiddenResponse, forceGCAction, log4jAction, logoutAction, pageWithName, remoteShellAction, resetStatsAction, showOpenEditingContextLockTracesAction, statsAction, stopAction, systemPropertyAction, testAction
_componentAction, defaultAction, getSessionIDForRequest, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
takeValueForKeyPath, valueForKeyPath
protected static final Logger log
protected final Logger actionLog
public static final String primaryKeyKey
public static final String keyPathKey
public static final String fetchSpecificationKey
public static final String fetchLimitKey
public static final String usesDistinctKey
public static final String contextIDKey
public static final String createPrefix
public ERD2WDirectAction(com.webobjects.appserver.WORequest r)
r
- current requestprotected com.webobjects.eocontrol.EOEditingContext newEditingContext()
protected Object qualifierValueForAttribute(EOAttribute attribute, String stringValue)
attribute
- stringValue
- public com.webobjects.eocontrol.EOFetchSpecification fetchSpecificationFromRequest(String entityName)
public NSDictionary primaryKeyFromRequest(com.webobjects.eocontrol.EOEditingContext ec, String entityName)
public com.webobjects.appserver.WOComponent previousPageFromRequest()
public String keyPathFromRequest()
public com.webobjects.eocontrol.EOArrayDataSource relationshipArrayFromRequest(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.eocontrol.EOClassDescription cd)
protected void prepareEditPage(com.webobjects.directtoweb.D2WContext context, com.webobjects.directtoweb.EditPageInterface epi, String entityName)
protected void prepareInspectPage(com.webobjects.directtoweb.D2WContext context, com.webobjects.directtoweb.InspectPageInterface ipi, String entityName)
protected void prepareQueryPage(com.webobjects.directtoweb.D2WContext context, com.webobjects.directtoweb.QueryPageInterface qpi, String entityName)
protected void prepareEditRelationshipPage(com.webobjects.directtoweb.D2WContext context, com.webobjects.directtoweb.EditRelationshipPageInterface erpi, String entityName)
protected void prepareListPage(com.webobjects.directtoweb.D2WContext context, com.webobjects.directtoweb.ListPageInterface lpi, String entityName)
public com.webobjects.appserver.WOActionResults dynamicPageForActionNamed(String anActionName)
protected com.webobjects.appserver.WOActionResults prepareErrorPage(com.webobjects.directtoweb.D2WContext d2wContext, com.webobjects.directtoweb.ErrorPageInterface epi)
__message
.public com.webobjects.appserver.WOActionResults reportException(Exception ex)
ex
- protected boolean allowPageConfiguration(String pageConfiguration)
pageConfiguration
- public com.webobjects.appserver.WOActionResults forbiddenAction()
public com.webobjects.appserver.WOActionResults performActionNamed(String anActionName)
performActionNamed
in class ERXDirectAction
Copyright © 2002 – 2020 Project Wonder.