Skip to content

Commit a0f2d72

Browse files
committed
JIRA WDT-47 Enable special processing for custom security providers; allow them to pass validate
1 parent bc1f986 commit a0f2d72

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""
2+
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3+
The Universal Permissive License (UPL), Version 1.0
4+
"""
5+
6+
from wlsdeploy.tool.util.alias_helper import AliasHelper
7+
from wlsdeploy.tool.util.wlst_helper import WlstHelper
8+
9+
10+
class CustomFolderHelper(object):
11+
"""
12+
Shared code for custom (user-defined) folders in the model.
13+
These require special handling, since they do not have alias definitions.
14+
"""
15+
__class_name = 'CustomFolderHelper'
16+
17+
def __init__(self, aliases, logger, exception_type):
18+
self.logger = logger
19+
self.exception_type = exception_type
20+
self.alias_helper = AliasHelper(aliases, self.logger, self.exception_type)
21+
self.wlst_helper = WlstHelper(self.logger, self.exception_type)
22+
23+
def update_security_folder(self, location, model_name, model_nodes):
24+
"""
25+
Update the specified security model nodes in WLST.
26+
:param location: the location of the folder's parent
27+
:param model_name: the model name of the folder to be updated
28+
:param model_nodes: a child model nodes of the folder to be updated
29+
:raises: BundleAwareException of the specified type: if an error occurs
30+
"""
31+
_method_name = 'update_security_folder'
32+
33+
self.logger.entering(str(location), model_name, class_name=self.__class_name, method_name=_method_name)
34+
35+
self.logger.info('WLSDPLY-12124', model_name, self.alias_helper.get_model_folder_path(location),
36+
class_name=self.__class_name, method_name=_method_name)

0 commit comments

Comments
 (0)