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

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


   protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
   {
      // Note: this is using the TestMgtComponentImpl to get the MO
      ManagedObject mo = (ManagedObject) component.getParent();
      PersistedManagedObject persistedMO = getPersistencePlugin().createPersistedManagedObject(mo);
      PersistedComponent persisted = new PersistedComponent(persistedMO);
      setComponentName(persisted, mo);
      return persisted;
   }
View Full Code Here


         String name = md.getObjectName().getCanonicalName();
         persisted.setName(name);
         persisted.setOriginalName(name);
         persisted.setModificationInfo(ModificationInfo.ADDED);
        
         components.add(new PersistedComponent(persisted));
      }
     
      PersistenceRoot root = new PersistenceRoot();
      root.setComponents(components);
      root = restore(root);
View Full Code Here

      protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
      {
         // Note: this is using the TestMgtComponentImpl to get the MO
         ManagedObject mo = (ManagedObject) component.getParent();
         PersistedManagedObject persisted = getPersistencePlugin().createPersistedManagedObject(mo);
         PersistedComponent persistedComponent = new PersistedComponent(persisted);
         setComponentName(persistedComponent, mo);
         return persistedComponent;
      }
View Full Code Here

      protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
      {
         // Note: this is using the TestMgtComponentImpl to get the MO
         ManagedObject mo = (ManagedObject) component.getParent();
         PersistedManagedObject persisted = getPersistencePlugin().createPersistedManagedObject(mo);
         PersistedComponent persistedComponent = new PersistedComponent(persisted);
         setComponentName(persistedComponent, mo);
         return persistedComponent;
      }
View Full Code Here

      protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
      {
         // Note: this is using the TestMgtComponentImpl to get the MO
         ManagedObject mo = (ManagedObject) component.getParent();
         PersistedManagedObject persisted = getPersistencePlugin().createPersistedManagedObject(mo);
         PersistedComponent persistedComponent = new PersistedComponent(persisted);
         setComponentName(persistedComponent, mo);
         return persistedComponent;
      }
View Full Code Here

      protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
      {
         // Note: this is using the TestMgtComponentImpl to get the MO
         ManagedObject mo = (ManagedObject) component.getParent();
         PersistedManagedObject persisted = getPersistencePlugin().createPersistedManagedObject(mo);
         PersistedComponent persistedComponent = new PersistedComponent(persisted);
         setComponentName(persistedComponent, mo);
         return persistedComponent;
      }
View Full Code Here

      return createPersistedComponent(attachment, component, ModificationInfo.MODIFIED);
   }
  
   public PersistedComponent removeComponent(Object attachment, ManagedComponent component)
   {
      PersistedComponent persisted = createPersistedComponent(attachment, component, ModificationInfo.REMOVED);
      // FIXME cleanup properties, as they are not need for removed components
      persisted.setProperties(new ArrayList<PersistedProperty>());
      return persisted;
   }
View Full Code Here

   protected PersistedComponent createComponent(Object attachment, ManagedComponent component)
   {
      // ManagedObject mo = component.getDeployment().getManagedObject(component.getName());
      ManagedObject mo = (ManagedObject) component.getParent();
      PersistedManagedObject persisted = getPersistencePlugin().createPersistedManagedObject(mo);
      PersistedComponent persistedComponent = new PersistedComponent(persisted);
      setComponentName(persistedComponent, mo);
      return persistedComponent;
   }
View Full Code Here

      if(component == null)
         throw new IllegalArgumentException("null component");
      if(modification == null)
         throw new IllegalArgumentException("null modification info");
      // Create the component and set the modification information
      PersistedComponent persisted = createComponent(attachment, component);
      persisted.setModificationInfo(modification);
      return persisted;     
   }
View Full Code Here

   public PersistenceRoot addComponent(PersistenceRoot root, ManagedObject parent, ManagedComponent component)
   {
      if(root == null)
         throw new IllegalArgumentException("null persistence root");
      ComponentMapper mapper = getComponentMapper(parent);
      PersistedComponent persistedComponent = mapper.addComponent(parent.getAttachment(), component);
      return addPersistedComponent(root, persistedComponent);
   }
View Full Code Here

TOP

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

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.