Hello,
I'm trying to rename a vApp template in that is stored in a Catalog. It ran fine but when I went to the VCloud director UI, the catalog name did not properly reflect that. Am I missing something here? Here is the code that I am using:
Catalog catalog = manager.searchForCatalog(vCloudClient, org, "CatalogA");
ReferenceType catalogRef = catalog.getCatalogItemRefByName("VApp Template to be renamed");
try {
CatalogItem catalogItem = CatalogItem.getCatalogItemByReference(vCloudClient, catalogRef);
CatalogItemType type = catalogItem.getResource();
type.setName("Name to change to");
catalogItem.updateCatalogItem(type);
} catch (VCloudException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}