public class ZipImport extends Object
Modifier and Type | Field and Description |
---|---|
protected Document |
docVo |
protected static org.slf4j.Logger |
logger |
protected String |
sessionId |
protected User |
user |
protected File |
zipFile |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntry(File file,
Folder parent)
Stores a file in the repository of logicaldoc and inserts some
information in the database of logicaldoc (folder, document, version,
history, searchdocument).
|
boolean |
isNotifyUser() |
void |
process(File zipsource,
Folder parent,
long userId,
String sessionId) |
void |
process(String zipsource,
Locale locale,
Folder parent,
long userId,
Long templateId,
String sessionId) |
protected void |
sendNotificationMessage()
Sends a system message to the user that imported the zip.
|
void |
setNotifyUser(boolean notifyUser) |
protected User user
protected static org.slf4j.Logger logger
protected File zipFile
protected String sessionId
protected Document docVo
public ZipImport(Document docVo)
docVo
- Value object for the common documents metadata.public void process(String zipsource, Locale locale, Folder parent, long userId, Long templateId, String sessionId)
protected void addEntry(File file, Folder parent)
file
- parent
- protected void sendNotificationMessage()
archive
- public boolean isNotifyUser()
public void setNotifyUser(boolean notifyUser)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.