cancel
Showing results for 
Search instead for 
Did you mean: 

KM API : Setting "Lifetime" & Other Properties via KM API

Amey-Mogare
Contributor
0 Kudos

Hi,

I am creating folders / external links inside a KM folder using KM API in Web Dynpro.

In Portal KM, I can see some standard properties available for each resource..such as "Lifetime" property.

Can anybody tell me how do I set this property for newly created resource?


pathRID = RID.getRID(p_parent);
collection = (ICollection)resourceFactory.getResource(pathRID, resourceContext);
		
//Create Folder
if(p_FolderOrLink == 1){
		collection.createCollection(p_childname, null);
}
//Create Ext Link
else if(p_FolderOrLink == 2){
        collection.createLink(p_childname,
                                               com.sapportals.wcm.util.uri.URL.getInstance(p_linkValue),
                                                LinkType.EXTERNAL,
                                               null);
}

Please help.

Thanks and regards,

Amey Mogare

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (0)