Click or drag to resize

ShareFactory Methods

The ShareFactory type exposes the following members.

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