Home > Class Reference > ENSLIB namespace > %SYS.Portal.Resources

%SYS.Portal.Resources

persistent class %SYS.Portal.Resources extends %Library.Persistent, %XML.Adaptor, %SYSTEM.Help

SQL Table Name: %SYS_Portal.Resources

This class will allow a user to associate resources with pages in the system management portal.

Method Inventory (Including Private)

Methods (Including Private)

classmethod Export(FileName As %String = "CustomPortalResourcesExport.xml", ByRef NumExported As %Integer, Pages As %String = "*", Resources As %String = "*") as %Status
Export Custom Resource records to a file in XML format. The user must have USE permissions on the %Admin_Secure resource to perform the export.
Parameters:
  • Filename - Output file name.
  • NumExported (ByRef) - Returns the number of records exported.
  • Pages - Mask for the pages to return. See the List query for details on the format.
  • Resources - Mask for the resources to return. See the List query for details on the format.
classmethod Import(FileName As %String = "ResourcesExport.xml", ByRef NumImported As %Integer, Flags As %Integer = 0) as %Status
Import Custom Resource records from an XML file. The user must have USE permissions on the %Admin_Secure resource to perform the import.
Parameters:
  • FileName - Filename to import Custom Resource records from.
  • NumImported (ByRef) - Returns the number of records imported.
  • InvalidRecords
  • Flags - Control whether to import the records in the file. The supported bit flags at present are:
    • Bit 0 - Do not import records, just return the count.
    • Bit 1 - Do not require that the resource exists.
Note: On failure, no records will be imported.

Queries

query List(Pages As %String = "*", Resources As %String = "*")
Selects Page As %String, Resource As %String
List pages and associated resources. Note: the Page column lists the normalized page name.
Use the Pages and Resources arguments to restrict the list. The possible inputs for each argument is a comma-separated string with the following rules:
  • "*" - match all records.
  • "String,String1" - match all records that match an element in the string
  • "String*" - match all records starting with "String"
  • "String,String1*,String2" - match any record equal to "String" or "String2", or starting with "String1"
Note: This query may change in future versions.

Indexes

index (PageIndex on Page) [IdKey, Type = key];
Index methods: PageIndexCheck(), PageIndexDelete(), PageIndexExists(), PageIndexOpen(), PageIndexSQLCheckUnique(), PageIndexSQLExists(), PageIndexSQLFindPKeyByConstraint(), PageIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods (Including Private)