Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
bf23126
add support of model diff tool
Apr 10, 2020
8eefe36
Merge branch 'master' into model_diff
Apr 10, 2020
a9b50f1
update parameter
Apr 10, 2020
1cda1de
Fix various delete problem
Apr 10, 2020
9bf66f0
add message properties and command file for windows
Apr 13, 2020
1c4b54f
update exception
Apr 13, 2020
15db52b
add topology section
Apr 13, 2020
a720e77
Merge branch 'master' into model_diff
Apr 13, 2020
5c84886
merge from master
Apr 13, 2020
9d7ab02
grab from master
Apr 13, 2020
009d666
fix script name
Apr 13, 2020
767398b
Fix command line parameter
Apr 13, 2020
356b197
Fix merging problems
Apr 13, 2020
586e03f
correct spellings
Apr 13, 2020
a86b642
Experiment to use alias tree to figure out folder or attribute
Apr 14, 2020
96364f0
add validation
Apr 14, 2020
6c5751c
add message for validation
Apr 14, 2020
fe911e6
Use alias methods to check for folder or attributes
Apr 14, 2020
a383a5c
use for loop to prevent infinite loop
Apr 14, 2020
1903478
correct logic
Apr 14, 2020
e549d31
update method and add CompareException
Apr 14, 2020
e5b36ed
copyrights update
Apr 14, 2020
98a42fd
change wordings
Apr 14, 2020
81bf16a
removed operator specific logic
Apr 15, 2020
7ed9eeb
Add documentations
Apr 15, 2020
f412d72
Fix file writing issues
Apr 15, 2020
8574498
Fix file writing for results
Apr 15, 2020
a76b31b
remove unused var
Apr 15, 2020
7f39a51
add support of variable substitution
Apr 15, 2020
4e60c98
update doc
Apr 15, 2020
8749ba6
fix script error
Apr 16, 2020
402487f
update wordings and script
Apr 16, 2020
088c208
handle deleting top level tree
Apr 16, 2020
63eac89
fix code error
Apr 16, 2020
5ba6071
Add unit test for model diff
Apr 20, 2020
3b51492
Add parsing to catch error
Apr 21, 2020
d38ad40
Add translate error check
Apr 21, 2020
40c4e47
Add more tests for model_diff
Apr 21, 2020
22f25db
Add CreateException
Apr 21, 2020
15d27a1
minor refactor
Apr 21, 2020
fe0584a
update exception handling
Apr 21, 2020
d68eee5
update exception in test
Apr 21, 2020
49f1521
change to use true or false for dictionary check
Apr 22, 2020
c99fd03
update doc
Apr 22, 2020
7d285ad
rename model_diff to compare_model
Apr 22, 2020
9fd4957
renamed file and update test
Apr 22, 2020
9c15a87
change test to use new temporary directory each time
Apr 22, 2020
b68e3dd
update unit test
Apr 22, 2020
e87e991
doc updates
Apr 22, 2020
5087ee8
doc edit
Apr 22, 2020
8fd738c
adding messages for identical model
Apr 22, 2020
ed093a1
doc update
Apr 22, 2020
860ec84
doc update
Apr 22, 2020
41e4f9d
Merge branch 'master' into model_diff
ddsharpe Apr 22, 2020
1020256
Merge branch 'master' into model_diff
ddsharpe Apr 22, 2020
7fb4eea
Merge branch 'master' into model_diff
ddsharpe Apr 22, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Many organizations are using WebLogic Server, with or without other Oracle Fusio
- [Discover Domain Tool](site/discover.md)
- [Encrypt Model Tool](site/encrypt.md)
- [Validate Model Tool](site/validate.md)
- [Compare Model Tool](site/compare.md)
- [Extract Domain Resource Tool](site/kubernetes.md)
- [The Model](#the-metadata-model)
- [Top-Level Sections](#top-level-model-sections)
Expand Down Expand Up @@ -82,6 +83,7 @@ Currently, the project provides five single-purpose tools, all exposed as shell
- The [Discover Domain Tool](site/discover.md) (`discoverDomain`) introspects an existing domain and creates a model file describing the domain and an archive file of the binaries deployed to the domain.
- The [Encrypt Model Tool](site/encrypt.md) (`encryptModel`) encrypts the passwords in a model (or its variable file) using a user-provided passphrase.
- The [Validate Model Tool](site/validate.md) (`validateModel`) provides both standalone validation of a model as well as model usage information to help users write or edit their models.
- The [Compare Model Tool](site/compare.md) (`compareModel`) compares two model files.
- The [Extract Domain Resource Tool](site/kubernetes.md) (`extractDomainResource`) generates a domain resource YAML for use with the Oracle WebLogic Server Kubernetes Operator.

As new use cases are discovered, new tools will likely be added to cover those operations but all will use the metadata model to describe what needs to be done.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* Copyright (c) 2020 Oracle Corporation and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
package oracle.weblogic.deploy.compare;

import oracle.weblogic.deploy.exception.BundleAwareException;
import oracle.weblogic.deploy.exception.ExceptionHelper;

/**
* The exception used by the validation-related components.
*/
public class CompareException extends BundleAwareException {
private static final long serialVersionUID = 1L;

/**
* Constructs a default exception.
*/
public CompareException() {
// default constructor
}

/**
* Constructs a new exception with the specified message id.
*
* @param messageID the message ID
*/
public CompareException(String messageID) {
super(messageID);
}

/**
* Constructs a new exception with the specified message id and parameters.
*
* @param messageID the message ID
* @param params the parameters to use to fill in the message tokens
*/
public CompareException(String messageID, Object... params) {
super(messageID, params);
}

/**
* Constructs a new exception with the specified message id and cause.
*
* @param messageID the message ID
* @param cause the exception that triggered the creation of this exception
*/
public CompareException(String messageID, Throwable cause) {
super(messageID, cause);
}

/**
* Constructs a new exception with passed message id, cause, and parameters.
*
* @param messageID the message ID
* @param cause the exception that triggered the creation of this exception
* @param params the parameters to use to fill in the message tokens
*/
public CompareException(String messageID, Throwable cause, Object... params) {
super(messageID, cause, params);
}

/**
* Constructs a new exception with the specified cause.
*
* @param cause the exception that triggered the creation of this exception
*/
public CompareException(Throwable cause) {
super(cause);
}

/**
* {@inheritDoc}
*/
@Override
public String getBundleName() {
return ExceptionHelper.getResourceBundleName();
}
}
Loading