Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_LegalDocument" of service "API_LEGAL_DOCUMENT_SRV". This service is part of the following communication scenarios: Legal Document Integration (SAP_COM_0178). See https://api.sap.com/api/API_LEGAL_DOCUMENT_SRV for more information.

Hierarchy

  • Entity
    • LegalDocument

Implements

Index

Constructors

constructor

  • Returns LegalDocument

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional documentDescription

documentDescription: undefined | string

Name. Maximum length: 255.

nullable

Optional internalDocumentStatus

internalDocumentStatus: undefined | string

Document Status. Maximum length: 2.

nullable

Optional legalDocumentSource

legalDocumentSource: undefined | string

LCM Document Source. Maximum length: 3.

nullable

Optional legalTransaction

legalTransaction: undefined | string

Legal Transaction ID. Maximum length: 10.

nullable

Optional lglCntntMChangedByUser

lglCntntMChangedByUser: undefined | string

Changed By User. Maximum length: 12.

nullable

Optional lglCntntMChangedUtcDateTime

lglCntntMChangedUtcDateTime: Moment

Changed UTC Date Time.

nullable

Optional lglCntntMCreatedByUser

lglCntntMCreatedByUser: undefined | string

Created By. Maximum length: 12.

nullable

Optional lglCntntMCreatedUtcDateTime

lglCntntMCreatedUtcDateTime: Moment

Created On.

nullable

Optional lglCntntMDocAccessLvl

lglCntntMDocAccessLvl: undefined | string

Access Level. Maximum length: 4.

nullable

Optional lglCntntMDocAssemblyStatus

lglCntntMDocAssemblyStatus: undefined | string

Document Assembly Status. Displays the status of assembly of a legal document in the process of generating a virtual document from Legal Content Assembly Based on this status, you can filter documents to list all the assembled legal content. Maximum length: 20.

nullable

Optional lglCntntMDocContentType

lglCntntMDocContentType: undefined | string

Document Content Type. Maximum length: 4.

nullable

Optional lglCntntMDocType

lglCntntMDocType: undefined | string

Document Type. Document type defines the type of legal document. Legal document can be either a physical content or a virtual content. This element classifies the type of content in a legal document. Maximum length: 1.

nullable

Optional lglCntntMDocument

lglCntntMDocument: undefined | string

Document ID. Maximum length: 10.

nullable

Optional lglCntntMDocumentIsTopVersion

lglCntntMDocumentIsTopVersion: undefined | false | true

Data element for domain BOOLE: TRUE (='X') and FALSE (=' ').

nullable

Optional lglCntntMDocumentLinkedObjKey

lglCntntMDocumentLinkedObjKey: undefined | string

UUID Char32.

nullable

Optional lglCntntMDocumentLinkedObject

lglCntntMDocumentLinkedObject: undefined | string

Linked SAP Object. Database table of the master record that is linked to the document. In the standard system, many links are supported. You can display these using the input help.Additional links can be defined via specific screens and table entries without changing the program.See also: Maintain object link. Maximum length: 10.

nullable

lglCntntMDocumentUuid

lglCntntMDocumentUuid: string

Universal Unique Identifier.

Optional lglCntntMLanguage

lglCntntMLanguage: undefined | string

Language Key. Maximum length: 2.

nullable

Optional lglCntntMTmplId

lglCntntMTmplId: undefined | string

Template ID. Maximum length: 10.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

toLglDocStamp

toLglDocStamp: LglDocStamp[]

One-to-many navigation property to the LglDocStamp entity.

Static ALL_FIELDS

ALL_FIELDS: AllFields<LegalDocument> = new AllFields('*', LegalDocument)

All fields selector.

Static DOCUMENT_DESCRIPTION

DOCUMENT_DESCRIPTION: StringField<LegalDocument> = new StringField('DocumentDescription', LegalDocument, 'Edm.String')

Static representation of the documentDescription property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static INTERNAL_DOCUMENT_STATUS

