Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 3
0
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
Ejemplo n.º 4
0
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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)
     ]
Ejemplo n.º 8
0
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
Ejemplo n.º 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))
Ejemplo n.º 10
0
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 13
0
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group) for group in self.get_all(query)]
Ejemplo n.º 14
0
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group)
             for group in self.get_all(query)]
Ejemplo n.º 15
0
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
Ejemplo n.º 16
0
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
Ejemplo n.º 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)]
Ejemplo n.º 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))