OpenPetra
Free Administration Software for Non-Profits
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector Class Reference

get the data history of a partner More...

Static Public Member Functions

static List< string > GetUniqueTypes (Int64 APartnerKey)
 Returns all unique data types More...
 
static DataConsentTDS LastKnownEntry (Int64 APartnerKey, string ADataType)
 Returns the last known entry for a partner and type, could be empty also returns all consent channel and purposes More...
 
static DataConsentTDS GetHistory (Int64 APartnerKey, string ADataType)
 Returns history for given data type More...
 
static bool EditHistory (Int64 APartnerKey, string ADataType, string AChannelCode, DateTime AConsentDate, string AConsentCodes, out TVerificationResultCollection AVerificationResult)
 Edits the selected consent type to be added or removed consent entrys, only the last entry for a datatype can be edited and even duh it says edit, it actually creates a new entry in history More...
 
static DataConsentTDS GetConsentChannelAndPurpose ()
 Lists all consents channels and purposes More...
 
static bool RegisterChanges (List< string > JsonChanges, List< string > NeededChanges)
 suppost to be called by SavePartner it will update the DataHistory entrys with new data and the users given: type, value channel, permissions and date More...
 

Detailed Description

get the data history of a partner

Member Function Documentation

◆ EditHistory()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.EditHistory ( Int64  APartnerKey,
string  ADataType,
string  AChannelCode,
DateTime  AConsentDate,
string  AConsentCodes,
out TVerificationResultCollection  AVerificationResult 
)
inlinestatic

Edits the selected consent type to be added or removed consent entrys, only the last entry for a datatype can be edited and even duh it says edit, it actually creates a new entry in history

AConsentCodes is a comma separated list of the new allowed consent codes

◆ GetConsentChannelAndPurpose()

static DataConsentTDS Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.GetConsentChannelAndPurpose ( )
inlinestatic

Lists all consents channels and purposes

◆ GetHistory()

static DataConsentTDS Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.GetHistory ( Int64  APartnerKey,
string  ADataType 
)
inlinestatic

Returns history for given data type

◆ GetUniqueTypes()

static List< string > Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.GetUniqueTypes ( Int64  APartnerKey)
inlinestatic

Returns all unique data types

◆ LastKnownEntry()

static DataConsentTDS Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.LastKnownEntry ( Int64  APartnerKey,
string  ADataType 
)
inlinestatic

Returns the last known entry for a partner and type, could be empty also returns all consent channel and purposes

◆ RegisterChanges()

static bool Ict.Petra.Server.MPartner.Partner.WebConnectors.TDataHistoryWebConnector.RegisterChanges ( List< string >  JsonChanges,
List< string >  NeededChanges 
)
inlinestatic

suppost to be called by SavePartner it will update the DataHistory entrys with new data and the users given: type, value channel, permissions and date

Returns

The documentation for this class was generated from the following file: