Skip to main content
Version: 6.3

Approval Service

This service defines methods for managing cover persons and approvals for work and project times.

GetOpenApprovalCountForIdentity

This method returns the number of open approvals for work and project times of the current identity.

List<ApprovalPanelsInformationDto> GetOpenApprovalCountForIdentity(
out TpFault fault,
TpAuthentication authentication);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
return valueList containing the number of open approvals.

GetOpenProjectTimeApprovalsForIdentity

This method returns the open project time approvals of the current identity.

List<ProjectTimeApprovalItemDto> GetOpenProjectTimeApprovalsForIdentity(
out TpFault fault,
TpAuthentication authentication);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
return valueList containing the open project time approvals.

GetOpenWorkTimeApprovalsForIdentity

This method returns the open work time approvals of the current identity and organization unit.

List<WorkTimeApprovalItemDto> GetOpenWorkTimeApprovalsForIdentity(
out TpFault fault,
TpAuthentication authentication,
Guid selectedOrgaUnitId);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
selectedOrgaUnitIdID of the selected organization unit.
return valueList containing the open work time approvals.

GetCoverPersons

This method returns the cover persons for the specified users and approval request origin.

List<CoverPersonDto> GetCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
userIdsList of user IDs.
originOrigin of the approval request.

GetApprovers

This method returns all approvers for the specified users and approval request origin.

List<ApproverDto> GetApprovers(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
userIdsList of user IDs for which approvers shall be retrieved.
originOrigin of the approval request.
return valueList containing the approvers.

SaveApprover

This method saves an approver.

ApproverDto SaveApprover(
out TpFault fault,
TpAuthentication authentication,
ApproverSaveDto approver);
Needed Permissionapproval@manage
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
approverApprover to save.
return valueThe saved approver.

DeleteApprovers

This method deletes the approvers for the specified users.

void DeleteApprovers(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
Needed Permissionapproval@manage
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
userIdsList of user IDs for which approvers shall be deleted.
originOrigin of the approval request.

Sanity

This method returns a server timestamp. It can be used to calculate the round-trip time and to verify service availability.

DateTime Sanity(
out TpFault fault);
Needed Permission---
NameModifierDescription
faultOutContains the error if an exception occurs.
return valueServer timestamp when the message was received.
return valueList containing the cover persons.

GetAvailableCoverPersonForIdentity

This method returns the available cover persons for the current identity.

List<CoverPersonDto> GetAvailableCoverPersonForIdentity(
out TpFault fault,
TpAuthentication authentication);
Needed Permissionapproval@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
return valueList containing the available cover persons.

SaveCoverPersons

This method saves the cover persons.

List<CoverPersonDto> SaveCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<CoverPersonSaveDto> coverPersons);
Needed Permissionapproval@manage
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
coverPersonsCover persons to save.
return valueList containing the saved cover persons.

DeleteCoverPersons

This method deletes the cover persons for the specified users.

void DeleteCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<Guid> approverIds,
ApprovalOrigin origin);
Needed Permissionapproval@manage
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
approverIdsIDs of the users whose cover persons shall be deleted.
originOrigin of the approval request.