Table of Contents

Class RepositoryItem

Namespace
combit.Reporting.Repository
Assembly
combit.ListLabel31.CrossPlatform.dll

Represents an entry of a IRepository.

public class RepositoryItem
Inheritance
RepositoryItem
Inherited Members

Constructors

RepositoryItem(string, string, string, DateTime)

Initializes a new instance of the RepositoryItem class.

public RepositoryItem(string internalID, string descriptor, string type, DateTime lastModificationUTC)

Parameters

internalID string

See InternalID.

descriptor string

See Descriptor.

type string

See Type.

lastModificationUTC DateTime

See LastModificationUTC.

Fields

MAXIMUM_TYPE_LENGTH

Maximum length of the Type property.

public const int MAXIMUM_TYPE_LENGTH = 100

Field Value

int

Properties

Descriptor

Internal file metadata (name in UI etc.) in a string-serialized format. May be modified using the RepositoryItemDescriptor class.

public string Descriptor { get; set; }

Property Value

string

FolderId

The Id of a parent folder for the tree structure.

public string? FolderId { get; set; }

Property Value

string

FolderPath

Full folder path.

public string? FolderPath { get; set; }

Property Value

string

InternalID

ID within a LL project. Usually of the form 'repository://[GUID]'. Must be unique within one repository.

public string InternalID { get; set; }

Property Value

string

IsEmpty

Flags a repository item as empty. For project items, this will cause the designer to initialize a new project when loading the repository item.

public bool IsEmpty { get; set; }

Property Value

bool

LastModificationUTC

Timestamp of the last modification of the repository item (UTC time). If required, the timestamp is converted to local time internally.

public DateTime LastModificationUTC { get; set; }

Property Value

DateTime

Type

Item type (drilldown project, image, shapefile, etc. or a custom type). Maximum length is MAXIMUM_TYPE_LENGTH. The supported values are defined in RepositoryItemType.

public string Type { get; set; }

Property Value

string

UIName

Name of the file. Fetched from the internal file metadata Descriptor

public string? UIName { get; set; }

Property Value

string

Methods

ExtractDisplayName(int)

Returns the display name of the repository item that is encoded in the descriptor. As this can be a rather expensive operation, consider saving this value instead of repeatedly calling this method.

public string? ExtractDisplayName(int lcid = 0)

Parameters

lcid int

LCID of the language to return.

Returns

string

IsValidItemId(string)

Validates if the specified ID has a valid format for the InternalID of a repository item.

public static bool IsValidItemId(string repoId)

Parameters

repoId string

Returns

bool