/**
  * add a new content. It is registered to contentManager service
  *
  * @param con a Connection
  * @param pubDetail the content to register
  * @param userId the creator of the content
  * @return the unique silverObjectId which identified the new content
  */
 public int createSilverContent(Connection con, PublicationDetail pubDetail, String userId)
     throws ContentManagerException {
   SilverContentVisibility scv =
       new SilverContentVisibility(
           pubDetail.getBeginDate(), pubDetail.getEndDate(), isVisible(pubDetail));
   SilverTrace.info(
       "kmelia",
       "KmeliaContentManager.createSilverContent()",
       "root.MSG_GEN_ENTER_METHOD",
       "SilverContentVisibility = " + scv.toString());
   return getContentManager()
       .addSilverContent(
           con, pubDetail.getPK().getId(), pubDetail.getPK().getComponentName(), userId, scv);
 }
 /**
  * update the visibility attributes of the content. Here, the type of content is a
  * PublicationDetail
  *
  * @param pubDetail the content
  * @param silverObjectId the unique identifier of the content
  */
 public void updateSilverContentVisibility(PublicationDetail pubDetail, boolean isVisible)
     throws ContentManagerException {
   int silverContentId =
       getContentManager()
           .getSilverContentId(pubDetail.getPK().getId(), pubDetail.getPK().getComponentName());
   SilverContentVisibility scv =
       new SilverContentVisibility(pubDetail.getBeginDate(), pubDetail.getEndDate(), isVisible);
   SilverTrace.info(
       "kmelia",
       "KmeliaContentManager.updateSilverContentVisibility()",
       "root.MSG_GEN_ENTER_METHOD",
       "SilverContentVisibility = " + scv.toString());
   updateSilverContentVisibility(scv, pubDetail, silverContentId);
 }