public abstract class ERD2WDirectAction extends ERXDirectAction
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryAllhttp://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryArticlehttp://localhost/cgi-bin/WebObjects/MyApp.woa/wa/QueryArticle?__fs=findNewArticleshttp://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/CreateArticlehttp://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ListArticle?__key=<userid>&__keypath=User.articleshttp://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=0http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/ErrorSomeStuff?__message=Some+TestallowPageConfiguration(String). Also, this
class is abstract, so you need to subclass it.NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
actionLog |
static java.lang.String |
contextIDKey
denotes the context ID for the previous page
|
static java.lang.String |
createPrefix |
static java.lang.String |
fetchLimitKey
fetchLimit for the fetchSpec.
|
static java.lang.String |
fetchSpecificationKey
fetchSpecificationKey is used to get the named fetchspec of a given object.
|
static java.lang.String |
keyPathKey
keyPathKey is used to get relationships of a given object.
|
protected static org.apache.log4j.Logger |
log
logging support
|
static java.lang.String |
primaryKeyKey
primaryKeyKey is used to identity a given object via it's primary key.
|
static java.lang.String |
usesDistinctKey
fetchLimit for the fetchSpec.
|
actionText_actionClasses, _context_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERD2WDirectAction(WORequest r)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowPageConfiguration(java.lang.String pageConfiguration)
Checks if a page configuration is allowed to render.
|
WOActionResults |
dynamicPageForActionNamed(java.lang.String anActionName) |
EOFetchSpecification |
fetchSpecificationFromRequest(java.lang.String entityName)
Retrieves and executes the fetch specification given in the request.
|
WOActionResults |
forbiddenAction()
Returns a response with a 401 (access denied) message.
|
java.lang.String |
keyPathFromRequest() |
protected EOEditingContext |
newEditingContext()
For edit pages, we always use a fresh editing context.
|
WOActionResults |
performActionNamed(java.lang.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,
java.lang.String entityName) |
protected void |
prepareEditRelationshipPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.EditRelationshipPageInterface erpi,
java.lang.String entityName) |
protected 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,
java.lang.String entityName) |
protected void |
prepareListPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.ListPageInterface lpi,
java.lang.String entityName) |
protected void |
prepareQueryPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.QueryPageInterface qpi,
java.lang.String entityName) |
WOComponent |
previousPageFromRequest() |
java.lang.Number |
primaryKeyFromRequest()
Deprecated.
|
NSDictionary |
primaryKeyFromRequest(EOEditingContext ec,
java.lang.String entityName) |
protected java.lang.Object |
qualifierValueForAttribute(EOAttribute attribute,
java.lang.String stringValue)
Overwrite for custom value conversion.
|
EOArrayDataSource |
relationshipArrayFromRequest(EOEditingContext ec,
EOClassDescription cd) |
WOActionResults |
reportException(java.lang.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, valueForKeyPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKeytakeValueForKeyPath, valueForKeyPathtakeValueForKey, valueForKeyvalidateTakeValueForKeyPath, validateValueForKeyprotected static final org.apache.log4j.Logger log
protected final org.apache.log4j.Logger actionLog
public static final java.lang.String primaryKeyKey
public static final java.lang.String keyPathKey
public static final java.lang.String fetchSpecificationKey
public static final java.lang.String fetchLimitKey
public static final java.lang.String usesDistinctKey
public static final java.lang.String contextIDKey
public static final java.lang.String createPrefix
public ERD2WDirectAction(WORequest r)
r - current requestprotected EOEditingContext newEditingContext()
protected java.lang.Object qualifierValueForAttribute(EOAttribute attribute, java.lang.String stringValue)
attribute - stringValue - public EOFetchSpecification fetchSpecificationFromRequest(java.lang.String entityName)
@Deprecated public java.lang.Number primaryKeyFromRequest()
primaryKeyFromRequest(EOEditingContext, String)public NSDictionary primaryKeyFromRequest(EOEditingContext ec, java.lang.String entityName)
public WOComponent previousPageFromRequest()
public java.lang.String keyPathFromRequest()
public EOArrayDataSource relationshipArrayFromRequest(EOEditingContext ec, EOClassDescription cd)
protected void prepareEditPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.EditPageInterface epi,
java.lang.String entityName)
protected void prepareInspectPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.InspectPageInterface ipi,
java.lang.String entityName)
protected void prepareQueryPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.QueryPageInterface qpi,
java.lang.String entityName)
protected void prepareEditRelationshipPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.EditRelationshipPageInterface erpi,
java.lang.String entityName)
protected void prepareListPage(com.webobjects.directtoweb.D2WContext context,
com.webobjects.directtoweb.ListPageInterface lpi,
java.lang.String entityName)
public WOActionResults dynamicPageForActionNamed(java.lang.String anActionName)
protected WOActionResults prepareErrorPage(com.webobjects.directtoweb.D2WContext d2wContext, com.webobjects.directtoweb.ErrorPageInterface epi)
__message.public WOActionResults reportException(java.lang.Exception ex)
ex - protected boolean allowPageConfiguration(java.lang.String pageConfiguration)
pageConfiguration - public WOActionResults forbiddenAction()
public WOActionResults performActionNamed(java.lang.String anActionName)
performActionNamed in class ERXDirectActionCopyright © 2002 – 2022 Project Wonder.