nitc :: CmdEntityList :: defaultinit
nitc $ CmdEntityList :: SELF
Type of this instance, automatically specialized in every classnitc :: commands_http $ CmdEntityList :: http_init
FIXME avoid linearization conflictnitc :: json_commands $ CmdEntityList :: to_json
Return a JSON Serializable representation ofself
results
nitc :: CmdEntity :: _mentity_name
Name of the mentity this command is aboutnitc :: CmdEntities :: _sorter
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: DocCommand :: cmd_filter
Return a new filter for that command execution.nitc :: DocCommand :: defaultinit
nitc :: CmdEntity :: defaultinit
nitc :: CmdEntityList :: defaultinit
nitc :: CmdList :: defaultinit
core :: Object :: defaultinit
nitc :: CmdEntities :: defaultinit
nitc :: DocCommand :: execute
nitc :: DocCommand :: filter=
ModelFilter to apply if anynitc :: DocCommand :: http_init
Init the command from an HTTPRequestcore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: CmdEntity :: mentity_name
Name of the mentity this command is aboutnitc :: CmdEntity :: mentity_name=
Name of the mentity this command is aboutcore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: DocCommand :: parser_init
Initialize the command from the CommandParser datanitc :: CmdList :: print_list
nitc :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
# A command about a MEntity that returns a list of mentities
abstract class CmdEntityList
super CmdEntity
super CmdEntities
autoinit(model, filter, mentity, mentity_name, limit, page, count, max)
redef fun init_command do
var res = init_mentity
if not res isa CmdSuccess then return res
res = init_results
if not res isa CmdSuccess then return res
sort
paginate
return res
end
end
src/doc/commands/commands_base.nit:317,1--333,3
redef class CmdEntityList
# FIXME avoid linearization conflict
redef fun http_init(req) do return super
end
src/doc/commands/commands_http.nit:147,1--150,3
redef class CmdEntityList
redef fun to_json do return super
end
src/doc/templates/json_commands.nit:60,1--62,3