public interface StandardsService
Modifier and Type | Method and Description |
---|---|
Set<String> |
exportStandardToDataSets(String standardId,
EntityStatus standardStatus,
String version,
BatchFileCreateInfo info)
Exports a standard to a location in the repository or your workspace.
|
StandardDescriptor |
getStandardDescriptorByNameAndStatus(String name,
EntityStatus status)
Gets standard descriptor by name and
EntityStatus . |
Set<StandardDescriptor> |
getStandardDescriptorsByStatus(EntityStatus status)
Gets standard descriptors by
EntityStatus . |
Set<String> exportStandardToDataSets(String standardId, EntityStatus standardStatus, String version, BatchFileCreateInfo info) throws StandardNotFoundException, ExportException
path
variable in BatchFileCreateInfo
and
these suffixes:
For example, if the path
is /YOURORG/Files/s1, s1 is used as a prefix, and the class columns data
set is created with name s1_ccol.sas7bdat.
Note: Some of the data sets might be empty.
standardId
- The identifier of the standard.standardStatus
- The EntityStatus
of the standard.version
- The version of the published standard to export. The default version is the latest. If
the version is provided, the status is ignored because only published versions can be exported.info
- The method to add the exported data sets.StandardNotFoundException
- Thrown when the standard does not exist.ExportException
- Thrown when there is an issue exporting the standard.Set<StandardDescriptor> getStandardDescriptorsByStatus(EntityStatus status)
EntityStatus
. If you do not have the Manage Standards global privilege, only
standards with a PUBLISHED status are returned.status
- The EntityStatus
of the standard.StandardDescriptor getStandardDescriptorByNameAndStatus(String name, EntityStatus status) throws StandardNotFoundException
EntityStatus
. If EntityStatus is Published, the latest version is
returned. To get a standard with a status other than Published, the
GlobalPrivileges.PRIVILEGE_MANAGE_STANDARDS
privilege is required.name
- The name of the standard.status
- The EntityStatus
of the standard.StandardNotFoundException
- Thrown when the standard does not exist.<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>