public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(contentHash, name); } } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { //check that if this is a server group level op the referenced deployment overlay exists if (contentRepository != null && shouldCreateResource) { for(ContentReference reference : locallyAddedReferences) { contentRepository.addContentReference(reference); } } } } });
public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(contentHash, name); } } });
public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(contentHash, name); } } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { //check that if this is a server group level op the referenced deployment overlay exists if (contentRepository != null && shouldCreateResource) { for(ContentReference reference : locallyAddedReferences) { contentRepository.addContentReference(reference); } } } } });
@Override public void addContentReference(ContentReference reference) { contentRepository.addContentReference(reference); }
@Override public void addContentReference(byte[] hash, Object reference) { contentRepository.addContentReference(hash, reference); }
@Override public void addContentReference(byte[] hash, Object reference) { contentRepository.addContentReference(hash, reference); }
@Override public void addContentReference(ContentReference reference) { contentRepository.addContentReference(reference); }
@Override public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, contentHash)); } } });
@Override public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, contentHash)); } } });
public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, contentHash)); } } });
public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, contentHash)); } } });
@Override public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { if (originalHash != null && newHash != null && !Arrays.equals(originalHash, newHash)) { contentRepository.removeContent(originalHash, name); if (contentRepository != null && newHash != null) { contentRepository.addContentReference(newHash, name); } } } else if (newHash != null) { contentRepository.removeContent(newHash, name); } } });
@Override public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { if (replacedHash != null && (newHash == null || !Arrays.equals(replacedHash, newHash))) { // The old content is no longer used; clean from repos contentRepository.removeContent(ModelContentReference.fromModelAddress(address, replacedHash)); } if (newHash != null) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, newHash)); } } else if (newHash != null && (replacedHash == null || !Arrays.equals(replacedHash, newHash))) { // Due to rollback, the new content isn't used; clean from repos contentRepository.removeContent(ModelContentReference.fromModelAddress(address, newHash)); } } });
@Override public void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == ResultAction.KEEP) { if (oldHash != null && (newHash == null || !Arrays.equals(oldHash, newHash))) { // The old content is no longer used; clean from repos contentRepository.removeContent(ModelContentReference.fromModelAddress(address, oldHash)); } if (newHash != null) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(address, newHash)); } } else if (newHash != null && (oldHash == null || !Arrays.equals(oldHash, newHash))) { // Due to rollback, the new content isn't used; clean from repos contentRepository.removeContent(ModelContentReference.fromModelAddress(address, newHash)); } } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { PathAddress address = context.getCurrentAddress(); contentRepository.removeContent(ModelContentReference.fromModelAddress(address, oldHash)); contentRepository.addContentReference(ModelContentReference.fromModelAddress(context.getCurrentAddress(), newHash)); } // else the model update will be reverted and no ref content repo references changes will be made so // the newly exploded content will be eligible for content repo gc } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { PathAddress address = context.getCurrentAddress(); contentRepository.removeContent(ModelContentReference.fromModelAddress(address, oldHash)); contentRepository.addContentReference(ModelContentReference.fromModelAddress(context.getCurrentAddress(), newHash)); } // else the model update will be reverted and no ref content repo references changes will be made so // the newly exploded content will be eligible for content repo gc } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { if (oldHash != null && contentRepository.hasContent(oldHash)) { contentRepository.removeContent(ModelContentReference.fromModelAddress(address, oldHash)); } if (contentRepository.hasContent(newHash)) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(context.getCurrentAddress(), newHash)); } } // else the model update will be reverted and no ref content repo references changes will be made so // the newly exploded content will be eligible for content repo gc } });
@Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { if (resultAction == OperationContext.ResultAction.KEEP) { if (oldHash != null && contentRepository.hasContent(oldHash)) { contentRepository.removeContent(ModelContentReference.fromModelAddress(address, oldHash)); } if (contentRepository.hasContent(newHash)) { contentRepository.addContentReference(ModelContentReference.fromModelAddress(context.getCurrentAddress(), newHash)); } } // else the model update will be reverted and no ref content repo references changes will be made so // the newly exploded content will be eligible for content repo gc } });