def get_by_id(self, group_id):
     """Returns the list item with the specified list item identifier."""
     group = Group(
         self.context,
         ResourcePathServiceOperation("getbyid", [group_id],
                                      self.resource_path))
     return group
 def add(self, group_creation_information):
     """Creates a Group resource"""
     group = Group(self.context)
     self.add_child(group)
     qry = CreateEntityQuery(self, group_creation_information)
     self.context.add_query(qry)
     return group
    def get_by_name(self, group_name):
        """Returns a cross-site group from the collection based on the name of the group.

        :type group_name: str
        """
        return Group(self.context,
                     ResourcePathServiceOperation("getByName", [group_name], self.resource_path))
Ejemplo n.º 4
0
 def associatedMemberGroup(self):
     """Gets or sets the group of users who have been given contribute permissions to the Web site."""
     if self.is_property_available('AssociatedMemberGroup'):
         return self.properties['AssociatedMemberGroup']
     else:
         return Group(
             self.context,
             ResourcePath("AssociatedMemberGroup", self.resource_path))
Ejemplo n.º 5
0
 def associatedOwnerGroup(self):
     """Gets or sets the associated owner group of the Web site."""
     if self.is_property_available('AssociatedOwnerGroup'):
         return self.properties['AssociatedOwnerGroup']
     else:
         return Group(
             self.context,
             ResourcePath("AssociatedOwnerGroup", self.resource_path))
Ejemplo n.º 6
0
    def get_by_id(self, group_id):
        """Returns the list item with the specified list item identifier.

        :type group_id: str
        """
        return Group(
            self.context,
            ServiceOperationPath("GetById", [group_id], self.resource_path))
    def get_by_name(self, group_name):
        """Returns a cross-site group from the collection based on the name of the group.

        :param str group_name: A string that contains the name of the group.
        """
        return Group(
            self.context,
            ServiceOperationPath("GetByName", [group_name],
                                 self.resource_path))
Ejemplo n.º 8
0
 def associatedMemberGroup(self):
     """Gets or sets the group of users who have been given contribute permissions to the Web site."""
     return self.properties.get('AssociatedMemberGroup',
                                Group(self.context, ResourcePath("AssociatedMemberGroup", self.resource_path)))
Ejemplo n.º 9
0
 def associatedOwnerGroup(self):
     """Gets or sets the associated owner group of the Web site."""
     return self.properties.get('AssociatedOwnerGroup',
                                Group(self.context, ResourcePath("AssociatedOwnerGroup", self.resource_path)))