Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This server-side class is necessary for using the version control system (VCS).

isLocalPackHasReferences(localPackId)

This method checks the record from the sys_vcs_local_pack table if it has referenced current* records from the sys_vcs_record table.

*the current records have the isCurrent attribute is TRUE.

Проверяет, есть ли у записи из sys_vcs_local_pack ссылающиеся current записи(у которых атрибут isCurrent истинный) из sys_vcs_record, принимает int localPackId, возвращает true если есть current(текущие, актуальные) записи, иначе false.


Parameter(s):

NameTypeMandatoryDefault Value
localPackIdIntegerYN


Return:

TypeDescription
BooleanThe method returns TRUE if it
finds 
finds current records; otherwise, it returns FALSE.


Example:

Code Block
languagejs
titleisLocalPackHasReferences
let vcsLocalPackId = 156144163704236641;
let vcs = new SimpleVcsApi();
if (vcs.isLocalPackHasReferences(vcsLocalPackId)) {
  ss.addInfoMessage('Local Pack has current VCS records');
}
isLocalPackHasReferences


isRetrievedPackHasReferences(retrievedPackId)

This method check the record from the sys_vcs_retrieved_pack table if it has referenced records from the sys_vcs_record table.localPackId)Method description


Parameter(s):

NameTypeMandatoryDefault Value
retrievedPackIdIntegerYN


Return:

TypeDescription
BooleanThis method returns TRUE if there are any referenced records; otherwise, it returns FALSE.


Example:

Code Block
languagejs
titleisRetrievedPackHasReferences
let vcsRetrievedPackId = 156144163704236641;
let vcs = new SimpleVcsApi();
if (vcs.isRetrievedPackHasReferences(vcsRetrievedPackId)) {
ss.addInfoMessage('Retrieved Pack has current VCS records');
}



isLocalPackHasReferences(localPackId)

Method description


Parameter(s):

NameTypeMandatoryDefault Value





Return:

TypeDescription



Example:

Code Block





Table of Contents
absoluteUrltrue
classfixedPosition