nitc $ CmdCatalogMaintaining :: SELF
Type of this instance, automatically specialized in every classnitc $ CmdCatalogMaintaining :: init_command
Initialize the commandnitc $ CmdCatalogMaintaining :: init_results
Initialize theresults
list
nitc :: json_commands $ CmdCatalogMaintaining :: to_json
Return a JSON Serializable representation ofself
results
nitc :: CmdCatalogPerson :: _person_name
Name of the person to retrievenitc :: CmdEntities :: _sorter
nitc :: CmdCatalogPackages :: _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 :: CmdCatalog :: defaultinit
nitc :: CmdCatalogPerson :: defaultinit
core :: Object :: defaultinit
nitc :: CmdList :: 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.
core :: 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 :: CmdCatalogPerson :: person_name
Name of the person to retrievenitc :: CmdCatalogPerson :: person_name=
Name of the person to retrievenitc :: CmdList :: print_list
nitc :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
# Retrieve the packages maintained by a person
class CmdCatalogMaintaining
super CmdCatalogPerson
super CmdCatalogPackages
autoinit(model, catalog, filter, person, person_name, limit, page, count, max)
redef fun init_command do return super
redef fun init_results do
if results != null then return new CmdSuccess
var res = super
if not res isa CmdSuccess then return res
var person = self.person.as(not null)
if not catalog.maint2proj.has_key(person) then return res
results = catalog.maint2proj[person]
return res
end
end
src/doc/commands/commands_catalog.nit:288,1--307,3