The GetMetadataObjects
method gets a list of all metadata objects of the metadata type specified
in the TYPE parameter from the repository specified in the REPOSID
parameter. The default behavior is to get
Identifying Metadata for each metadata object.
Flags enable you to
get additional properties and to expand or filter the objects that
are retrieved.
-
OMI_INCLUDE_SUBTYPES expands the
request to get subtypes of the specified metadata type.
-
OMI_GET_METADATA enables you to
execute a GetMetadata call for each object that is returned by the
GetMetadataObjects request.
-
The OMI_DEPENDENCY_USES and OMI_DEPENDENCY_USED_BY
flags specify additional repositories from which to get objects.
-
The OMI_XMLSELECT flag and <XMLSELECT>
element enable you to filter the objects that are returned by specifying
search criteria.
The default behavior
of the GetMetadataObjects method is to get objects of the specified
metadata type from the specified repository. Set OMI_DEPENDENCY_USES
to get metadata objects from all public repositories (the foundation
and all custom repositories) in the method results, and to get metadata
objects from the specified repository. Set OMI_DEPENDENCY_USED_BY
only if you want to get metadata objects of the specified metadata
type from all project repositories in the method results, in addition
to metadata objects from the specified repository. Setting both flags
will return metadata objects from all repositories that are registered
in the SAS Metadata Server (foundation, custom, and project).
When the GetMetadataObjects
method is issued in the SAS namespace, the REPOSID parameter is required,
unless the OMI_DEPENDENCY_USED_BY flag, the OMI_DEPENDENCY_USES flag,
or both is specified. When you specify a REPOSID value in addition
to one or both of the flags, GetMetadataObjects gets metadata objects
first from the repository specified in the REPOSID parameter, and
then it gets metadata objects from the repositories specified by the
flags. A request that specifies to get objects from all registered
repositories returns the specified repository first, followed by the
foundation repository, followed by custom repositories in the order
in which they were registered, followed by project repositories in
the order in which they were registered.
When the GetMetadataObjects
method is issued in the REPOS namespace, it ignores the REPOSID parameter
and searches the SAS Repository Manager.
When using GetMetadataObjects
to list common and shared objects, use the metadata type and TypeName
value indicated in the object’s type definition in the SAS
type dictionary to identify the objects to retrieve.
For more information
about the SAS type dictionary, see Using Interfaces that Read and Write Metadata in SAS 9.3. Specify the
metadata type in the TYPE parameter, set the OMI_XMLSELECT flag, and
specify the TypeName value in the <XMLSELECT> element in the
OPTIONS parameter as follows:
<XMLSELECT search="@PublicType=’typename’"/>
Several
common and shared objects are represented in the SAS Metadata Repository
by the same metadata type. Use of the TypeName value filters the request
to return only objects of the specified type.
Use the new GetMetadata
OMI_FULL_OBJECT flag and GetMetadataObjects OMI_GET_METADATA flag
with caution. The flags can return a lot of information.
New template features
that are available in GetMetadata are also available in GetMetadataObjects
when you set the OMI_GET_METADATA flag and the OMI_TEMPLATE flag in
a GetMetadataObjects request.
For more information,
see Using Templates.