Get the Component name from Changeset
Hello,
I have a Componetn associated to changeset.
Now I need to get the Component name from the changeset not the .getItemId()
I have managed to fetch the IComponentHandle object.
I have been searching for a way to get the Component name from IComponentHandle. ... Can you help me into that !
IComponentHandle component = changeSet.getComponent();
IConfiguration configuration = workspaceConnection.configuration(component);
Thanks in advance,
I have a Componetn associated to changeset.
Now I need to get the Component name from the changeset not the .getItemId()
I have managed to fetch the IComponentHandle object.
I have been searching for a way to get the Component name from IComponentHandle. ... Can you help me into that !
IComponentHandle component = changeSet.getComponent();
IConfiguration configuration = workspaceConnection.configuration(component);
Thanks in advance,
Accepted answer
You should be able to use the IRepositoryItemService to get the IComponent object. From there you can get the name. Hope this helps.
IRepositoryItemService fRepositoryItemService = getService(IRepositoryItemService.class);
IComponent c = (IComponent)fRepositoryItemService.fetchItem(changeSet.getComponent(), IRepositoryItemService.COMPLETE);