C# Class Connects.Profiles.Service.ServiceImplementation.DataIO

Datei anzeigen Open project: ProfilesRNS/ProfilesRNS Class Usage Examples

Public Methods

Method Description
AddSQLParameters ( SqlCommand sqlcmd, SqlParameter sqlParam ) : void
ConvertDepartment ( string department ) : string
ConvertDivision ( string division ) : string
ConvertInstitution ( string institution ) : string
ConvertV2ToBetaSearch ( string RDFResults, string queryid, string version, bool individual ) : string
ExecuteSQLDataCommand ( SqlCommand sqlcmd ) : void
ExecuteSQLDataCommand ( SqlCommand sqlcmd, object o ) : void
GetCommandTimeout ( ) : int
GetConvertedListItem ( List listitems, string itemtoconvert ) : string
GetCustomPubItem ( List pubs, string mpid ) : CustomPub
GetDBCommand ( SqlConnection sqlcn, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : SqlCommand
GetDBCommand ( string SqlConnectionString, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : SqlCommand
GetDBConnection ( string Connectionstring ) : SqlConnection

returns sqlconnection object

GetDepartments ( ) : List

To return the list of all the Departments

GetDivisions ( ) : List

To return the list of all the Divisions

GetFacultyRanks ( ) : List
GetFacultyRanks ( string rankstrings ) : List
GetFilters ( ) : DataSet
GetInstitutionAbbreviation ( string institutionname ) : string
GetInstitutions ( ) : List

To return the list of all the Institutions

GetPersonID ( string ecomid ) : int
GetPersonTypes ( ) : DataSet

Get a list of person types from the database. Logically reorganized to be in the correct format for the ComboTreeCheck control

GetProfileNetworkForBrowser ( Int32 personid ) : XmlDocument
GetRESTBasePath ( ) : string
GetSQLDataReader ( SqlCommand sqlcmd ) : System.Data.SqlClient.SqlDataReader
GetSQLDataReader ( string ConnectionString, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : System.Data.SqlClient.SqlDataReader
GetTotalSearchConnections ( XmlDocument searchdata, XmlNamespaceManager namespaces ) : System.Int64
Search ( XmlDocument searchoptions, bool secure ) : XmlDocument
Search ( string personid, bool secure ) : XmlDocument
SearchRequest ( string searchstring, string exactphrase, string fname, string lname, string institution, string institutionallexcept, string department, string departmentallexcept, string division, string divisionallexcept, string classuri, string limit, string offset, string sortby, string sortdirection, string otherfilters, string personid, string ecomid, string harvardid ) : XmlDocument
SessionCreate ( Connects.Profiles.Service.ServiceImplementation.Session &session ) : void

Used to create a custom Profiles Session instance. This instance is used to track and store user activity as a form of Profiles Network.

SessionUpdate ( Connects.Profiles.Service.ServiceImplementation.Session &session ) : void

Used to create a custom Profiles Session instance. This instance is used to track and store user activity as a form of Profiles Network.

Private Methods

Method Description
DepartmentSort ( string direction ) : string
DivisionSort ( string direction ) : string
FilterSort ( string direction ) : string
GetCustomPubs ( System.Int64 nodeid ) : List
GetOtherOptions ( string otheroptions ) : List
GetPersonData ( Int32 PersonId ) : PersonData
GetPersonID ( System.Int64 nodeid ) : int
GetPubCount ( System.Int64 nodeid ) : int
InstitutionSort ( string direction ) : string
NameSort ( string direction ) : string
TitleSort ( string direction ) : string

Method Details

AddSQLParameters() public method

public AddSQLParameters ( SqlCommand sqlcmd, SqlParameter sqlParam ) : void
sqlcmd System.Data.SqlClient.SqlCommand
sqlParam System.Data.SqlClient.SqlParameter
return void

ConvertDepartment() public method

public ConvertDepartment ( string department ) : string
department string
return string

ConvertDivision() public method

public ConvertDivision ( string division ) : string
division string
return string

ConvertInstitution() public method

public ConvertInstitution ( string institution ) : string
institution string
return string

ConvertV2ToBetaSearch() public method

public ConvertV2ToBetaSearch ( string RDFResults, string queryid, string version, bool individual ) : string
RDFResults string
queryid string
version string
individual bool
return string

ExecuteSQLDataCommand() public method

public ExecuteSQLDataCommand ( SqlCommand sqlcmd ) : void
sqlcmd System.Data.SqlClient.SqlCommand
return void

ExecuteSQLDataCommand() public method

public ExecuteSQLDataCommand ( SqlCommand sqlcmd, object o ) : void
sqlcmd System.Data.SqlClient.SqlCommand
o object
return void

GetCommandTimeout() public method

public GetCommandTimeout ( ) : int
return int

GetConvertedListItem() public method

public GetConvertedListItem ( List listitems, string itemtoconvert ) : string
listitems List
itemtoconvert string
return string

GetCustomPubItem() public method

public GetCustomPubItem ( List pubs, string mpid ) : CustomPub
pubs List
mpid string
return CustomPub

GetDBCommand() public method

public GetDBCommand ( SqlConnection sqlcn, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : SqlCommand
sqlcn System.Data.SqlClient.SqlConnection
CmdText String
CmdType CommandType
CmdBehavior CommandBehavior
sqlParam System.Data.SqlClient.SqlParameter
return System.Data.SqlClient.SqlCommand

GetDBCommand() public method

public GetDBCommand ( string SqlConnectionString, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : SqlCommand
SqlConnectionString string
CmdText String
CmdType CommandType
CmdBehavior CommandBehavior
sqlParam System.Data.SqlClient.SqlParameter
return System.Data.SqlClient.SqlCommand

GetDBConnection() public method

returns sqlconnection object
public GetDBConnection ( string Connectionstring ) : SqlConnection
Connectionstring string
return System.Data.SqlClient.SqlConnection

GetDepartments() public method

To return the list of all the Departments
public GetDepartments ( ) : List
return List

GetDivisions() public method

To return the list of all the Divisions
public GetDivisions ( ) : List
return List

GetFacultyRanks() public method

public GetFacultyRanks ( ) : List
return List

GetFacultyRanks() public method

public GetFacultyRanks ( string rankstrings ) : List
rankstrings string
return List

GetFilters() public method

public GetFilters ( ) : DataSet
return System.Data.DataSet

GetInstitutionAbbreviation() public method

public GetInstitutionAbbreviation ( string institutionname ) : string
institutionname string
return string

GetInstitutions() public method

To return the list of all the Institutions
public GetInstitutions ( ) : List
return List

GetPersonID() public method

public GetPersonID ( string ecomid ) : int
ecomid string
return int

GetPersonTypes() public method

Get a list of person types from the database. Logically reorganized to be in the correct format for the ComboTreeCheck control
public GetPersonTypes ( ) : DataSet
return System.Data.DataSet

GetProfileNetworkForBrowser() public method

public GetProfileNetworkForBrowser ( Int32 personid ) : XmlDocument
personid System.Int32
return System.Xml.XmlDocument

GetRESTBasePath() public method

public GetRESTBasePath ( ) : string
return string

GetSQLDataReader() public method

public GetSQLDataReader ( SqlCommand sqlcmd ) : System.Data.SqlClient.SqlDataReader
sqlcmd System.Data.SqlClient.SqlCommand
return System.Data.SqlClient.SqlDataReader

GetSQLDataReader() public method

public GetSQLDataReader ( string ConnectionString, String CmdText, CommandType CmdType, CommandBehavior CmdBehavior, SqlParameter sqlParam ) : System.Data.SqlClient.SqlDataReader
ConnectionString string
CmdText String
CmdType CommandType
CmdBehavior CommandBehavior
sqlParam System.Data.SqlClient.SqlParameter
return System.Data.SqlClient.SqlDataReader

GetTotalSearchConnections() public method

public GetTotalSearchConnections ( XmlDocument searchdata, XmlNamespaceManager namespaces ) : System.Int64
searchdata System.Xml.XmlDocument
namespaces System.Xml.XmlNamespaceManager
return System.Int64

Search() public method

public Search ( XmlDocument searchoptions, bool secure ) : XmlDocument
searchoptions System.Xml.XmlDocument
secure bool
return System.Xml.XmlDocument

Search() public method

public Search ( string personid, bool secure ) : XmlDocument
personid string
secure bool
return System.Xml.XmlDocument

SearchRequest() public method

public SearchRequest ( string searchstring, string exactphrase, string fname, string lname, string institution, string institutionallexcept, string department, string departmentallexcept, string division, string divisionallexcept, string classuri, string limit, string offset, string sortby, string sortdirection, string otherfilters, string personid, string ecomid, string harvardid ) : XmlDocument
searchstring string
exactphrase string
fname string
lname string
institution string
institutionallexcept string
department string
departmentallexcept string
division string
divisionallexcept string
classuri string
limit string
offset string
sortby string
sortdirection string
otherfilters string
personid string
ecomid string
harvardid string
return System.Xml.XmlDocument

SessionCreate() public method

Used to create a custom Profiles Session instance. This instance is used to track and store user activity as a form of Profiles Network.
public SessionCreate ( Connects.Profiles.Service.ServiceImplementation.Session &session ) : void
session Connects.Profiles.Service.ServiceImplementation.Session ref of Framework.Session object that stores the state of a Profiles user session
return void

SessionUpdate() public method

Used to create a custom Profiles Session instance. This instance is used to track and store user activity as a form of Profiles Network.
public SessionUpdate ( Connects.Profiles.Service.ServiceImplementation.Session &session ) : void
session Connects.Profiles.Service.ServiceImplementation.Session ref of Framework.Session object that stores the state of a Profiles user session
return void