Interface IAppointmentMatrix
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public interface IAppointmentMatrix
Properties
Agenda
Declaration
Property Value
AppointmentText
Declaration
TextRow AppointmentText { get; }
Property Value
BookingType
Declaration
BookingType BookingType { get; }
Property Value
CurrentAppointmentRow
Declaration
AppointmentRow CurrentAppointmentRow { get; }
Property Value
CustomFields
Declaration
EntityCustomFieldsHelper CustomFields { get; }
Property Value
Declaration
EntityExtraFieldsHelper ExtraFields { get; }
Property Value
ForceChildProcessing
Declaration
bool ForceChildProcessing { get; }
Property Value
InnerRemovedMatrix
Declaration
KeyedMatrix<ParticipantInfo, RecurrenceDate, AppointmentRow> InnerRemovedMatrix { get; }
Property Value
InternalNotes
Declaration
TextRow InternalNotes { get; }
Property Value
IsBooking
Declaration
Property Value
IsBookingMaster
Declaration
bool IsBookingMaster { get; }
Property Value
IsDeleted
Declaration
Property Value
IsDirty
Declaration
Property Value
IsExternalInvitation
Declaration
bool IsExternalInvitation { get; }
Property Value
IsRecurring
Declaration
bool IsRecurring { get; }
Property Value
MainBooking
Returns Main or Current Appointment entity.
Declaration
Appointment MainBooking { get; }
Property Value
MainBookingRow
Declaration
AppointmentRow MainBookingRow { get; }
Property Value
Ownership
Declaration
AppointmentMatrix.OwnershipIndex Ownership { get; }
Property Value
PublishHelper
Declaration
EntityPublishHelper PublishHelper { get; }
Property Value
Recurrence
Declaration
RecurrenceInfo Recurrence { get; set; }
Property Value
RecurrenceUpdateMode
Declaration
RecurrenceUpdateMode RecurrenceUpdateMode { get; }
Property Value
SendMailFunction
Declaration
AppointmentMatrix.SendMails SendMailFunction { get; set; }
Property Value
SendNewInvitations
Declaration
List<ParticipantInfo> SendNewInvitations { get; }
Property Value
SendPushMessageToOurself
If true, we will also send push messages to logged in user if specified as recipient
If false, we will filter out logged in user
Declaration
bool SendPushMessageToOurself { get; set; }
Property Value
Task
Declaration
Property Value
Title
Declaration
Property Value
UdefHelper
Declaration
EntityUdefHelper UdefHelper { get; }
Property Value
VisibleForHelper
Declaration
EntityVisibleForHelper VisibleForHelper { get; }
Property Value
Methods
AcceptAsync(ParticipantInfo, CancellationToken)
Accept all occurrences of the appointment for the participant. If only one occurrence exist, then only
this one is accepted (not a recurring booking appointment)
Declaration
Task AcceptAsync(ParticipantInfo participantInfo, CancellationToken cancellationToken = default)
Parameters
Returns
AcceptAsync(int, RecurrenceUpdateMode, CancellationToken)
Accept all occurrences for the current appointment. If only one occurrence exist, then only
this one is accepted (not a recurring booking appointment). The result of the rejection is saved to the database.
Declaration
Task AcceptAsync(int appointmentId, RecurrenceUpdateMode recurrenceUpdateMode, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
int |
appointmentId |
AppointmentId of Invitation or Assignment to be set to accepted.
|
RecurrenceUpdateMode |
recurrenceUpdateMode |
How recurrence updates should be handled
|
CancellationToken |
cancellationToken |
|
Returns
AcceptAsync(CancellationToken)
Accept all occurrences for the current appointment. If only one occurrence exist, then only
this one is accepted (not a recurring booking appointment)
Declaration
Task AcceptAsync(CancellationToken cancellationToken = default)
Parameters
Returns
AcceptRejectedAppointmentAsync(ParticipantInfo, RecurrenceDate, CancellationToken)
Booking owner can accept that a participant has rejected an invitation. The rejected invitation will
then NOT appear in the booking owner's Invitation dialog anymore.
Declaration
Task AcceptRejectedAppointmentAsync(ParticipantInfo participantInfo, RecurrenceDate date, CancellationToken cancellationToken = default)
Parameters
Returns
AcceptRejectedAppointmentAsync(CancellationToken)
Booking owner can accept that a participant has rejected an invitation. The rejected invitation will
then NOT appear in the booking owner's Invitation dialog anymore.
Declaration
Task AcceptRejectedAppointmentAsync(CancellationToken cancellationToken = default)
Parameters
Returns
AcceptWithEmailConfirmationAsync(CancellationToken)
Declaration
Task AcceptWithEmailConfirmationAsync(CancellationToken cancellationToken = default)
Parameters
Returns
AddDateAsync(CancellationToken, params RecurrenceDate[])
Declaration
Task AddDateAsync(CancellationToken cancellationToken, params RecurrenceDate[] dates)
Parameters
Returns
AddDateAsync(CancellationToken, params DateTime[])
Declaration
Task AddDateAsync(CancellationToken cancellationToken, params DateTime[] dates)
Parameters
Returns
AddParticipantAsync(CancellationToken, params ParticipantInfo[])
Declaration
Task AddParticipantAsync(CancellationToken cancellationToken, params ParticipantInfo[] participants)
Parameters
Returns
AssignToAsync(ParticipantInfo, CancellationToken)
Assign the booking to the participant given as parameter. If booking is a recurrence
then the participant is assigned as booking owner for all instances.
Declaration
Task AssignToAsync(ParticipantInfo participantInfo, CancellationToken cancellationToken = default)
Parameters
Returns
AssignToExternalOrganizerAsync(ParticipantInfo, CancellationToken)
Assign the booking to the participant given as parameter. If booking is a recurrence
then the participant is assigned as booking owner for all instances.
Declaration
Task AssignToExternalOrganizerAsync(ParticipantInfo newOwner, CancellationToken cancellationToken = default)
Parameters
Returns
CalculateDaysAsync(CancellationToken)
Declaration
Task CalculateDaysAsync(CancellationToken cancellationToken = default)
Parameters
Returns
CancelAsync(ParticipantInfo, CancellationToken)
Declaration
Task CancelAsync(ParticipantInfo participantInfo, CancellationToken cancellationToken = default)
Parameters
Returns
DeleteAsync()
Delete items in the appointment matrix.
Declaration
Returns
DeleteUnusedInvitationMatrixAsync(bool, CancellationToken)
Declaration
Task DeleteUnusedInvitationMatrixAsync(bool allowCheckOnMainBooking = false, CancellationToken cancellationToken = default)
Parameters
Returns
DeleteWithEmailAsync(CancellationToken)
Declaration
Task DeleteWithEmailAsync(CancellationToken cancellationToken = default)
Parameters
Returns
DemandOwnership(OwnershipIndex)
Demand that the logged in user has the the required ownership requested.
If the required is less than the Ownership, a SoSentryException
is thrown.
Declaration
void DemandOwnership(AppointmentMatrix.OwnershipIndex minimumRequiredOwnership)
Parameters
EmailWasQueued()
Declaration
Returns
GetAllAppointmentRowsAsync(CancellationToken)
Declaration
IAsyncEnumerable<AppointmentRow> GetAllAppointmentRowsAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetDates()
Declaration
RecurrenceDate[] GetDates()
Returns
GetIncludedAppointmentRowsAsync(CancellationToken)
Declaration
IAsyncEnumerable<AppointmentRow> GetIncludedAppointmentRowsAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetInnerMatrixAsync(CancellationToken)
Declaration
Task<KeyedMatrix<ParticipantInfo, RecurrenceDate, AppointmentRow>> GetInnerMatrixAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetLinksHelperAsync(CancellationToken)
Declaration
Task<ActivityLinksHelper> GetLinksHelperAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetMailBodyFromMailBodyAsync(TemplateVariables, string, ParticipantInfo)
Declaration
Task<string> GetMailBodyFromMailBodyAsync(TemplateVariables templateVariables, string mailBody, ParticipantInfo participant)
Parameters
Returns
GetParticipantFullNameAsync(ParticipantInfo, CancellationToken)
Declaration
Task<string> GetParticipantFullNameAsync(ParticipantInfo info, CancellationToken cancellationToken = default)
Parameters
Returns
GetParticipants()
Declaration
ParticipantInfo[] GetParticipants()
Returns
GetRemovedAppointmentRows()
Declaration
IEnumerable<AppointmentRow> GetRemovedAppointmentRows()
Returns
GetTemplateVariablesAsync(CancellationToken)
Declaration
Task<TemplateVariables> GetTemplateVariablesAsync(CancellationToken cancellationToken = default)
Parameters
Returns
HasOwnership(OwnershipIndex)
Determine if the logged in user has the the required ownershiprequested.
If the required is the same or larger than the Ownership, true is returned.
Declaration
bool HasOwnership(AppointmentMatrix.OwnershipIndex minimumRequiredOwnership)
Parameters
Returns
Type |
Description |
bool |
True if minimumRequiredOwnership is the same or larger than the Ownership.
|
HasParticipant(ParticipantInfo)
Declaration
bool HasParticipant(ParticipantInfo participant)
Parameters
Returns
MoveAsync(DateTime, CancellationToken)
Declaration
Task MoveAsync(DateTime newStartTime, CancellationToken cancellationToken = default)
Parameters
Returns
RejectAsync(ParticipantInfo, RecurrenceDate, string, CancellationToken)
Rejects the appointment for the provided participant at the given date
Declaration
Task RejectAsync(ParticipantInfo participantInfo, RecurrenceDate date, string rejectReason, CancellationToken cancellationToken = default)
Parameters
Returns
RejectAsync(ParticipantInfo, string, CancellationToken)
Rejects all occurrences of the appointment for the participant. If only one occurrence exist, then only
this one is rejected (not a recurring booking appointment)
Declaration
Task RejectAsync(ParticipantInfo participantInfo, string rejectReason, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
ParticipantInfo |
participantInfo |
Participant that rejects all occurrences of the appointment
|
string |
rejectReason |
Text that explains why he/she can not attend
|
CancellationToken |
cancellationToken |
|
Returns
RejectAsync(string, CancellationToken)
Rejects all occurrences for the current appointment. If only one occurrence exist, then only
this one is rejected (not a recurring booking appointment)
Declaration
Task RejectAsync(string rejectReason, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
rejectReason |
Text that explains why he/she can not attend
|
CancellationToken |
cancellationToken |
|
Returns
RejectWithEmailConfirmationAsync(string, CancellationToken)
Rejects all occurrences for the current appointment. If only one occurrence exist, then only
this one is rejected (not a recurring booking appointment)
Declaration
Task RejectWithEmailConfirmationAsync(string rejectReason, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
rejectReason |
Text that explains why he/she can not attend
|
CancellationToken |
cancellationToken |
|
Returns
RemoveDateAsync(CancellationToken, params RecurrenceDate[])
Declaration
Task RemoveDateAsync(CancellationToken cancellationToken, params RecurrenceDate[] dates)
Parameters
Returns
RemoveDateAsync(CancellationToken, params DateTime[])
Declaration
Task RemoveDateAsync(CancellationToken cancellationToken, params DateTime[] dates)
Parameters
Returns
RemoveParticipantAsync(CancellationToken, params ParticipantInfo[])
Used to remove participants from a booking
Declaration
Task RemoveParticipantAsync(CancellationToken cancellationToken, params ParticipantInfo[] participants)
Parameters
Returns
SaveAsync()
Declaration
Returns
SetDatesAsync(CancellationToken, params RecurrenceDate[])
Declaration
Task SetDatesAsync(CancellationToken cancellationToken, params RecurrenceDate[] dates)
Parameters
Returns
SetInvitationMailBody(string, string, string)
Declaration
void SetInvitationMailBody(string emailBody, string subject, string templateLanguage)
Parameters
SetModifiedAppointmentFields(AppointmentRow)
Declaration
void SetModifiedAppointmentFields(AppointmentRow row)
Parameters
SetParticipantsAsync(CancellationToken, params ParticipantInfo[])
Declaration
Task SetParticipantsAsync(CancellationToken cancellationToken, params ParticipantInfo[] participants)
Parameters
Returns
SetSeenAsync(CancellationToken)
Sets an appointment Invitation or Assignment to seen.
Declaration
Task SetSeenAsync(CancellationToken cancellationToken = default)
Parameters
Returns
SetSendMailToParticipants(bool)
Set if e-mails are going to be sent to participants that are marked receive mails, using default e-mail options for the logged in user.
Declaration
void SetSendMailToParticipants(bool sendEmailToParticipants)
Parameters
Type |
Name |
Description |
bool |
sendEmailToParticipants |
True if e-mails are going to be sent to participants that are marked receive mails.
|
SetSendMailToParticipants(bool, string, string, string, bool, string, string, string, bool, string)
Set if e-mails are going to be sent to participants that are marked receive mails, with provided mail server options.
Declaration
void SetSendMailToParticipants(bool sendEmailToParticipants, string imapServer, string imapUser, string imapPassword, bool imapSSL, string smtpServer, string smtpUser, string smtpPassword, bool smtpSSL, string sentFolder)
Parameters
Type |
Name |
Description |
bool |
sendEmailToParticipants |
True if e-mails are going to be sent to participants that are marked receive mails.
|
string |
imapServer |
Name/IP with optional port (i.e. server:port)of the IMAP server for storing e-mail in the sent items folder.
|
string |
imapUser |
User-name to use when authenticating against the IMAP server for storing e-mail in the sent items folder.
|
string |
imapPassword |
Password to use when authenticating against the IMAP server for storing e-mail in the sent items folder.
|
bool |
imapSSL |
Use secure connection.
|
string |
smtpServer |
Name/IP with optional port (i.e. server:port)of the SMTP server for sending e-mail.
|
string |
smtpUser |
User-name to use when authenticating against the SMTP server for sending e-mail.
|
string |
smtpPassword |
Password to use when authenticating against the SMT server for sending e-mail.
|
bool |
smtpSSL |
Use secure connection.
|
string |
sentFolder |
|
SetSendMailToParticipants(bool, string, string, string, string, string, string)
Set if e-mails are going to be sent to participants that are marked receive mails, with provided mail server options.
Declaration
void SetSendMailToParticipants(bool sendEmailToParticipants, string imapServer, string imapUser, string imapPassword, string smtpServer, string smtpUser, string smtpPassword)
Parameters
Type |
Name |
Description |
bool |
sendEmailToParticipants |
True if e-mails are going to be sent to participants that are marked receive mails.
|
string |
imapServer |
Name/IP with optional port (i.e. server:port)of the IMAP server for storing e-mail in the sent items folder.
|
string |
imapUser |
User-name to use when authenticating against the IMAP server for storing e-mail in the sent items folder.
|
string |
imapPassword |
Password to use when authenticating against the IMAP server for storing e-mail in the sent items folder.
|
string |
smtpServer |
Name/IP with optional port (i.e. server:port)of the SMTP server for sending e-mail.
|
string |
smtpUser |
User-name to use when authenticating against the SMTP server for sending e-mail.
|
string |
smtpPassword |
Name/IP with optional port (i.e. server:port)of the SMTP server for sending e-mail.
|
SetSendMailToParticipantsAsync(bool, bool)
Declaration
Task SetSendMailToParticipantsAsync(bool sendEmailToParticipants, bool setupConnections)
Parameters
Type |
Name |
Description |
bool |
sendEmailToParticipants |
|
bool |
setupConnections |
|
Returns
UpdateParticipantInfoAsync(ParticipantInfo, CancellationToken)
Updates data regarding mail sending for the participant
Declaration
Task UpdateParticipantInfoAsync(ParticipantInfo participant, CancellationToken cancellationToken = default)
Parameters
Returns
ValidateDaysAsync(CancellationToken)
Declaration
Task ValidateDaysAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Extension Methods