Package org.jboss.system.server.profileservice.persistence.xml

Examples of org.jboss.system.server.profileservice.persistence.xml.PersistenceRoot


      attachment.setClassName(managedObject.getAttachment().getClass().getName());
     
      // Save the attachment
      String attachmentPath = deploymentPath + attachment.getName();
      // Create the persistence information
      PersistenceRoot persistenceRoot = getSerializer().loadAttachment(attachmentPath, PersistenceRoot.class);
      //
      persistenceRoot = createPersistedMetaData(persistenceRoot, managedObject, component, remove);
      // Serialize the attachment
      getSerializer().saveAttachment(attachmentPath, persistenceRoot);
View Full Code Here


   * @return the xml metadata.
   */
  protected PersistenceRoot createPersistedMetaData(PersistenceRoot root, ManagedObject managedObject, ManagedComponent component, boolean remove)
  {
     if(root == null)
        root = new PersistenceRoot();
     if(remove)
     {
        root = this.persistenceFactory.removeComponent(root, managedObject, component);
     }
View Full Code Here

         for(AttachmentMetaData attachment: metaData.getAttachments())
         {
            Object instance = unit.getAttachment(attachment.getName());
            if(instance != null)
            {
               PersistenceRoot root = this.store.loadAttachment(vf, attachment);
               if(root == null)
               {
                  log.warn("Null persisted information for deployment: " + vf);
               }
               // update ...
View Full Code Here

      if(parent == null)
         throw new IllegalArgumentException("null parent managed object");
      if(component == null)
         throw new IllegalArgumentException("null managed component");
     
      PersistenceRoot root = new PersistenceRoot();
      return addComponent(root, parent, component);
   }
View Full Code Here

      if(parent == null)
         throw new IllegalArgumentException("null parent managed object");
      if(component == null)
         throw new IllegalArgumentException("null managed component");
     
      PersistenceRoot root = new PersistenceRoot();
      return updateComponent(root, parent, component);
   }
View Full Code Here

      if(parent == null)
         throw new IllegalArgumentException("null parent managed object");
      if(component == null)
         throw new IllegalArgumentException("null managed component");
     
      PersistenceRoot root = new PersistenceRoot();
      return removeComponent(root, parent, component);
   }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.persistence.xml.PersistenceRoot

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.