Class AttachmentImportExport
- java.lang.Object
-
- org.silverpeas.core.importexport.attachment.AttachmentImportExport
-
public class AttachmentImportExport extends Object
A non-versioned attachment importer/exporter. Import and export are performed by a user and then they are done according to its privileges.
-
-
Constructor Summary
Constructors Constructor Description AttachmentImportExport(UserDetail user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getAttachmentContent(AttachmentDetail attachment)
File
getAttachmentFile(AttachmentDetail attachment)
List<AttachmentDetail>
getAttachments(ResourceReference pk, String exportPath, String relativeExportPath, String extensionFilter)
Methode de recuperation des attachements et de copie des fichiers dans le dossier d'exportationList<AttachmentDetail>
importAttachments(String pubId, String componentId, List<AttachmentDetail> attachments, boolean indexIt)
-
-
-
Constructor Detail
-
AttachmentImportExport
public AttachmentImportExport(UserDetail user)
-
-
Method Detail
-
importAttachments
public List<AttachmentDetail> importAttachments(String pubId, String componentId, List<AttachmentDetail> attachments, boolean indexIt) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getAttachments
public List<AttachmentDetail> getAttachments(ResourceReference pk, String exportPath, String relativeExportPath, String extensionFilter)
Methode de recuperation des attachements et de copie des fichiers dans le dossier d'exportation- Parameters:
pk
- - PrimaryKey de l'obijet dont on veut les attachments?exportPath
- - Repertoire dans lequel copier les fichiersrelativeExportPath
- chemin relatif du fichier copieextensionFilter
-- Returns:
- une liste des attachmentDetail trouves
-
getAttachmentContent
public InputStream getAttachmentContent(AttachmentDetail attachment) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getAttachmentFile
public File getAttachmentFile(AttachmentDetail attachment)
-
-