INTERNAL_DOCUMENT_STATUS: StringField<LegalDocument> = new StringField('InternalDocumentStatus', LegalDocument, 'Edm.String')

Static representation of the internalDocumentStatus property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LEGAL_DOCUMENT_SOURCE

LEGAL_DOCUMENT_SOURCE: StringField<LegalDocument> = new StringField('LegalDocumentSource', LegalDocument, 'Edm.String')

Static representation of the legalDocumentSource property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LEGAL_TRANSACTION

LEGAL_TRANSACTION: StringField<LegalDocument> = new StringField('LegalTransaction', LegalDocument, 'Edm.String')

Static representation of the legalTransaction property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_CHANGED_BY_USER

LGL_CNTNT_M_CHANGED_BY_USER: StringField<LegalDocument> = new StringField('LglCntntMChangedByUser', LegalDocument, 'Edm.String')

Static representation of the lglCntntMChangedByUser property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_CHANGED_UTC_DATE_TIME

LGL_CNTNT_M_CHANGED_UTC_DATE_TIME: DateField<LegalDocument> = new DateField('LglCntntMChangedUTCDateTime', LegalDocument, 'Edm.DateTimeOffset')

Static representation of the lglCntntMChangedUtcDateTime property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_CREATED_BY_USER

LGL_CNTNT_M_CREATED_BY_USER: StringField<LegalDocument> = new StringField('LglCntntMCreatedByUser', LegalDocument, 'Edm.String')

Static representation of the lglCntntMCreatedByUser property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_CREATED_UTC_DATE_TIME

LGL_CNTNT_M_CREATED_UTC_DATE_TIME: DateField<LegalDocument> = new DateField('LglCntntMCreatedUTCDateTime', LegalDocument, 'Edm.DateTimeOffset')

Static representation of the lglCntntMCreatedUtcDateTime property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOCUMENT

