[icinga-checkins] icinga.org: icinga2/master: state_filters_real shouldn' t be visible in the API

git at icinga.org git at icinga.org
Tue Jul 19 20:13:56 CEST 2016


Module: icinga2
Branch: master
Commit: 743a726752554de85f93c5069b9588bf4fec0ad9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=743a726752554de85f93c5069b9588bf4fec0ad9

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Jul 19 20:09:14 2016 +0200

state_filters_real shouldn't be visible in the API

fixes #12171

---

 lib/db_ido/dbconnection.ti |    2 +-
 lib/icinga/dependency.ti   |    2 +-
 lib/icinga/notification.ti |    4 ++--
 lib/icinga/user.ti         |    4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/db_ido/dbconnection.ti b/lib/db_ido/dbconnection.ti
index 8cac625..7e83616 100644
--- a/lib/db_ido/dbconnection.ti
+++ b/lib/db_ido/dbconnection.ti
@@ -54,7 +54,7 @@ abstract class DbConnection : ConfigObject
 			return cat;
 		}}}
 	};
-	int categories_filter_real (CategoryFilter);
+	[no_user_view, no_user_modify] int categories_filter_real (CategoryFilter);
 
 	[config] bool enable_ha {
 		default {{{ return true; }}}
diff --git a/lib/icinga/dependency.ti b/lib/icinga/dependency.ti
index 830a114..98f27de 100644
--- a/lib/icinga/dependency.ti
+++ b/lib/icinga/dependency.ti
@@ -101,7 +101,7 @@ class Dependency : CustomVarObject < DependencyNameComposer
 	};
 
 	[config] array(Value) states;
-	int state_filter_real (StateFilter);
+	[no_user_view, no_user_modify] int state_filter_real (StateFilter);
 
 	[config] bool ignore_soft_states {
 		default {{{ return true; }}}
diff --git a/lib/icinga/notification.ti b/lib/icinga/notification.ti
index 2f39b36..a63e682 100644
--- a/lib/icinga/notification.ti
+++ b/lib/icinga/notification.ti
@@ -57,9 +57,9 @@ class Notification : CustomVarObject < NotificationNameComposer
 	[config, protected] array(name(UserGroup)) user_groups (UserGroupsRaw);
 	[config] Dictionary::Ptr times;
 	[config] array(Value) types;
-	int type_filter_real (TypeFilter);
+	[no_user_view, no_user_modify] int type_filter_real (TypeFilter);
 	[config] array(Value) states;
-	int state_filter_real (StateFilter);
+	[no_user_view, no_user_modify] int state_filter_real (StateFilter);
 	[config, protected, required, navigation(host)] name(Host) host_name {
 		navigate {{{
 			return Host::GetByName(GetHostName());
diff --git a/lib/icinga/user.ti b/lib/icinga/user.ti
index 14faee1..32566d1 100644
--- a/lib/icinga/user.ti
+++ b/lib/icinga/user.ti
@@ -45,9 +45,9 @@ class User : CustomVarObject
 	};
 
 	[config] array(Value) types;
-	int type_filter_real (TypeFilter);
+	[no_user_view, no_user_modify] int type_filter_real (TypeFilter);
 	[config] array(Value) states;
-	int state_filter_real (StateFilter);
+	[no_user_view, no_user_modify] int state_filter_real (StateFilter);
 
 	[config] String email;
 	[config] String pager;



More information about the icinga-checkins mailing list