def apply_jrf_global_updates(online, jrf_targets, admin_user=None, admin_pass=None, admin_url=None, domain_home=None): """ For installs that will control locally any updates from the apply_jrf :param online: True if the tool session is in online mode :param jrf_targets: the list target for the JRF resources :param admin_user: admin user if online session :param admin_pass: admin password if online session :param admin_url: admin url if online session :param domain_home: domain home if offline session :return: """ _method_name = 'apply_jrf_global_updates' _logger.entering(StringUtils.stringForBoolean(online), jrf_targets, domain_home, class_name=_class_name, method_name=_method_name) session_start(online, jrf_targets, admin_user, admin_pass, admin_url, domain_home) for jrf_target in jrf_targets: apply_jrf(jrf_target, domain_home, False) session_end(online, jrf_targets) _logger.exiting(class_name=_class_name, method_name=_method_name) return
_method_name = 'is_editor' _logger.entering(class_name=_class_name, method_name=_method_name) try: result = cmgr.isEditor() except WLSTException, e: pwe = exception_helper.create_pywlst_exception('WLSDPLY-00094', _format_exception(e), error=e) _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe) raise pwe _logger.exiting(class_name=_class_name, method_name=_method_name, result=StringUtils.stringForBoolean(result)) return result def have_unactivated_changes(cmgr): """ Return True if there is any unactivated changes in the domain :param cmgr: configuration manager :return: True if there is any unactivated changes in the domain :raises: PyWLSTException: if a WLST error occurs """ _method_name = 'have_unactivated_changes' _logger.entering(cmgr, class_name=_class_name, method_name=_method_name) try: result = cmgr.haveUnactivatedChanges()
def is_editor(cmgr): """ Determine if an edit is in progress and if this context is the current editor. :param cmgr: current configuration manager :return: True if context is current editor """ _method_name = 'is_editor' _logger.entering(class_name=_class_name, method_name=_method_name) try: result = cmgr.isEditor() except WLSTException, e: pwe = exception_helper.create_pywlst_exception('WLSDPLY-00094', _format_exception(e), error=e) _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe) raise pwe _logger.exiting(class_name=_class_name, method_name=_method_name, result=StringUtils.stringForBoolean(result)) return result def have_unactivated_changes(cmgr): """ Return True if there is any unactivated changes in the domain :param cmgr: configuration manager :return: True if there is any unactivated changes in the domain :raises: PyWLSTException: if a WLST error occurs """ _method_name = 'have_unactivated_changes' _logger.entering(cmgr, class_name=_class_name, method_name=_method_name) try: result = cmgr.haveUnactivatedChanges()