Class AssetInfo
Represents asset information.
Inheritance
Inherited Members
Namespace: Quark.CMSAdapters.QPP.Data
Assembly: Quark.CMSAdapters.QPP.dll
Syntax
public class AssetInfo
Constructors
AssetInfo()
Initializes a new instance of the AssetInfo class.
Declaration
public AssetInfo()
AssetInfo(Int64, Int64, Int64, String, Boolean, String, String)
Initializes a new instance of the AssetInfo class.
Declaration
public AssetInfo(long assetId, long majorVersion, long minorVersion, string collectionPath, bool isDataDoc, string originalFileName, string assetName)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | assetId | The asset id. |
System.Int64 | majorVersion | The major version. |
System.Int64 | minorVersion | The minor version. |
System.String | collectionPath | The collection path. |
System.Boolean | isDataDoc | if set to |
System.String | originalFileName | Name of the original file. |
System.String | assetName | Name of the asset. |
AssetInfo(Int64, String, Boolean, String, String)
Initializes a new instance of the AssetInfo class.
Declaration
public AssetInfo(long assetId, string collectionPath, bool isDataDoc, string originalFileName, string assetName)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | assetId | The asset id. |
System.String | collectionPath | The collection path. |
System.Boolean | isDataDoc | if set to |
System.String | originalFileName | Name of the original file. |
System.String | assetName | Name of the asset. |
AssetInfo(String)
Initializes a new instance of the AssetInfo class.
Declaration
public AssetInfo(string urn)
Parameters
Type | Name | Description |
---|---|---|
System.String | urn | The urn. |
Fields
URNPREFIX
The urn prefix.
Declaration
public const string URNPREFIX = "qpp://"
Field Value
Type | Description |
---|---|
System.String |
Properties
AssetId
Gets or sets the asset id.
Declaration
public long AssetId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 | The asset id. |
AssetName
Gets or sets the name of the asset.
Declaration
public string AssetName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the asset. |
AssetVersion
Gets or sets the asset version.
Declaration
public AssetVersion AssetVersion { get; set; }
Property Value
Type | Description |
---|---|
AssetVersion | The asset version. |
CollectionPath
Gets or sets the collection path.
Declaration
public string CollectionPath { get; set; }
Property Value
Type | Description |
---|---|
System.String | The collection path. |
ComponentInfo
Gets or sets the component information.
Declaration
public OfficeComponentInfo ComponentInfo { get; set; }
Property Value
Type | Description |
---|---|
OfficeComponentInfo | The component information. |
IsDataDoc
Gets or sets a value indicating whether asset is DataDoc
Declaration
public bool IsDataDoc { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsExportedFromLocalFile
Gets or sets a value indicating whether this asset was exported from local file
Declaration
public bool IsExportedFromLocalFile { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsPinned
Gets or sets a value indicating whether asset is pinned to specific version.
Declaration
public bool IsPinned { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RelationId
Gets or sets the relation identifier.
Declaration
public long RelationId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 | The relation identifier. |
Methods
GetVersionInfo()
Returns the version info for the asset.
Declaration
public string GetVersionInfo()
Returns
Type | Description |
---|---|
System.String | The Version |
ToUrn()
Returns a URN for the asset.
Declaration
public string ToUrn()
Returns
Type | Description |
---|---|
System.String | The URN |