Beispiel #1
0
 def update_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "update_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
Beispiel #2
0
 def update_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "update_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
Beispiel #3
0
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
Beispiel #4
0
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
Beispiel #5
0
 def update_group(self, group_id, group):
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
Beispiel #6
0
 def create_group(self, group_id, group):
     self.group.check_allow_create()
     group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.create(group))
Beispiel #7
0
 def get_all_filtered(self, hints, query=None):
     query = self.filter_query(hints, query)
     return [
         common_ldap.filter_entity(group) for group in self.get_all(query)
     ]
Beispiel #8
0
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
Beispiel #9
0
 def create_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "create_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_create()
     group["name"] = clean.group_name(group["name"])
     return common_ldap.filter_entity(self.group.create(group))
Beispiel #10
0
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
Beispiel #11
0
 def update_group(self, group_id, group):
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
Beispiel #12
0
 def create_group(self, group_id, group):
     self.group.check_allow_create()
     group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.create(group))
Beispiel #13
0
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group) for group in self.get_all(query)]
Beispiel #14
0
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group)
             for group in self.get_all(query)]
Beispiel #15
0
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
Beispiel #16
0
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
Beispiel #17
0
 def get_all_filtered(self, hints, query=None):
     query = self.filter_query(hints, query)
     return [common_ldap.filter_entity(group)
             for group in self.get_all(query)]
Beispiel #18
0
 def create_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "create_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_create()
     return common_ldap.filter_entity(self.group.create(group))