Extraire des types d'actifs existants

Pour obtenir du référentiel un objet type d'actif (RAMAssetType), utilisez les méthodes RAMSession.getAllAssetTypes() ou RAMSession.getAssetType(String).

                //Extraire un type d'actif par son nom
                RAMAssetType assetType = session.getAssetType("Mon type d'actif");

                //Extraire le type d'actif par URI
                assetType = session.getAssetTypeByURI(
                     "http://ramsrvr.example.com:8080/com.ibm.ram.repository.web/classif/assetTypesSchema.xmi#mynewassettype10");
        
                //Extraire tous les types d'actifs
                RAMAssetType[] assetTypes = session.getAllAssetTypes();

Commentaires