RestfulAction

abstract class RestfulAction[T <: Entity[_]] extends ActionSupport with EntityAction[T] with ExportSupport[T] with ImportSupport[T]
trait ImportSupport[T]
trait ExportSupport[T]
trait EntityAction[T]
trait EntitySupport[T]
trait ActionSupport
trait Logging
trait ParamSupport
trait RouteSupport
trait MessageSupport
class Object
trait Matchable
class Any

Value members

Concrete methods

@mapping(value = "{id}/edit")
def edit(@param("id") id: String): View
@mapping(value = "new", view = "new,form")
def editNew(): View
protected def editSetting(entity: T): Unit
def index(): View
protected def indexSetting(): Unit
@mapping(value = "{id}")
def info(@param("id") id: String): View
@mapping(method = "delete")
def remove(): View
@ignore
protected def removeAndRedirect(entities: Seq[T]): View
@mapping(method = "post")
def save(): View
@ignore
protected def saveAndRedirect(entity: T): View
def search(): View
@mapping(value = "{id}", method = "put")
def update(@param("id") id: String): View

Inherited methods

final protected def attribute[T](name: String, clazz: Class[T]): T
Inherited from:
ParamSupport
final protected def attribute(name: String): Any
Inherited from:
ParamSupport
@ignore
protected def configExport(setting: ExportSetting): Unit
Inherited from:
ExportSupport
protected def configImport(setting: ImportSetting): Unit
Inherited from:
ImportSupport
protected def convertId[ID](entityType: EntityType, id: String): ID
Inherited from:
EntityAction
@mapping("export")
def exportData(): View

导出

导出

Inherited from:
ExportSupport
@ignore
final protected def forward(action: To, message: String): View
Inherited from:
RouteSupport
@ignore
final protected def forward(action: To): View
Inherited from:
RouteSupport
@ignore
final protected def forward(view: String, message: String): PathView
Inherited from:
RouteSupport
@ignore
final protected def forward(view: String): PathView
Inherited from:
RouteSupport
final protected def get[T](name: String, clazz: Class[T]): Option[T]
Inherited from:
ParamSupport
final protected def get[T](paramName: String, defaultValue: T): T
Inherited from:
ParamSupport
final protected def get(paramName: String): Option[String]
Inherited from:
ParamSupport
final protected def getAll[T : ClassTag](paramName: String, clazz: Class[T]): Iterable[T]
Inherited from:
ParamSupport
final protected def getAll(paramName: String): Iterable[Any]
Inherited from:
ParamSupport
final protected def getBoolean(name: String, defaultValue: Boolean): Boolean
Inherited from:
ParamSupport
final protected def getBoolean(name: String): Option[Boolean]
Inherited from:
ParamSupport
final protected def getDate(name: String): Option[LocalDate]
Inherited from:
ParamSupport
final protected def getDateTime(name: String): Option[LocalDateTime]
Inherited from:
ParamSupport
protected def getEntity[E](entityClass: Class[E], simpleName: String): E
Inherited from:
EntityAction
final protected def getFloat(name: String): Option[Float]
Inherited from:
ParamSupport
final protected def getId[E](name: String, clazz: Class[E]): Option[E]

Get entity's id from shortname.id,shortnameId,id

Get entity's id from shortname.id,shortnameId,id

Inherited from:
EntitySupport
protected def getId(name: String): Option[String]
Inherited from:
EntitySupport
final protected def getInstant(name: String): Option[Instant]
Inherited from:
ParamSupport
final protected def getInt(name: String, defaultValue: Int): Int
Inherited from:
ParamSupport
final protected def getInt(name: String): Option[Int]
Inherited from:
ParamSupport
final protected def getLong(name: String): Option[Long]
Inherited from:
ParamSupport
protected def getModel[E](entityType: EntityType, id: Any): E
Inherited from:
EntityAction
protected def getModel(id: Any): T
Inherited from:
EntityAction
protected def getModels[E](entityType: EntityType, ids: Iterable[_]): Seq[E]
Inherited from:
EntityAction
final protected def getPageLimit: PageLimit

