Skip to main content

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​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe 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​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object.
OneStream.Shared.Wcf.UserInfouserInfoThe 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​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object.
System.Collections.Generic.Dictionary<System.Guid,OneStream.Shared.Wcf.Group>groupsThe 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

Was this page helpful?