Package org.jboss.system.server.profileservice.repository.clustered.metadata

Examples of org.jboss.system.server.profileservice.repository.clustered.metadata.RepositoryRootMetadata


   @Override
   protected void doCommit()
   {
      ContentModification mod = getRepositoryContentModification();
      RepositoryContentMetadata contentMetadata = getContext().getInProgressMetadata();
      RepositoryRootMetadata rmd = contentMetadata.getRepositoryRootMetadata(mod.getRootName());
      rmd.addItemMetadata(getMarkedRemovedItem(mod));
     
      if (log.isTraceEnabled())
      {
         log.trace("doCommit(): added removal metadata for " + mod.getType() +
               " for " + mod.getItem().getRelativePath());
View Full Code Here


   private RepositoryItemMetadata getBaseRemoteItem(String rootName, RepositoryItemMetadata item)
   {
      RepositoryItemMetadata existingItem = null;
      if (baseRemoteContent != null)
      {
         RepositoryRootMetadata existingRoot = baseRemoteContent.getRepositoryRootMetadata(rootName);
         if (existingRoot != null)
         {
            existingItem = existingRoot.getItemMetadata(item.getRelativePathElements());
         }
      }
      return existingItem;
   }
View Full Code Here

      }
     
      List<ContentModification> mods = new ArrayList<ContentModification>();
      for (RepositoryRootMetadata root : base.getRepositories())
      {
         RepositoryRootMetadata newRoot = modified.getRepositoryRootMetadata(root.getName());
         if (newRoot != null)
         {
            mods.addAll(getModificationList(root, newRoot));
         }
         else
View Full Code Here

   protected boolean doPrepare()
   {
      boolean ok = false;
      ContentModification mod = getRepositoryContentModification();
      RepositoryContentMetadata toUpdate = getContext().getInProgressMetadata();
      RepositoryRootMetadata rmd = toUpdate.getRepositoryRootMetadata(mod.getRootName());
      if (rmd != null)
      {
         replaced = rmd.getItemMetadata(mod.getItem().getRelativePathElements());
         // BES 2009/04/20 I see no reason not to do this if replaced != null
//         if (replaced == null)
//         {
            rmd.addItemMetadata(mod.getItem());
            ok = true;
//         }
           
            if (log.isTraceEnabled())
            {
View Full Code Here

   {
      if (replaced != null)
      {
         ContentModification mod = getRepositoryContentModification();
         RepositoryContentMetadata toUpdate = getContext().getInProgressMetadata();
         RepositoryRootMetadata rmd = toUpdate.getRepositoryRootMetadata(mod.getRootName());
         if (rmd != null)
         {
            rmd.addItemMetadata(replaced);
         }        
      }     
   }
View Full Code Here

      }
     
      installModifications(modifications, updated);
     
      official = this.contentManager.getOfficialContentMetadata();
      RepositoryRootMetadata rrmd = official.getRepositoryRootMetadata(item.getRootName());
      return rrmd.getItemMetadata(item.getRelativePathElements());
   }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.repository.clustered.metadata.RepositoryRootMetadata

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.