Class DatabaseSecurity
A helper class that contains a variety of database security helper functions.
Namespace: Workspace.XBR.Xperiflow.Utilities.Database
Assembly: Xperiflow.dll
Declaration
public static class DatabaseSecurity
Methods
GetDatabaseServerConnectionsForUser(SessionInfo)
Get the allowed database server connections that the user has access to connect to.
Declaration
public static List<DatabaseServerConnection> GetDatabaseServerConnectionsForUser(SessionInfo si)
Returns
System.Collections.Generic.List<OneStream.Shared.Wcf.DatabaseServerConnection>
The list of database server connections.
Parameters
Type | Name | Description |
---|---|---|
OneStream.Shared.Common.SessionInfo | si | The session info object representing the user to gather the database server connections for. |
GetDatabaseServerConnectionsForUser(SessionInfo, UserInfo)
Get the allowed database server connections that the user has access to connect to.
Declaration
public static List<DatabaseServerConnection> GetDatabaseServerConnectionsForUser(SessionInfo si, UserInfo userInfo)
Returns
System.Collections.Generic.List<OneStream.Shared.Wcf.DatabaseServerConnection>
Parameters
Type | Name | Description |
---|---|---|
OneStream.Shared.Common.SessionInfo | si | The session info object. |
OneStream.Shared.Wcf.UserInfo | userInfo | The specific user to check the database server connections for. |
GetDatabaseServerConnectionsBySecurityGroup(SessionInfo, Dictionary<Guid, Group>)
Get the superset of database server connections the following user groups have access to.
Declaration
public static List<DatabaseServerConnection> GetDatabaseServerConnectionsBySecurityGroup(SessionInfo si, Dictionary<Guid, Group> groups)
Returns
System.Collections.Generic.List<OneStream.Shared.Wcf.DatabaseServerConnection>
Parameters
Type | Name | Description |
---|---|---|
OneStream.Shared.Common.SessionInfo | si | The session info object. |
System.Collections.Generic.Dictionary<System.Guid,OneStream.Shared.Wcf.Group> | groups | The groups dictionary |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object,System.Object)
System.Object.GetHashCode
System.Object.GetType
System.Object.MemberwiseClone
System.Object.ReferenceEquals(System.Object,System.Object)
System.Object.ToString