@@ -629,6 +629,34 @@ def get_wlst_get_required_attribute_names(self, location):
629629 self ._raise_exception (ae , _method_name , 'WLSDPLY-19020' , location .get_current_model_folder (),
630630 location .get_folder_path (), ae .getLocalizedMessage ())
631631
632+ def get_wlst_access_rod_attribute_names (self , location ):
633+ """
634+ Get the list of attribute names that have their ACCESS type set to ROD (readonly but discover)
635+ :param location: the location
636+ :return: list[string]: the list of attribute names
637+ :raises: Tool type exception: if an error occurs due to a bad location or bad alias data
638+ """
639+ _method_name = 'get_wlst_access_rod_attribute_names'
640+
641+ try :
642+ wlst_attribute_names = []
643+
644+ module_folder = self ._alias_entries .get_dictionary_for_location (location )
645+
646+ if ATTRIBUTES not in module_folder :
647+ ex = exception_helper .create_alias_exception ('WLSDPLY-08400' , location .get_folder_path ())
648+ self ._logger .throwing (ex , class_name = self ._class_name , method_name = _method_name )
649+ raise ex
650+
651+ for key , value in module_folder [ATTRIBUTES ].iteritems ():
652+ if ACCESS in value and value [ACCESS ] == ROD :
653+ wlst_attribute_names .append (value [WLST_NAME ])
654+
655+ return wlst_attribute_names
656+ except AliasException , ae :
657+ self ._raise_exception (ae , _method_name , 'WLSDPLY-19046' , location .get_current_model_folder (),
658+ location .get_folder_path (), ae .getLocalizedMessage ())
659+
632660 ###########################################################################
633661 # Model folder-related methods #
634662 ###########################################################################
0 commit comments