org.gcube.portlets.user.homelibrary.jcr.workspace.util
Class HomeLibraryImporter

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.jcr.workspace.util.HomeLibraryImporter

public class HomeLibraryImporter
extends Object


Field Summary
static int errors
           
static int notImported
           
 
Constructor Summary
HomeLibraryImporter()
           
 
Method Summary
static void copyItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem oldRoot, String newRoot)
           
static org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem createJCRWorkspaceFolderItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace, String destinationFolderId, org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem oldItem)
           
static org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem createJCRWorkspaceItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace, String destinationFolderId, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem oldItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

public static int errors

notImported

public static int notImported
Constructor Detail

HomeLibraryImporter

public HomeLibraryImporter()
Method Detail

copyItem

public static void copyItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace,
                            org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem oldRoot,
                            String newRoot)
                     throws org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
Throws:
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException

createJCRWorkspaceItem

public static org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem createJCRWorkspaceItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace,
                                                                                                      String destinationFolderId,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem oldItem)
                                                                                               throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
                                                                                                      org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException
Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemAlreadyExistException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongItemTypeException

createJCRWorkspaceFolderItem

public static org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem createJCRWorkspaceFolderItem(org.gcube.portlets.user.homelibrary.home.workspace.Workspace newWorkspace,
                                                                                                            String destinationFolderId,
                                                                                                            org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem oldItem)
                                                                                                     throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException,
                                                                                                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
                                                                                                            org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException,
                                                                                                            org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
Throws:
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.InsufficientPrivilegesException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WrongDestinationException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException


Copyright © 2012. All Rights Reserved.