LCACL is used to control which users and roles can access or modify a particular object. Each LCObject can have its own LCACL.
More...
|
bool | GetUserIdReadAccess (string userId) |
| Detects whether the given user id is explicitly allowed to read this object. Even if this returns false, the user may still be able to read it if PublicReadAccess is true or a role that the user belongs to has read access.
|
|
void | SetUserIdReadAccess (string userId, bool value) |
| Set whether the given user id is allowed to read this object.
|
|
bool | GetUserIdWriteAccess (string userId) |
| Detects whether the given user id is explicitly allowed to write this object. Even if this returns false, the user may still be able to write it if PublicWriteAccess is true or a role that the user belongs to has read access.
|
|
void | SetUserIdWriteAccess (string userId, bool value) |
| Set whether the given user id is allowed to write this object.
|
|
bool | GetUserReadAccess (LCUser user) |
| Detects whether the given user is explicitly allowed to read this object. Even if this returns false, the user may still be able to read it if PublicReadAccess is true or a role that the user belongs to has read access.
|
|
void | SetUserReadAccess (LCUser user, bool value) |
| Set whether the given user is allowed to read this object.
|
|
bool | GetUserWriteAccess (LCUser user) |
| Detects whether the given user is explicitly allowed to write this object. Even if this returns false, the user may still be able to write it if PublicReadAccess is true or a role that the user belongs to has write access.
|
|
void | SetUserWriteAccess (LCUser user, bool value) |
| Set whether the given user is allowed to write this object.
|
|
bool | GetRoleReadAccess (LCRole role) |
| Detects whether the given role are allowed to read this object.
|
|
void | SetRoleReadAccess (LCRole role, bool value) |
| Sets whether the given role are allowed to read this object.
|
|
bool | GetRoleWriteAccess (LCRole role) |
| Detects whether the given role are allowed to write this object.
|
|
void | SetRoleWriteAccess (LCRole role, bool value) |
| Sets whether the given role are allowed to write this object.
|
|
|
bool | PublicReadAccess [get, set] |
| Gets or sets whether everyone is allowed to read this object.
|
|
bool | PublicWriteAccess [get, set] |
| Gets or sets whether everyone is allowed to write this object.
|
|
LCACL is used to control which users and roles can access or modify a particular object. Each LCObject can have its own LCACL.
◆ CreateWithOwner()
static LCACL LeanCloud.Storage.LCACL.CreateWithOwner |
( |
LCUser |
owner | ) |
|
|
inlinestatic |
Creates a LCACL that is allowed to read and write this object for the user.
- Parameters
-
- Returns
◆ GetRoleReadAccess()
bool LeanCloud.Storage.LCACL.GetRoleReadAccess |
( |
LCRole |
role | ) |
|
|
inline |
Detects whether the given role are allowed to read this object.
- Parameters
-
- Returns
◆ GetRoleWriteAccess()
bool LeanCloud.Storage.LCACL.GetRoleWriteAccess |
( |
LCRole |
role | ) |
|
|
inline |
Detects whether the given role are allowed to write this object.
- Parameters
-
- Returns
◆ GetUserIdReadAccess()
bool LeanCloud.Storage.LCACL.GetUserIdReadAccess |
( |
string |
userId | ) |
|
|
inline |
Detects whether the given user id is explicitly allowed to read this object. Even if this returns false, the user may still be able to read it if PublicReadAccess is true or a role that the user belongs to has read access.
- Parameters
-
userId | The user ObjectId to check. |
- Returns
◆ GetUserIdWriteAccess()
bool LeanCloud.Storage.LCACL.GetUserIdWriteAccess |
( |
string |
userId | ) |
|
|
inline |
Detects whether the given user id is explicitly allowed to write this object. Even if this returns false, the user may still be able to write it if PublicWriteAccess is true or a role that the user belongs to has read access.
- Parameters
-
◆ GetUserReadAccess()
bool LeanCloud.Storage.LCACL.GetUserReadAccess |
( |
LCUser |
user | ) |
|
|
inline |
Detects whether the given user is explicitly allowed to read this object. Even if this returns false, the user may still be able to read it if PublicReadAccess is true or a role that the user belongs to has read access.
- Parameters
-
- Returns
◆ GetUserWriteAccess()
bool LeanCloud.Storage.LCACL.GetUserWriteAccess |
( |
LCUser |
user | ) |
|
|
inline |
Detects whether the given user is explicitly allowed to write this object. Even if this returns false, the user may still be able to write it if PublicReadAccess is true or a role that the user belongs to has write access.
- Parameters
-
- Returns
◆ SetRoleReadAccess()
void LeanCloud.Storage.LCACL.SetRoleReadAccess |
( |
LCRole |
role, |
|
|
bool |
value |
|
) |
| |
|
inline |
Sets whether the given role are allowed to read this object.
- Parameters
-
role | The role. |
value | Whether the role has access. |
◆ SetRoleWriteAccess()
void LeanCloud.Storage.LCACL.SetRoleWriteAccess |
( |
LCRole |
role, |
|
|
bool |
value |
|
) |
| |
|
inline |
Sets whether the given role are allowed to write this object.
- Parameters
-
role | The role. |
value | Whether the role has access. |
◆ SetUserIdReadAccess()
void LeanCloud.Storage.LCACL.SetUserIdReadAccess |
( |
string |
userId, |
|
|
bool |
value |
|
) |
| |
|
inline |
Set whether the given user id is allowed to read this object.
- Parameters
-
userId | The ObjectId of the user. |
value | Whether the user has permission. |
◆ SetUserIdWriteAccess()
void LeanCloud.Storage.LCACL.SetUserIdWriteAccess |
( |
string |
userId, |
|
|
bool |
value |
|
) |
| |
|
inline |
Set whether the given user id is allowed to write this object.
- Parameters
-
userId | The ObjectId of the user. |
value | Whether the user has permission. |
◆ SetUserReadAccess()
void LeanCloud.Storage.LCACL.SetUserReadAccess |
( |
LCUser |
user, |
|
|
bool |
value |
|
) |
| |
|
inline |
Set whether the given user is allowed to read this object.
- Parameters
-
user | The user. |
value | Whether the user has permission. |
◆ SetUserWriteAccess()
void LeanCloud.Storage.LCACL.SetUserWriteAccess |
( |
LCUser |
user, |
|
|
bool |
value |
|
) |
| |
|
inline |
Set whether the given user is allowed to write this object.
- Parameters
-
user | The user. |
value | Whether the user has permission. |
◆ PublicReadAccess
bool LeanCloud.Storage.LCACL.PublicReadAccess |
|
getset |
Gets or sets whether everyone is allowed to read this object.
◆ PublicWriteAccess
bool LeanCloud.Storage.LCACL.PublicWriteAccess |
|
getset |
Gets or sets whether everyone is allowed to write this object.
The documentation for this class was generated from the following file: