Project Wonder 5.0

er.rest.routes
Class ERXUnsafeReadOnlyRouteController<T extends com.webobjects.eocontrol.EOEnterpriseObject>

java.lang.Object
  extended by com.webobjects.appserver.WOAction
      extended by com.webobjects.appserver.WODirectAction
          extended by er.rest.routes.ERXRouteController
              extended by er.rest.routes.ERXDefaultRouteController
                  extended by er.rest.routes.ERXUnsafeReadOnlyRouteController<T>
Type Parameters:
T - the type of your entity
All Implemented Interfaces:
com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation
Direct Known Subclasses:
ERXUnsafeReadWriteRouteController

public class ERXUnsafeReadOnlyRouteController<T extends com.webobjects.eocontrol.EOEnterpriseObject>
extends ERXDefaultRouteController

If you just want to quickly drop in a controller to test your entities, you can use or extend ERXUnsafeReadOnlyRouteController. This provides a default read-only interface to the attributes and to-one relationships of the specified entity.

 routeRequestHandler.addDefaultRoutes(YourEntity.ENTITY_NAME, ERXUnsafeReadOnlyRouteController.class);
 

Author:
mschrag

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
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
 
Field Summary
 
Fields inherited from class er.rest.routes.ERXRouteController
log
 
Fields inherited from class com.webobjects.appserver.WODirectAction
actionText
 
Fields inherited from class com.webobjects.appserver.WOAction
_actionClasses, _context
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
ERXUnsafeReadOnlyRouteController(com.webobjects.appserver.WORequest request)
           
 
Method Summary
protected  boolean allowUpdates()
           
 com.webobjects.appserver.WOActionResults createAction()
          Called when you want to commit a new instance.
 com.webobjects.appserver.WOActionResults destroyAction()
          Called when you want to delete an instance.
 com.webobjects.appserver.WOActionResults indexAction()
          Called when you want to list instances.
 com.webobjects.appserver.WOActionResults newAction()
          Called when you need an uncommitted blank new instance.
protected  T object()
           
protected  ERXKeyFilter queryFilter()
           
 com.webobjects.appserver.WOActionResults showAction()
          Called when you want to view a single instance.
protected  ERXKeyFilter showFilter()
           
 com.webobjects.appserver.WOActionResults updateAction()
          Called when you want to update an instance (or instances).
protected  ERXKeyFilter updateFilter()
           
 
Methods inherited from class er.rest.routes.ERXRouteController
_canSetHeaderForActionResults, _controllersForRequest, _disposeControllersForRequest, _registerControllerForRequest, _setContext, _setEntityName, _setFormat, _setHeaderForActionResults, _setRequestContent, _setRequestContent, _setRequestHandler, _setRequestNode, _setRoute, _setRouteKeys, _setRouteObjects, _takeRouteParametersFromRequest, accessControlAllowOrigin, accessControlAllowRequestHeaders, accessControlAllowRequestMethods, accessControlMaxAage, allowWindowNameCrossDomainTransport, checkAccess, containsRouteKey, controller, controller, create, create, create, create, defaultFormat, delegate, dispose, editingContext, entityName, errorResponse, errorResponse, format, headAction, includeOptional, isAutomaticHtmlRoutingEnabled, isKeyPathRequested, isKeyPathRequested, isSchemaRequest, json, json, json, json, newEditingContext, newEditingContext, object, object, object, object, options, optionsAction, pageNameForAction, pageWithName, performActionNamed, performActionNamed, performUnknownAction, plist, plist, plist, plist, requestHandler, requestNode, response, response, response, response, response, response, response, response, response, response, responseContentForActionNamed, responseNodeForActionNamed, route, routeKeys, routeObjectForKey, routeObjects, routeObjects, routeStringForKey, schemaResponse, schemaResponseForEntityNamed, setOptions, shouldFailOnMissingHtmlPage, stringResponse, toString, update, update, xml, xml, xml, xml
 
Methods inherited from class com.webobjects.appserver.WODirectAction
_componentAction, defaultAction, getSessionIDForRequest, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray
 
Methods inherited from class com.webobjects.appserver.WOAction
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
takeValueForKeyPath, valueForKeyPath
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding
takeValueForKey, valueForKey
 
Methods inherited from interface com.webobjects.foundation.NSValidation
validateTakeValueForKeyPath, validateValueForKey
 

Constructor Detail

ERXUnsafeReadOnlyRouteController

public ERXUnsafeReadOnlyRouteController(com.webobjects.appserver.WORequest request)
Method Detail

allowUpdates

protected boolean allowUpdates()

object

protected T object()

queryFilter

protected ERXKeyFilter queryFilter()

showFilter

protected ERXKeyFilter showFilter()

updateFilter

protected ERXKeyFilter updateFilter()

createAction

public com.webobjects.appserver.WOActionResults createAction()
Description copied from class: ERXDefaultRouteController
Called when you want to commit a new instance.

Specified by:
createAction in class ERXDefaultRouteController
Returns:
the response

updateAction

public com.webobjects.appserver.WOActionResults updateAction()
Description copied from class: ERXDefaultRouteController
Called when you want to update an instance (or instances).

Specified by:
updateAction in class ERXDefaultRouteController
Returns:
the response

destroyAction

public com.webobjects.appserver.WOActionResults destroyAction()
                                                       throws java.lang.Throwable
Description copied from class: ERXDefaultRouteController
Called when you want to delete an instance.

Specified by:
destroyAction in class ERXDefaultRouteController
Returns:
the response
Throws:
java.lang.Throwable - if something goes wrong

newAction

public com.webobjects.appserver.WOActionResults newAction()
                                                   throws java.lang.Throwable
Description copied from class: ERXDefaultRouteController
Called when you need an uncommitted blank new instance.

Specified by:
newAction in class ERXDefaultRouteController
Returns:
the response
Throws:
java.lang.Throwable - if something goes wrong

showAction

public com.webobjects.appserver.WOActionResults showAction()
Description copied from class: ERXDefaultRouteController
Called when you want to view a single instance.

Specified by:
showAction in class ERXDefaultRouteController
Returns:
the response

indexAction

public com.webobjects.appserver.WOActionResults indexAction()
Description copied from class: ERXDefaultRouteController
Called when you want to list instances.

Specified by:
indexAction in class ERXDefaultRouteController
Returns:
the response

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.