com.scooterframework.builtin
Class RestfulCRUDController

java.lang.Object
  extended by com.scooterframework.builtin.CRUDController
      extended by com.scooterframework.builtin.RestfulCRUDController

public class RestfulCRUDController
extends CRUDController

RestfulCRUDController class serves as default controller class for restful resources.


Field Summary
 
Fields inherited from class com.scooterframework.builtin.CRUDController
DEFAULT_RECORD_CLASS, log
 
Constructor Summary
RestfulCRUDController()
           
 
Method Summary
protected  java.lang.String actionPath(java.lang.String action)
          Returns a restful action path.
protected  java.lang.String actionPath(java.lang.String action, ActiveRecord record)
          Returns a restful action path for an individual record.
protected  java.lang.String actionPath(java.lang.String action, java.lang.String restfulId)
          Returns a restful action path for an individual record.
protected  java.lang.String getDefaultViewFilesDirectoryName()
          Returns default view file directory name.
 
Methods inherited from class com.scooterframework.builtin.CRUDController
add, create, delete, edit, generateActiveRecordHomeInstance, generateActiveRecordInstance, index, list, paged_list, show, update, viewPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestfulCRUDController

public RestfulCRUDController()
Method Detail

actionPath

protected java.lang.String actionPath(java.lang.String action)
Returns a restful action path. This method overrides the same method in super class to enforce restful rules.

Overrides:
actionPath in class CRUDController
Returns:
a restful action path

actionPath

protected java.lang.String actionPath(java.lang.String action,
                                      ActiveRecord record)
Returns a restful action path for an individual record. This method overrides the same method in super class to enforce restful rules.

Overrides:
actionPath in class CRUDController
Returns:
a restful action path for an individual record

actionPath

protected java.lang.String actionPath(java.lang.String action,
                                      java.lang.String restfulId)
Returns a restful action path for an individual record. This method overrides the same method in super class to enforce restful rules.

Returns:
a restful action path for an individual record

getDefaultViewFilesDirectoryName

protected java.lang.String getDefaultViewFilesDirectoryName()
Returns default view file directory name.

Overrides:
getDefaultViewFilesDirectoryName in class CRUDController
Returns:
default view file directory name.