Documentation Center

Synchronization Example (CWPostListView.jsp)

com.xyenterprise.PCMWeb.PCMSync cwSync = cwSession.getPCMSync(); 
com.xyenterprise.PCMtoolsAPI.PCMdata l_pPCMdata = null;
int iPerm = cwSession.getPCMSync().GetToolPermission(cmd, sIdPath,"Read Postlist");
try { 
  cwSync.SetTransactionOn();
  l_pPCMdata = cmd.Select(sIdPath); 
  data = cmd.ListPostlist(); 
} catch (Exception e) { 
  cwSync.SetTransactionOff(); 
  throw(e); 
} 
cwSync.SetTransactionOff(); 
…