com.scooterframework.builtin.databrowser
Class RecordsController

java.lang.Object
  extended by com.scooterframework.builtin.databrowser.ApplicationController
      extended by com.scooterframework.builtin.databrowser.RecordsController

public class RecordsController
extends ApplicationController

RecordsController class handles record related access.


Constructor Summary
RecordsController()
           
 
Method Summary
 java.lang.String add()
           
 java.lang.String create()
           
 java.lang.String delete()
           
 java.lang.String edit()
           
 java.lang.String index()
           
protected  java.lang.String resourcePath()
          Returns a restful action path.
protected  java.lang.String resourcePath(java.lang.String restfulId)
          Returns a restful action path for an individual record.
 java.lang.String show()
           
 java.lang.String update()
           
protected  java.lang.String viewPath(java.lang.String action)
           
 
Methods inherited from class com.scooterframework.builtin.databrowser.ApplicationController
getDatabase, getTable, getTableKey, getView, getViewKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordsController

public RecordsController()
Method Detail

index

public java.lang.String index()

show

public java.lang.String show()

add

public java.lang.String add()

create

public java.lang.String create()

edit

public java.lang.String edit()

update

public java.lang.String update()

delete

public java.lang.String delete()

resourcePath

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

Returns:
a restful action path

resourcePath

protected java.lang.String resourcePath(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

viewPath

protected java.lang.String viewPath(java.lang.String action)