org.gcube.portlets.user.homelibrary.util.zip
Class ZipModelToWorkspaceCreator
java.lang.Object
org.gcube.portlets.user.homelibrary.util.zip.ZipModelToWorkspaceCreator
public class ZipModelToWorkspaceCreator
- extends Object
This utility class read the zip model and create the corresponding element on the specified WorkspaceFolder.
- Author:
- Federico De Faveri defaveri@isti.cnr.it
|
Field Summary |
protected org.apache.log4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.apache.log4j.Logger logger
ZipModelToWorkspaceCreator
public ZipModelToWorkspaceCreator()
create
public void create(WorkspaceFolder root,
List<ZipItem> items)
- Parameters:
root - the folder to zip.items - the resulting zip folders.
createWorkspaceItem
protected void createWorkspaceItem(WorkspaceFolder parentFolder,
ZipItem item)
throws InternalErrorException,
InsufficientPrivilegesException,
ItemAlreadyExistException,
FileNotFoundException
- Throws:
InternalErrorException
InsufficientPrivilegesException
ItemAlreadyExistException
FileNotFoundException
createWorkspace
protected void createWorkspace(WorkspaceFolder parentFolder,
ZipFolder zipFolder)
throws InternalErrorException,
InsufficientPrivilegesException,
ItemAlreadyExistException
- Throws:
InternalErrorException
InsufficientPrivilegesException
ItemAlreadyExistException
createItem
protected void createItem(WorkspaceFolder folder,
ZipFile zipFile)
throws FileNotFoundException,
InsufficientPrivilegesException,
InternalErrorException,
ItemAlreadyExistException
- Throws:
FileNotFoundException
InsufficientPrivilegesException
InternalErrorException
ItemAlreadyExistException
Copyright © 2013. All Rights Reserved.