LGL_CNTNT_M_DOCUMENT: StringField<LegalDocument> = new StringField('LglCntntMDocument', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocument property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOCUMENT_IS_TOP_VERSION

LGL_CNTNT_M_DOCUMENT_IS_TOP_VERSION: BooleanField<LegalDocument> = new BooleanField('LglCntntMDocumentIsTopVersion', LegalDocument, 'Edm.Boolean')

Static representation of the lglCntntMDocumentIsTopVersion property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOCUMENT_LINKED_OBJECT

LGL_CNTNT_M_DOCUMENT_LINKED_OBJECT: StringField<LegalDocument> = new StringField('LglCntntMDocumentLinkedObject', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocumentLinkedObject property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOCUMENT_LINKED_OBJ_KEY

LGL_CNTNT_M_DOCUMENT_LINKED_OBJ_KEY: StringField<LegalDocument> = new StringField('LglCntntMDocumentLinkedObjKey', LegalDocument, 'Edm.Guid')

Static representation of the lglCntntMDocumentLinkedObjKey property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOCUMENT_UUID

LGL_CNTNT_M_DOCUMENT_UUID: StringField<LegalDocument> = new StringField('LglCntntMDocumentUUID', LegalDocument, 'Edm.Guid')

Static representation of the lglCntntMDocumentUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOC_ACCESS_LVL

LGL_CNTNT_M_DOC_ACCESS_LVL: StringField<LegalDocument> = new StringField('LglCntntMDocAccessLvl', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocAccessLvl property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOC_ASSEMBLY_STATUS

LGL_CNTNT_M_DOC_ASSEMBLY_STATUS: StringField<LegalDocument> = new StringField('LglCntntMDocAssemblyStatus', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocAssemblyStatus property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOC_CONTENT_TYPE

LGL_CNTNT_M_DOC_CONTENT_TYPE: StringField<LegalDocument> = new StringField('LglCntntMDocContentType', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocContentType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_DOC_TYPE

LGL_CNTNT_M_DOC_TYPE: StringField<LegalDocument> = new StringField('LglCntntMDocType', LegalDocument, 'Edm.String')

Static representation of the lglCntntMDocType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_LANGUAGE

LGL_CNTNT_M_LANGUAGE: StringField<LegalDocument> = new StringField('LglCntntMLanguage', LegalDocument, 'Edm.String')

Static representation of the lglCntntMLanguage property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static LGL_CNTNT_M_TMPL_ID

LGL_CNTNT_M_TMPL_ID: StringField<LegalDocument> = new StringField('LglCntntMTmplID', LegalDocument, 'Edm.String')

Static representation of the lglCntntMTmplId property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_LGL_DOC_STAMP

TO_LGL_DOC_STAMP: Link<LegalDocument, LglDocStamp> = new Link('to_LglDocStamp', LegalDocument, LglDocStamp)

Static representation of the one-to-many navigation property toLglDocStamp for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<LegalDocument> | DateField<LegalDocument> | BooleanField<LegalDocument> | Link<LegalDocument, LglDocStamp>> = [LegalDocument.LGL_CNTNT_M_DOCUMENT_UUID,LegalDocument.LGL_CNTNT_M_DOCUMENT,LegalDocument.LGL_CNTNT_M_DOCUMENT_LINKED_OBJECT,LegalDocument.LGL_CNTNT_M_DOCUMENT_LINKED_OBJ_KEY,LegalDocument.LEGAL_TRANSACTION,LegalDocument.LGL_CNTNT_M_DOC_CONTENT_TYPE,LegalDocument.LGL_CNTNT_M_LANGUAGE,LegalDocument.DOCUMENT_DESCRIPTION,LegalDocument.LGL_CNTNT_M_DOC_ACCESS_LVL,LegalDocument.LEGAL_DOCUMENT_SOURCE,LegalDocument.LGL_CNTNT_M_CHANGED_UTC_DATE_TIME,LegalDocument.LGL_CNTNT_M_CHANGED_BY_USER,LegalDocument.LGL_CNTNT_M_CREATED_UTC_DATE_TIME,LegalDocument.LGL_CNTNT_M_CREATED_BY_USER,LegalDocument.INTERNAL_DOCUMENT_STATUS,LegalDocument.LGL_CNTNT_M_DOCUMENT_IS_TOP_VERSION,LegalDocument.LGL_CNTNT_M_DOC_ASSEMBLY_STATUS,LegalDocument.LGL_CNTNT_M_TMPL_ID,LegalDocument.LGL_CNTNT_M_DOC_TYPE,LegalDocument.TO_LGL_DOC_STAMP]

All fields of the LegalDocument entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_LEGAL_DOCUMENT_SRV"

Default url path for the according service.

Static _entityName

_entityName: string = "A_LegalDocument"

Technical entity name for LegalDocument.

Static _keyFields

_keyFields: Array<Selectable<LegalDocument>> = [LegalDocument.LGL_CNTNT_M_DOCUMENT_UUID]

All key fields of the LegalDocument entity.

Static _keys

_keys: object = LegalDocument._keyFields.reduce((acc: { [keys: string]: Selectable<LegalDocument> }, field: Selectable<LegalDocument>) => {acc[field._fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property LegalDocument.

Type declaration

Static _serviceName

_serviceName: string = "API_LEGAL_DOCUMENT_SRV"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for LegalDocument.

Accessors

versionIdentifier

  • get versionIdentifier(): string
  • ETag version identifier accessor.

    Returns string

    The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    deprecated

    Since 1.12.0. Will be removed in version 2.0.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string | undefined): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string | undefined

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity LegalDocument.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<LegalDocument>

    A builder that constructs instances of entity type LegalDocument.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, EntityTypeForceMandatoryT>(entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>): EntityBuilderType<EntityT, EntityTypeForceMandatoryT>
  • Type parameters

    • EntityT: Entity

    • EntityTypeForceMandatoryT

    Parameters

    • entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>

    Returns EntityBuilderType<EntityT, EntityTypeForceMandatoryT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the LegalDocument entity type.

    Returns LegalDocumentRequestBuilder

    A LegalDocument request builder.