Click or drag to resize

ShareFactory Class

Factory of AskiaPortal shares
Inheritance Hierarchy
SystemObject
  AskiaPortalCmnShareFactory

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public static class ShareFactory

The ShareFactory type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateDefaults(IContext, ShareObjectType, Int32, IUser, NullableInt32)
Creates default sharing
Public methodStatic memberCode exampleCreateDefaults(IContext, String, Int32, IUser, NullableInt32, NullableGuid)
Creates default sharing
Public methodStatic memberCode exampleFindAll
Find all shares using the specified filters.
Public methodStatic memberCode exampleFindAllRules(IContext, ShareObjectType, IUser, NullableInt32)
Find or calculate all the appropriate share rules for the specified `AskiaPortal` object type and user.
Public methodStatic memberCode exampleFindAllRules(IContext, ShareObjectType, IEnumerableIGroup, NullableInt32)
Find or calculate all the appropriate share rules for the specified object type and groups.
Public methodStatic memberCode exampleFindAllRules(IContext, String, IUser, NullableInt32, NullableGuid)
Find or calculate all the appropriate share rules for the specified object type and user.
Public methodStatic memberCode exampleFindAllRules(IContext, String, IEnumerableIGroup, NullableInt32, NullableGuid)
Find or calculate all the appropriate share rules for the specified object type and groups.
Public methodStatic memberCode exampleFindAllRulesForSuperAdmin(IContext, ShareObjectType, NullableInt32)
Find or calculate all the appropriate share rules for the specified object type and super-administrator.
Public methodStatic memberCode exampleFindAllRulesForSuperAdmin(IContext, String, NullableInt32, NullableGuid)
Find or calculate all the appropriate share rules for the specified object type and super administrator.
Public methodStatic memberCode exampleFindById
Find a share using his identifier, return null if not found
Public methodStatic memberCode exampleFindRule(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.
Public methodStatic memberCode exampleFindRule(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.
Public methodStatic memberCode exampleNewShareToEverybody(IContext, ShareObjectType, Int32, NullableInt32)
Create a new instance of share for everybody and `AskiaPortal` object
Public methodStatic memberCode exampleNewShareToEverybody(IContext, String, Int32, NullableInt32, NullableGuid)
Create a new instance of share for everybody and object
Public methodStatic memberCode exampleNewShareToGroup(IContext, ShareObjectType, Int32, IGroup, NullableInt32)
Create a new instance of share for the specified group and `AskiaPortal` object
Public methodStatic memberCode exampleNewShareToGroup(IContext, String, Int32, IGroup, NullableInt32, NullableGuid)
Create a new instance of share for the specified group and object
Public methodStatic memberCode exampleNewShareToUser(IContext, ShareObjectType, Int32, IUser, NullableInt32)
Create a new instance of share for the specified user and `AskiaPortal` object
Public methodStatic memberCode exampleNewShareToUser(IContext, String, Int32, IUser, NullableInt32, NullableGuid)
Create a new instance of share for the specified user and object
Top
See Also