ShareFactory Methods |
The ShareFactory type exposes the following members.
Name | Description | |
---|---|---|
CreateDefaults(IContext, ShareObjectType, Int32, IUser, NullableInt32) |
Creates default sharing
| |
CreateDefaults(IContext, String, Int32, IUser, NullableInt32, NullableGuid) |
Creates default sharing
| |
FindAll |
Find all shares using the specified filters.
| |
FindAllRules(IContext, ShareObjectType, IUser, NullableInt32) |
Find or calculate all the appropriate share rules
for the specified `AskiaPortal` object type and user.
| |
FindAllRules(IContext, ShareObjectType, IEnumerableIGroup, NullableInt32) |
Find or calculate all the appropriate share rules
for the specified object type and groups.
| |
FindAllRules(IContext, String, IUser, NullableInt32, NullableGuid) |
Find or calculate all the appropriate share rules
for the specified object type and user.
| |
FindAllRules(IContext, String, IEnumerableIGroup, NullableInt32, NullableGuid) |
Find or calculate all the appropriate share rules
for the specified object type and groups.
| |
FindAllRulesForSuperAdmin(IContext, ShareObjectType, NullableInt32) |
Find or calculate all the appropriate share rules
for the specified object type and super-administrator.
| |
FindAllRulesForSuperAdmin(IContext, String, NullableInt32, NullableGuid) |
Find or calculate all the appropriate share rules
for the specified object type and super administrator.
| |
FindById |
Find a share using his identifier, return null if not found
| |
FindRule(IContext, ShareObjectType, Int32, IUser, NullableInt32) |
Find or calculate the appropriate share rule applied
on the specified `AskiaPortal` object and user,
return null if no rule found.
| |
FindRule(IContext, String, Int32, IUser, NullableInt32, NullableGuid) |
Find or calculate the appropriate share rule applied
on the specified object and user,
return null if no rule found.
| |
NewShareToEverybody(IContext, ShareObjectType, Int32, NullableInt32) |
Create a new instance of share
for everybody and `AskiaPortal` object
| |
NewShareToEverybody(IContext, String, Int32, NullableInt32, NullableGuid) |
Create a new instance of share
for everybody and object
| |
NewShareToGroup(IContext, ShareObjectType, Int32, IGroup, NullableInt32) |
Create a new instance of share
for the specified group and `AskiaPortal` object
| |
NewShareToGroup(IContext, String, Int32, IGroup, NullableInt32, NullableGuid) |
Create a new instance of share
for the specified group and object
| |
NewShareToUser(IContext, ShareObjectType, Int32, IUser, NullableInt32) |
Create a new instance of share
for the specified user and `AskiaPortal` object
| |
NewShareToUser(IContext, String, Int32, IUser, NullableInt32, NullableGuid) |
Create a new instance of share
for the specified user and object
|