Esempio n. 1
0
 /**
  * {@inheritDoc}
  *
  * @see org.prowim.dms.alfresco.ContentService#deleteDocument(java.lang.String)
  */
 @Interceptors(AuthenticationInterceptor.class)
 public void deleteDocument(String frameID) throws OntologyErrorException, DMSException {
   Validate.notNull(frameID);
   DocumentIdentification documentIdentification =
       documentManagement.getDocumentIdentification(frameID);
   documentManagement.clearDocumentIdentificationForPI(frameID);
   String uuid = documentIdentification.getUuid();
   if (uuid != null && !uuid.equals(ProcessEngineConstants.Variables.Common.NULL_VALUE)) {
     this.deleteContent(uuid);
   } else {
     String message = "The ID of the document in the ontology is NULL ";
     DMSFault dmsFault = new DMSFault();
     dmsFault.setMessage(message);
     throw new DMSException(message, dmsFault);
   }
 }