שיטה DocsView.setOwnerByMe
מסנן המסמכים בהתאם האם הם בבעלות המשתמש או ששותפו עם המשתמש. אין לשלב את ההגדרה הזו עם setIncludeFolders
. כשהמדיניות setIncludeFolders(true)
מוגדרת, המערכת מתעלמת מהמדיניות setOwnedByMe
.
אם לא תגדירו את האפשרות הזו, כל המסמכים, כולל מסמכים משותפים, יוצגו בתצוגה.
חתימה
setOwnedByMe(me: boolean): DocsView;
פרטים
אופציונלי |
לא |
גמר |
לא |
מוגן |
לא |
סטטי |
לא |
פרמטרים
שם |
סוג |
אופציונלי |
תיאור |
me |
boolean |
לא |
|
החזרות
DocsView
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-08 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-08 (שעון UTC)."],[[["Filters documents in the view based on ownership (owned by the user or shared with them)."],["When `setIncludeFolders(true)` is used, the `setOwnedByMe` setting is disregarded."],["If this option is not configured, all documents, including shared ones, will be displayed."],["This method is not optional, final, protected, or static."],["Accepts a boolean parameter (`me`) to determine the filtering behavior and returns a DocsView object."]]],["This method filters documents displayed in the view. Setting `setOwnedByMe(true)` shows only user-owned documents; otherwise, shared documents are also included. This setting is overridden if `setIncludeFolders(true)` is set. The method requires a boolean parameter (`me`) to determine the filtering and returns a `DocsView` object. If not specified, all documents are included.\n"]]