コード例 #1
0
 /**
  * delete a content. It is registered to contentManager service
  *
  * @param con a Connection
  * @param pubPK the identifiant of the content to unregister
  */
 public void deleteSilverContent(Connection con, PublicationPK pubPK)
     throws ContentManagerException {
   int contentId = getContentManager().getSilverContentId(pubPK.getId(), pubPK.getComponentName());
   if (contentId != -1) {
     SilverTrace.info(
         "kmelia",
         "KmeliaContentManager.deleteSilverContent()",
         "root.MSG_GEN_ENTER_METHOD",
         "pubId = " + pubPK.getId() + ", contentId = " + contentId);
     getContentManager().removeSilverContent(con, contentId, pubPK.getComponentName());
   }
 }