Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic Portal 10.3 CMS

 
Amit Mondal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I'm novice in weblogic portal 10.3.And I'm getting problem to update CMS node property using API.I need your help regarding this matter.
And this my code:

---------------------------------------------------------------------------------------
IVersionManager mgr = ContentManagerFactory.getVersionManager();
ContentContext cc = new ContentContext();
Authentication.login("weblogic" , "weblogic" ,request , response);
ISortableFilterablePagedList<Node> result = iSearchManager.search(cc, search);
Iterator<Node> resultIterator = result.iterator();
while (resultIterator.hasNext()) {
Node node = (Node) resultIterator.next();

if(title.equals("CCR")){
ID nodeId = node.getId();
Value value = new Value("Test");
node.getProperty("description").setValue(value);
Property[] properties = node.getProperties();
if(!mgr.isCheckedOut(cc, nodeId)){
mgr.checkOut(cc, nodeId, null);
int wfSatatus = Workflow.PUBLISHED;
VersionableContent versionableContent = new VersionableContent(wfSatatus, "", properties);
mgr.save(cc,node.getObjectClassId(),versionableContent);
mgr.checkIn(cc, nodeId, versionableContent);
}
------------------------------------------------------------------------------------------

Thanks
Amit
 
Marisol Redondo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you find the solution for this problem?.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic