Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get latest version of asset

Is there any way we can get latest version out of RAM?

There is session.getAsset(new AssetIdentification(String GUID, String Version) ) but I don't see any method in RAM API which will give latest version automatically, it always aspect programmer to provide the version to get the asset (what if user doesn't know latest version)...

PS : its for RAM 7.2

0 votes



3 answers

Permanent link
See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

0 votes


Permanent link
I am aware that, API mention method session.getAsset(new AssetIdentification(GUID)); (The link you mentioned also show it, but if you open class API, that does not contain this method... Refer http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/topic/com.ibm.ram.api.doc/topics/com/ibm/ram/common/data/AssetIdentification.html?resultof=%22AssetIdentification%22%20%22assetidentif%22)

I even tried it before posting question... But it is not supported in actual... you can try it out in some program..



See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

0 votes


Permanent link
Use session.getAsset(new AssetIdentification(GUID, "*");

I am aware that, API mention method session.getAsset(new AssetIdentification(GUID)); (The link you mentioned also show it, but if you open class API, that does not contain this method... Refer http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/topic/com.ibm.ram.api.doc/topics/com/ibm/ram/common/data/AssetIdentification.html?resultof=%22AssetIdentification%22%20%22assetidentif%22)

I even tried it before posting question... But it is not supported in actual... you can try it out in some program..



See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 03 '10, 9:43 a.m.

Question was seen: 6,057 times

Last updated: Sep 03 '10, 9:43 a.m.

Confirmation Cancel Confirm