Skip to main content

DelegationBase Constructors

An object defining constructors for the DelegationBase class.

DelegationBase(id, name, type, from, to, startDate, endDate, isActive, createdBy, createdAt, modifiedBy, modifiedAt, deletedBy, deletedAt, tokenId, internalAccessTokenId, accessTokenId, positionIds, creationType, basedType)

Initializes a new instance of the DelegationBase class with specified details.

Parameters:

id (required): long
Unique identifier for the delegation.

name (required): Dictionary<string, string>
Defines the multi language name of the delegation by culture.

type (required): DelegationType
The DelegationType enum defines the types of delegation available, specifying different modes of access or authorization. In this enum Delegation means this delegation given to spesific user with specific permissions that decided by user. On the other hand Token act like access token with spesific that decided by user.

from (required): ClientUserInfo
Information about the user who initiated the delegation.

to (required): ClientUserInfo
Information about the user to whom the delegation is assigned.

startDate (required): DateTimeOffset
Specifies the start date and time of the delegation.

endDate (required): DateTimeOffset?
End date and time for the delegation, indicating when it should expire. If its set to null, that means delegation doesn't have expiration date.

isActive (required): bool
Indicates whether the delegation is currently active.

createdBy (required): ClientUserInfo
Information about the user who created the delegation.

createdAt (required): DateTimeOffset
The date and time when the delegation was created.

modifiedBy (required): ClientUserInfo
Information about the user who last modified the delegation.

modifiedAt (required): DateTimeOffset?
The date and time when the delegation was last modified.

deletedBy (required): ClientUserInfo
Information about the user who deleted the delegation.

deletedAt (required): DateTimeOffset?
The date and time when the delegation was deleted.

tokenId (required): string
Token ID associated with the delegation.

internalAccessTokenId (required): string
Access token ID, populated only after creating a delegation.

accessTokenId (required): string
Access token ID, populated only after creating a delegation.

positionIds (required): long[]
A list of position IDs associated with the delegation given user positions.

creationType (required): CreationType
Specifies the creation type for the delegation, indicating how it was generated or categorized.

basedType (required): BasedType
Specifies the basis type for the delegation, defining the origin or foundation of the delegation.