use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageSystemTypeService method getStorageSystemType.
/**
* Show Storage System Type detail for given URI
*
* @param id
* the URN of Storage System Type
* @brief Show storage system type of storage
* @return Storage System Type details
*/
@GET
@Path("/{id}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public StorageSystemTypeRestRep getStorageSystemType(@PathParam("id") URI id) {
log.info("GET getStorageSystemType on Uri: " + id);
ArgValidator.checkFieldUriType(id, StorageSystemType.class, "id");
StorageSystemType storageType = queryResource(id);
ArgValidator.checkEntity(storageType, id, isIdEmbeddedInURL(id));
StorageSystemTypeRestRep storageTypeRest = new StorageSystemTypeRestRep();
return map(storageType, storageTypeRest);
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class BlockVirtualPools method getSupportAutoTierTypes.
private static List<String> getSupportAutoTierTypes() {
List<String> result = new ArrayList<String>();
StorageSystemTypeList types = StorageSystemTypeUtils.getAllStorageSystemTypes(StorageSystemTypeUtils.ALL_TYPE);
for (StorageSystemTypeRestRep type : types.getStorageSystemTypes()) {
if (type.isNative() || type.getIsSmiProvider() || !type.isSupportAutoTierPolicy()) {
continue;
}
result.add(type.getStorageTypeName());
}
return result;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getProvidersWithEMS.
public static List<StringOption> getProvidersWithEMS() {
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getIsElementMgr()) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
return allproviders;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getProvidersWithSecretKey.
public static Object getProvidersWithSecretKey() {
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getIsSecretKey()) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
return allproviders;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageSystemTypes method getProvidersWithSSL.
public static List<StringOption> getProvidersWithSSL() {
String alltypes = "all";
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(alltypes);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getIsDefaultSsl()) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
return allproviders;
}
Aggregations