ListNamespaces

myStoreModule.ListNamespaces(storeName[, isUserSpecific][, timeoutInSeconds]);

myStoreModuleThe name of the Store module instance
storeNameA STRING naming the store containing the namespaces you are interested in; set this to an empty string to reference the default store in the cluster, if one has been defined; REQUIRED
isUserSpecificIf TRUE, the system will look only for private keys; if FALSE then the system will look for global keys; OPTIONAL, defaults to FALSE
timeoutInSecondsThe number of seconds to wait for the underlying SOAPCALL to complete; set to zero to wait forever; OPTIONAL, defaults to zero
Return:A ListNamespacesResponseRec RECORD

The ListNamespaces function gets a list of namespaces defined in the specified store.

Example:

IMPORT STD;

myStore := STD.System.Store();

// List all namespaces in the default store
namespaces := myStore.ListNamespaces('');
OUTPUT(namespaces.namespaces);

// List namespaces in a specific store
appNamespaces := myStore.ListNamespaces('MyApplicationStore');
OUTPUT(appNamespaces.namespaces);

// List user-specific namespaces
privateNamespaces := myStore.ListNamespaces('MyPrivateStore', TRUE);
OUTPUT(privateNamespaces.namespaces);

See Also: ListNamespacesResponseRec