从request的参数或者cookie中(参数优先)取得分页信息

从request的参数或者cookie中(参数优先)取得分页信息

Inherited from:
EntityAction
protected def getQueryBuilder: OqlBuilder[T]
Inherited from:
EntityAction
final protected def getShort(name: String): Option[Short]
Inherited from:
ParamSupport
final protected def id[E](name: String, clazz: Class[E]): E

Get entity's id from shortname.id,shortnameId,id

Get entity's id from shortname.id,shortnameId,id

Inherited from:
EntitySupport
@ignore
protected def id(name: String): String
Inherited from:
EntitySupport
final protected def ids[X](name: String, clazz: Class[X]): List[X]

Get entity's id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from:
EntitySupport
def importData(): View

导入信息

导入信息

Inherited from:
ImportSupport
def importForm(): View
Inherited from:
ImportSupport
final protected def intId(shortName: String): Int
Inherited from:
EntitySupport
final protected def intIds(shortName: String): List[Int]

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from:
EntitySupport
final protected def longId(shortName: String): Long
Inherited from:
EntitySupport
final protected def longIds(shortName: String): List[Long]

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Get entity's long id array from parameters shortname.id,shortname.ids,shortnameIds

Inherited from:
EntitySupport
final protected def populate[E <: Entity[_]](entity: E, params: Map[String, Object]): E
Inherited from:
EntityAction
final protected def populate[E <: Entity[_]](obj: E, simpleName: String): E
Inherited from:
EntityAction
final protected def populate[E <: Entity[_]](clazz: Class[E], simpleName: String): E

将request中的参数设置到clazz对应的bean。

将request中的参数设置到clazz对应的bean。

Inherited from:
EntityAction
final protected def populate[E <: Entity[_]](clazz: Class[E]): E
Inherited from:
EntityAction
final protected def populateConditions(builder: OqlBuilder[_], exclusiveAttrNames: String): Unit
Inherited from:
EntityAction
final protected def populateConditions(builder: OqlBuilder[_]): Unit
Inherited from:
EntityAction
protected def populateEntity[E](entityClass: Class[E], simpleEntityName: String): E
Inherited from:
EntityAction
protected def populateEntity[E <: Entity[_]](entityType: EntityType, simpleEntityName: String): E
Inherited from:
EntityAction
protected def populateEntity(): T
Inherited from:
EntityAction
final protected def put(key: String, value: Any): Unit
Inherited from:
ParamSupport
@ignore
final protected def redirect(action: To, message: String): View
Inherited from:
RouteSupport
@ignore
final protected def redirect(method: String, params: String, message: String): View
Inherited from:
RouteSupport
@ignore
final protected def redirect(method: String, message: String): View
Inherited from:
RouteSupport
@ignore
final protected def redirect(method: String): View
Inherited from:
RouteSupport
protected def remove[E](obj: E): Unit
Inherited from:
EntityAction
protected def remove[E](list: Seq[E]): Unit
Inherited from:
EntityAction
protected def saveOrUpdate[E](obj: E): Unit
Inherited from:
EntityAction
protected def saveOrUpdate[E](list: Iterable[E]): Unit
Inherited from:
EntityAction
@ignore
protected def simpleEntityName: String
Inherited from:
EntitySupport
@ignore
final protected def to(uri: String): To
Inherited from:
RouteSupport
@ignore
final protected def to(uri: String, params: String): ToURI
Inherited from:
RouteSupport
@ignore
final protected def to(clazz: Class[_], method: String, params: String): ToClass
Inherited from:
RouteSupport
@ignore
final protected def to(clazz: Class[_], method: String): ToClass
Inherited from:
RouteSupport
@ignore
final protected def to(obj: Object, method: String, params: String): ToClass
Inherited from:
RouteSupport
@ignore
final protected def to(obj: Object, method: String): ToClass
Inherited from:
RouteSupport

Inherited fields

@noreflect
val entityClass: Class[T]
Inherited from:
EntitySupport
var entityDao: EntityDao
Inherited from:
EntityAction
protected val logger: Logger
Inherited from:
Logging