def object_sharing_information(self):
     """
     Contains information about the sharing state of a shareable object.
     """
     return self.properties.get(
         "ObjectSharingInformation",
         ObjectSharingInformation(
             self.context,
             ResourcePath("ObjectSharingInformation", self.resource_path)))
    def get_sharing_information(self):
        """

        :rtype: ClientResult
        """
        result = ClientResult(ObjectSharingInformation(self.context))

        def _item_resolved():
            result.value = ObjectSharingInformation.get_list_item_sharing_information(
                self.context, self.parent_list.properties["Id"], self.properties["Id"])

        self.ensure_properties(["Id", "ParentList"], _item_resolved)
        return result.value
    def get_sharing_information(self):
        """
        Retrieves information about the sharing state for a given list item.

        """
        return_type = ObjectSharingInformation(self.context)

        def _item_resolved():
            ObjectSharingInformation.get_list_item_sharing_information(
                self.context,
                self.parent_list.properties["Id"],
                self.properties["Id"],
                return_type=return_type)

        self.ensure_properties(["Id", "ParentList"], _item_resolved)
        return return_type
Пример #4
0
 def _item_resolved():
     result.value = ObjectSharingInformation.get_list_item_sharing_information(
         self.context, self.parent_list.properties["Id"],
         self.properties["Id"])
 def object_sharing_information(self):
     return self.properties.get(
         "ObjectSharingInformation",
         ObjectSharingInformation(
             self.context,
             ResourcePath("ObjectSharingInformation", self.resource_path)))
 def _item_resolved():
     ObjectSharingInformation.get_list_item_sharing_information(
         self.context,
         self.parent_list.properties["Id"],
         self.properties["Id"],
         return_type=return_type)