Skip to content

Commit 6ae577b

Browse files
committed
Merge branch 'jira-wdt-855-model-help' into 'develop-4.0'
Changed model help MBean indicator to asterisk, cleaned up whitespace See merge request weblogic-cloud/weblogic-deploy-tooling!1649
2 parents 71e297b + a0a7abe commit 6ae577b

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

core/src/main/java/oracle/weblogic/deploy/util/WLSBeanHelp.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle Corporation and/or its affiliates.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates.
33
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55
package oracle.weblogic.deploy.util;
@@ -8,10 +8,8 @@
88
import java.beans.BeanInfo;
99
import java.beans.FeatureDescriptor;
1010
import java.beans.PropertyDescriptor;
11-
import java.lang.reflect.InvocationTargetException;
1211
import java.lang.reflect.Method;
1312
import java.util.ArrayList;
14-
import java.util.Enumeration;
1513
import java.util.HashMap;
1614

1715
/**
@@ -57,7 +55,7 @@ public static String get(String beanName, String propName, int width, String pro
5755
if (limits.length() > 0) limits += EOL;
5856
}
5957

60-
return limits + prettyHTML(ds, width);
58+
return limits + prettyHTML(ds, width).trim();
6159
}
6260

6361
public static String get(String beanName, int width) {

core/src/main/python/wlsdeploy/tool/modelhelp/model_sample_printer.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2020, 2023, Oracle and/or its affiliates.
2+
Copyright (c) 2020, 2024, Oracle and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55
from wlsdeploy.aliases.location_context import LocationContext
@@ -262,12 +262,12 @@ def _get_att_short_help(self, model_location, attr_name):
262262

263263
online_bean = self._aliases.get_online_bean_name(model_location)
264264

265-
# Instead of showing abbreviated help, use a trailing "+" to indicate
266-
# that more help is avail for the attribute, and a "-" otherwise
265+
# Instead of showing abbreviated help, use a trailing "*" to indicate
266+
# that more help is avail for the attribute.
267267
if WLSBeanHelp.get(online_bean, attr_name, 100, ''):
268-
return att_default + ' +'
268+
return att_default + ' *'
269269
else:
270-
return att_default + ' -'
270+
return ''
271271

272272
def _print_attributes_sample(self, model_location, indent_level):
273273
"""
@@ -376,7 +376,6 @@ def _print_attribute_bean_help(self, model_location, indent_level, the_attribute
376376
if att_help:
377377
self._output_buffer.add_output()
378378
self._output_buffer.add_output(att_help)
379-
self._output_buffer.add_output()
380379

381380
return True
382381

core/src/main/python/wlsdeploy/tool/util/attribute_setter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ def set_encrypted(self, location, key, value, wlst_value):
678678
This is required when WLST does not encrypt a plain-text value during set() as it normally does.
679679
This can happen when offline WLST does not include an attribute in a hard-coded list of encrypted values.
680680
Currently, only OracleIdentityCloudIntegrator/ClientSecretEncrypted offline has this issue.
681+
See bug 34195228.
681682
:param location: the location
682683
:param key: the attribute name
683684
:param value: the new attribute value

documentation/4.0/content/userguide/tools/model_help.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ Attributes and sub-folders for resources:/JDBCSystemResource
2020
resources:
2121
JDBCSystemResource:
2222
'JDBC-1':
23-
CompatibilityName: # string +
24-
DeploymentOrder: # integer (default=100) +
25-
DeploymentPrincipalName: # string +
26-
DescriptorFileName: # string +
27-
ModuleType: # string +
28-
Notes: # string +
29-
SourcePath: # string +
30-
Target: # delimited_string +
23+
CompatibilityName: # string *
24+
DeploymentOrder: # integer (default=100) *
25+
DeploymentPrincipalName: # string *
26+
DescriptorFileName: # string *
27+
ModuleType: # string *
28+
Notes: # string *
29+
SourcePath: # string *
30+
Target: # delimited_string *
3131

3232
JdbcResource:
3333
# see /JDBCSystemResource/JdbcResource
@@ -41,7 +41,8 @@ This bean defines a system-level JDBC resource. It links a separate
4141
descriptor that specifies the definition.
4242
```
4343
This output shows the eight attributes and two sub-folders available for the `JDBCSystemResource` folder in the `resources` section of the model. Each attribute includes a comment describing the type of the value to be added.
44-
A plus sign (`+`) on an attribute indicates that appending the attribute to the model path will yield more information about the attribute.
44+
45+
An asterisk (`*`) next to an attribute indicates that the attribute has additional information available, possibly including a default value, valid range, and a description.
4546

4647
Folders that support multiple instances, such as `JDBCSystemResource` in this example, are shown with a derived name, such as `'JDBC-1'`.
4748

0 commit comments

Comments
 (0)