use of com.emc.storageos.model.customconfig.CustomConfigList in project coprhd-controller by CoprHD.
the class CustomConfigService method getCustomConfigs.
/**
* List custom configurations.
*
* @brief List config names and ids
* @return A reference to a CustomConfigList.
*/
@GET
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@CheckPermission(roles = { Role.SYSTEM_ADMIN, Role.SYSTEM_MONITOR })
public CustomConfigList getCustomConfigs() {
CustomConfigList configList = new CustomConfigList();
List<URI> ids = _dbClient.queryByType(CustomConfig.class, true);
Iterator<CustomConfig> iter = _dbClient.queryIterativeObjects(CustomConfig.class, ids);
while (iter.hasNext()) {
configList.getCustomConfigs().add(toNamedRelatedResource(iter.next()));
}
return configList;
}
Aggregations