Package org.exoplatform.services.jcr.impl.storage

Examples of org.exoplatform.services.jcr.impl.storage.JCRItemExistsException


                     break;
                  case ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW :
                     // If an incoming referenceable node has the same UUID as a node
                     // already existing in the workspace then a SAXException is thrown
                     // by the ContentHandler during deserialization.
                     throw new JCRItemExistsException("An incoming referenceable node has the same "
                        + "UUID as a node already existing in the workspace! UUID:" + identifier, identifier);
                  default :
               }
            }
         }
View Full Code Here


            // existing node corresponding to C’s version history and the
            // removeExisting flag of the restore is set to true, then that
            // instance of C becomes the child of the restored N.
            if (!removeExisting)
            {
               throw new JCRItemExistsException("Item with the same UUID " + versionableIdentifier
                  + " as versionable child node "
                  + userSession.getLocationFactory().createJCRPath(versionable.getQPath()).getAsString(false)
                  + " already exists and removeExisting=false", versionableIdentifier);
            }
            // else - leaving existed unchanged
View Full Code Here

               ItemData me = conn.getItemData(item.getIdentifier());
               if (me != null)
               {
                  // item already exists
                  message.append("Item already exists in storage: ").append(itemInfo);
                  ownException = new JCRItemExistsException(message.toString(), me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

               me =
                  conn.getItemData(parent, new QPathEntry(item.getQPath().getName(), item.getQPath().getIndex()),
                     ItemType.getItemType(item));
               if (me != null)
               {
                  message.append("Item already exists in storage: ").append(itemInfo);
                  ownException = new JCRItemExistsException(message.toString(), me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

            }
            catch (Exception ep)
View Full Code Here

                     break;
                  case ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW :
                     // If an incoming referenceable node has the same UUID as a node
                     // already existing in the workspace then a SAXException is thrown
                     // by the ContentHandler during deserialization.
                     throw new JCRItemExistsException("An incoming referenceable node has the same "
                        + "UUID as a node already existing in the workspace! UUID:" + identifier, identifier);
                  default :
               }
            }
         }
View Full Code Here

               ItemData me = conn.getItemData(item.getIdentifier());
               if (me != null)
               {
                  // item already exists
                  message.append("Item already exists in storage: ").append(itemInfo);
                  ownException = new JCRItemExistsException(message.toString(), me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

               me =
                  conn.getItemData(parent, new QPathEntry(item.getQPath().getName(), item.getQPath().getIndex()),
                     ItemType.getItemType(item));
               if (me != null)
               {
                  message.append("Item already exists in storage: ").append(itemInfo);
                  ownException = new JCRItemExistsException(message.toString(), me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

            }
            catch (Exception ep)
View Full Code Here

            // existing node corresponding to C’s version history and the
            // removeExisting flag of the restore is set to true, then that
            // instance of C becomes the child of the restored N.
            if (!removeExisting)
            {
               throw new JCRItemExistsException("Item with the same UUID " + versionableIdentifier
                  + " as versionable child node "
                  + userSession.getLocationFactory().createJCRPath(versionable.getQPath()).getAsString(false)
                  + " already exists and removeExisting=false", versionableIdentifier);
            }
            // else - leaving existed unchanged
View Full Code Here

               ItemData me = conn.getItemData(item.getIdentifier());
               if (me != null)
               {
                  // item already exists
                  message += "Item already exists in storage: " + itemInfo;
                  ownException = new JCRItemExistsException(message, me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

               me =
                  conn.getItemData(parent, new QPathEntry(item.getQPath().getName(), item.getQPath().getIndex()),
                     ItemType.getItemType(item));
               if (me != null)
               {
                  message += "Item already exists in storage: " + itemInfo;
                  ownException = new JCRItemExistsException(message, me.getIdentifier(), ItemState.ADDED, e);
                  throw ownException;
               }

            }
            catch (Exception ep)
View Full Code Here

                     break;
                  case ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW :
                     // If an incoming referenceable node has the same UUID as a node
                     // already existing in the workspace then a SAXException is thrown
                     // by the ContentHandler during deserialization.
                     throw new JCRItemExistsException("An incoming referenceable node has the same "
                        + "UUID as a node already existing in the workspace! UUID:" + identifier, identifier);
                  default :
               }
            }
         }
View Full Code Here

                     break;
                  case ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW :
                     // If an incoming referenceable node has the same UUID as a node
                     // already existing in the workspace then a SAXException is thrown
                     // by the ContentHandler during deserialization.
                     throw new JCRItemExistsException("An incoming referenceable node has the same "
                        + "UUID as a node already existing in the workspace! UUID:" + identifier, identifier);
                  default :
               }
            }
         }
View Full Code Here

            // existing node corresponding to C’s version history and the
            // removeExisting flag of the restore is set to true, then that
            // instance of C becomes the child of the restored N.
            if (!removeExisting)
            {
               throw new JCRItemExistsException("Item with the same UUID " + versionableIdentifier
                  + " as versionable child node "
                  + userSession.getLocationFactory().createJCRPath(versionable.getQPath()).getAsString(false)
                  + " already exists and removeExisting=false", versionableIdentifier);
            }
            // else - leaving existed unchanged
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.storage.JCRItemExistsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.