Package org.jboss.system.server.profileservice.repository.clustered.sync.ContentModification

Examples of org.jboss.system.server.profileservice.repository.clustered.sync.ContentModification.Type


         RepositoryItemMetadata item, GeneratedModifications mods)
   {     
      // If this is an addition, it can't be the child of an earlier removal.
      // So, drain any remaining preapproved removals
      drainPreapprovedRemovals(mods);
      Type type = item.isDirectory() ? Type.MKDIR_TO_CLUSTER : Type.PUSH_TO_CLUSTER;
      mods.addModification(new ContentModification(type, rootName, item));
     
      if (log.isTraceEnabled())
      {
         log.trace("created " + type + " modification for " + item.getRelativePath());
View Full Code Here


         allow = Boolean.valueOf(isAdditionApproved(rootName, item, removedVersion));
      }
     
      if (allow.booleanValue())
      {        
         Type type = item.isDirectory() ? Type.MKDIR_TO_CLUSTER : Type.PUSH_TO_CLUSTER;
         mods.addModification(new ContentModification(type, rootName, item));
        
         if (mods.getPreapprovedAddParent() == null && item.isDirectory())
         {
            mods.setPreapprovedAddParent(item);
View Full Code Here

         }
      }
      else
      {        
         // Removal is rejected; tell remote node to pull ours
         Type type = item.isDirectory() ? Type.MKDIR_FROM_CLUSTER : Type.PULL_FROM_CLUSTER;
         mods.addModification(new ContentModification(type, rootName, item));
        
         if (mods.getPrerejectedRemoveParent() == null && item.isDirectory())
         {
            mods.setPrerejectedRemoveParent(item);
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.repository.clustered.sync.ContentModification.Type

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.