Home > Class Reference > ENSLIB namespace > Ens.ServiceRegistry.Public.API

Ens.ServiceRegistry.Public.API

class Ens.ServiceRegistry.Public.API extends %Library.RegisteredObject

Method Inventory (Including Private)

Parameters

parameter DOMAIN = Ensemble;

Methods (Including Private)

classmethod CloneService(pID As %String, pName As %String, pDomain As %String, pVersion As %String) as %Status [ Language = objectscript ]
classmethod Count() as %Integer [ Language = objectscript ]
classmethod DeleteAction(pID) as %Status [ Language = objectscript ]
classmethod DeleteAttribute(pID) as %Status [ Language = objectscript ]
classmethod DeleteContact(pID) as %Status [ Language = objectscript ]
classmethod DeleteFile(pID) as %Status [ Language = objectscript ]
classmethod DeleteService(pID As %String) as %String [ Language = objectscript ]
classmethod ExistsAction(pID) as %Boolean [ Language = objectscript ]
classmethod ExistsAttribute(pID) as %Boolean [ Language = objectscript ]
classmethod ExistsContact(pID) as %Boolean [ Language = objectscript ]
classmethod ExistsFile(pID) as %Boolean [ Language = objectscript ]
classmethod ExistsService(pName As %String, pDomain As %String, pVersion As %String) as %Boolean [ Language = objectscript ]
classmethod ListServices(Output tStreamString) [ Language = objectscript ]
classmethod PerformSearch(ByRef pSearchCriteria, ByRef pExtendedCriteria, pStatus As %Status = $$$OK) as %SQL.Statement [ Language = objectscript ]
Search the Registry for services which match the provided set of pSearchCriteria and pExtendedCriteria. Both sets of criteria will take the form of arrays.

Allowed subscripts for pSearchCriteria are:
  • 'Version' as a single version
  • 'Visibility' as a boolean - 1 for visible to users of the Registry, 0 for visible only to the administrator
  • 'WordMatch' as a string of text contained in a service's name domain description endpoint or topics list
  • 'AllowedValues' as a single role which would be among those permitted to see each service in the result set
  • 'Protocols' which has subscripts 'File','FTP','HL7','HTTP','REST','SOAP','SQL','X12', and 'Other' as boolean values
  • 'Stages' which has subscripts 'Concept','Defunct','Deprecated','Development','Live','Staging', and 'Test' as boolean values
Any extra subscripts will be ignored.

The pExtendedCriteria array takes the following form:
  • pExtendedCriteria(Criterion) = Type, where Criterion is a number and Type is either 'AND' or 'OR'
  • pExtendedCriteria(Criterion,Condition) = Type, where Condition is a number and Type is 'IF','AND', or 'OR'. The first condition in a criterion set should be of type 'IF'.
  • pExtendedCriteria(Criterion,Condition,"attr") is the name of an attribute
  • pExtendedCriteria(Criterion,Condition,"op") is the name of a comparison operation to be performed on the attribute. Allowed operations are =,!=,>,<,>=,<=,CONTAINS,DOESNOTCONTAIN
  • pExtendedCriteria(Criterion,Condition,"val") is the value which the attribute's value is being compared to.

classmethod SaveService(pProxy As %ZEN.proxyObject) as %Status [ Language = objectscript ]
classmethod UserHasSearchPermissions() as %Boolean [ Language = objectscript ]
classmethod UserIsRegistryManager() as %Boolean [ Language = objectscript ]

Inherited Members

Inherited Methods (Including Private)