Search in sources :

Example 21 with StorageSystemTypeRestRep

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);
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) StorageSystemType(com.emc.storageos.db.client.model.StorageSystemType) Path(javax.ws.rs.Path) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Example 22 with StorageSystemTypeRestRep

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;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

Example 23 with StorageSystemTypeRestRep

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;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) StringOption(util.StringOption) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

Example 24 with StorageSystemTypeRestRep

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;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) StringOption(util.StringOption) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

Example 25 with StorageSystemTypeRestRep

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;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) StringOption(util.StringOption) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

Aggregations

StorageSystemTypeRestRep (com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep)27 StorageSystemTypeList (com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)23 ArrayList (java.util.ArrayList)23 StringOption (util.StringOption)20 StorageSystemType (com.emc.storageos.db.client.model.StorageSystemType)1 HashMap (java.util.HashMap)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 EnumOption (util.EnumOption)1