@@ -31,9 +31,9 @@ def update_security_folder(self, location, model_category, model_type, model_nam
31
31
"""
32
32
Update the specified security model nodes in WLST.
33
33
:param location: the location for the provider
34
- :param model_category: the model category of the provider to be updated
35
- :param model_type: the model type of the provider to be updated
36
- :param model_name: the model name of the provider to be updated
34
+ :param model_category: the model category of the provider to be updated, such as AuthenticationProvider
35
+ :param model_type: the model type of the provider to be updated, such as 'custom.my.CustomIdentityAsserter'
36
+ :param model_name: the model name of the provider to be updated, such as 'My custom IdentityAsserter'
37
37
:param model_nodes: a child model nodes of the provider to be updated
38
38
:raises: BundleAwareException of the specified type: if an error occurs
39
39
"""
@@ -49,13 +49,14 @@ def update_security_folder(self, location, model_category, model_type, model_nam
49
49
create_path = self .alias_helper .get_wlst_subfolders_path (location )
50
50
self .wlst_helper .cd (create_path )
51
51
52
- # TODO for updateDomain: check for existing provider, just cd if present
53
-
54
52
# create the MBean using the model name, model_type, category
55
53
56
- self .wlst_helper .create (model_name , model_type , model_category )
54
+ location .append_location (model_category )
55
+ mbean_category = self .alias_helper .get_wlst_mbean_type (location )
56
+
57
+ self .wlst_helper .create (model_name , model_type , mbean_category )
57
58
58
- provider_path = create_path + '/' + model_category + '/' + model_name
59
+ provider_path = create_path + '/' + mbean_category + '/' + model_name
59
60
provider_mbean = self .wlst_helper .cd (provider_path )
60
61
61
62
interface_name = model_type + 'MBean'
0 commit comments