Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / %iKnow.Shell
Private  Storage   

%iKnow.Shell


Commands available ? show help appendable to each command to give more info about commmand > increment page and repeat last query < decrement page and repeat last query quit close shell use use specified object use domain [name|id] use domain use device [devicename|0] use specified device for output (0 is terminal output) use filter [filtername] use specified filter use page [pagenumber] use pagenumber for queries use pagesize [pagesize] use pagesize for queries filter filter operations filter entity filter for entity(ies) filter crc filter for crc(s) filter path filter for path(s) filter source filter for source(s) filter metadata filter for metadata filter query filter based on output of a query filter AND group AND filter for filters filter OR group OR filter for filters filter NOT negated filter --> all filter operations end in "AS [filtername]" list list specified objects list domain list all available domains list filter list all available filters list metadata list all available metadata fields list source list all available sources show show info about specified object show domain show current selected domain show device show the current output device show filter show current selected filter show page show the current page show pagesize show the current pagesize show source [extid|srcid] show specified source show summary [extid|srcid] [length] show specified summary show metadata [extid|srcid] show all metadata values for specified source show metaddata [extid|srcid] [field|id] show the metadata value for the field of the specified source reset reset all states (current filter = "", device = 0, page = 1, pagesize = 10), keeping the selected domain top entities shows all top entities top crc shows all top crcs similar shows all similar entities related shows all related entities run [filename] run the script found in filename line by line

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
4 16


Summary


Properties
Filters LastCommand RunState

Methods
%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject GetCommand GetFilter GetFilters
NextCommand OutputDescription OutputError OutputInfo
OutputResult RepeatLastCommand Run RunCommand
SaveFilter


Properties


• property Commands  [ Private,MultiDimensional ];
Array of available commands
• property Filters  [ MultiDimensional ];
Array of available filters
• property LastCommand  [ MultiDimensional ];
Last executed command
• property RunState as %iKnow.Shell.RunState;
Current runstate

Methods


• private method %OnNew() as %Status
This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

• private method BuildCommands()
• method GetCommand(command As %String) as %iKnow.Shell.Command
• method GetFilter(filterName As %String) as %String
• method GetFilters(ByRef filters)
• method NextCommand(command As %iKnow.Shell.Command = "") as %iKnow.Shell.Command
• method OutputDescription(ByRef description)
• method OutputError(errorString As %String)
• method OutputInfo(ByRef info)
• method OutputResult(ByRef result)
• private method ReadInput(ByRef input)
• method RepeatLastCommand()
• method Run()
• method RunCommand(command As %String, ByRef args)
• private method RunLoop()
• method SaveFilter(filterName As %String, filterValue As %String)