[Castore-commits] SoumissionDocAction.java 1.7 1.8
Stéphane Bouchet
sbouchet at adullact1.hosting.cri74.org
Mer 19 Avr 16:34:33 CEST 2006
Update of /cvsroot/castore/castore-struts/src/java/fr/emn/castor/struts/actions/documents
In directory adullact1:/tmp/cvs-serv12496/src/java/fr/emn/castor/struts/actions/documents
Modified Files:
SoumissionDocAction.java
Log Message:
Mise en page.
Index: SoumissionDocAction.java
===================================================================
RCS file: /cvsroot/castore/castore-struts/src/java/fr/emn/castor/struts/actions/documents/SoumissionDocAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SoumissionDocAction.java 17 Feb 2006 16:40:41 -0000 1.7
--- SoumissionDocAction.java 19 Apr 2006 14:34:30 -0000 1.8
***************
*** 226,245 ****
// création du document castore
IDocuments fDoc = CastorProxy.getModuleDocuments(request
! .getSession());
!
! // Type MIME
// swx : application/vnd.sun.xml.writer
// doc : application/msword
// txt : text/plain
// html : text/html
! String typeMIME = formFile.getContentType() ;
!
! String id = fDoc.creerDocument(in, extension.toLowerCase(), docTitle, form
! .getDocType(), fsId, user, typeMIME);
// fermeture des flux et nettoyage de l'upload
in.close();
formFile.destroy();
! if (id.equals("")){
// si l'id est vide, on s'arrete là.
return id;
--- 226,246 ----
// création du document castore
IDocuments fDoc = CastorProxy.getModuleDocuments(request
! .getSession());
!
! // Type MIME
// swx : application/vnd.sun.xml.writer
// doc : application/msword
// txt : text/plain
// html : text/html
! String typeMIME = formFile.getContentType();
!
! String id = fDoc.creerDocument(
! in, extension.toLowerCase(), docTitle, form.getDocType(), fsId,
! user, typeMIME);
// fermeture des flux et nettoyage de l'upload
in.close();
formFile.destroy();
! if (id.equals("")) {
// si l'id est vide, on s'arrete là.
return id;
***************
*** 263,267 ****
}
fDoc.setNoticeValue(
! id, DocumentsConstants.S4S_FILE_XSLT, fsId, fsLabel, user);
return id;
}
--- 264,268 ----
}
fDoc.setNoticeValue(
! id, DocumentsConstants.S4S_FILE_XSLT, fsId, fsLabel, user);
return id;
}
Plus d'informations sur la liste de diffusion Castore-commits