Пример #1
0
 def siteGroups(self):
     """Gets the collection of groups for the site collection."""
     if self.is_property_available('SiteGroups'):
         return self.properties['SiteGroups']
     else:
         return GroupCollection(
             self.context, ResourcePath("siteGroups", self.resource_path))
    def groups_shared_with(self):
        """

        :rtype: ClientValueCollection
        """
        return self.properties.get("GroupsSharedWith",
                                   GroupCollection(self.context, ResourcePath("GroupsSharedWith", self.resource_path)))
Пример #3
0
 def groups(self):
     """Gets a collection of group objects that represents all of the groups for the user."""
     from office365.sharepoint.principal.group_collection import GroupCollection
     return self.properties.get(
         'Groups',
         GroupCollection(self.context,
                         ResourcePath("Groups", self.resource_path)))
Пример #4
0
 def groups(self):
     """Gets a collection of group objects that represents all of the groups for the user."""
     if self.is_property_available('Groups'):
         return self.properties['Groups']
     else:
         from office365.sharepoint.principal.group_collection import GroupCollection
         return GroupCollection(self.context,
                                ResourcePath("Groups", self.resource_path))
Пример #5
0
 def groupsSharedWith(self):
     return self.properties.get(
         "GroupsSharedWith",
         GroupCollection(
             self.context,
             ResourcePath("GroupsSharedWith", self.resource_path)))
Пример #6
0
 def siteGroups(self):
     """Gets the collection of groups for the site collection."""
     return self.properties.get('SiteGroups',
                                GroupCollection(self.context, ResourcePath("siteGroups", self.resource_path)))