Search Results for

    Show / Hide Table of Contents

    Class ReferenceManager

    IReferenceManager interface implementation

    Inheritance
    System.Object
    ReferenceManager
    Implements
    IReferenceManager
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Quark.CMSAdapters.QPP
    Assembly: Quark.CMSAdapters.QPP.dll
    Syntax
    public class ReferenceManager : IReferenceManager

    Constructors

    ReferenceManager()

    Initializes a new instance of the ReferenceManager class.

    Declaration
    public ReferenceManager()

    Properties

    URLPrefix

    Gets the prefix of the "UniformResourceLocator" set in the Drag-n-Drop data object e.g. qps:.

    Declaration
    public string URLPrefix { get; }
    Property Value
    Type Description
    System.String

    The URL prefix.

    URNPrefix

    Gets the prefix of the urn denoting CMS asset e.g qdps://.

    Declaration
    public string URNPrefix { get; }
    Property Value
    Type Description
    System.String

    The URN prefix.

    Methods

    AddRelationAttributes(OfficeComponentInfo, List<AttributeValue>)

    Adds the relation attributes.

    Declaration
    public void AddRelationAttributes(OfficeComponentInfo componentInfo, List<AttributeValue> attributeList)
    Parameters
    Type Name Description
    OfficeComponentInfo componentInfo

    The component information.

    System.Collections.Generic.List<AttributeValue> attributeList

    The attribute list.

    GetContentInfo(String)

    Gets the content info.

    Declaration
    public ContentInfo GetContentInfo(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    ContentInfo

    The content info.

    GetLatestAssetInfo(Int64)

    Gets the latest asset info.

    Declaration
    public AssetInfo GetLatestAssetInfo(long assetId)
    Parameters
    Type Name Description
    System.Int64 assetId

    The asset id.

    Returns
    Type Description
    AssetInfo

    The asset info.

    GetLocalUrn(String, SaveOptions)

    Gets the local urn.

    Declaration
    public string GetLocalUrn(string urn, SaveOptions parentDocumentSaveOptions)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    SaveOptions parentDocumentSaveOptions

    The parent document save options.

    Returns
    Type Description
    System.String

    The local urn.

    GetParentNodes(String)

    Gets the parent nodes.

    Declaration
    public List<ParentNode> GetParentNodes(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.Collections.Generic.List<ParentNode>

    GetPinnedUrn(String)

    Gets the urn pinned to specific asset version.

    Declaration
    public string GetPinnedUrn(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.String

    The pinned urn.

    GetReferenceNodes(String)

    Gets the reference nodes.

    Declaration
    public List<ReferenceNode> GetReferenceNodes(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.Collections.Generic.List<ReferenceNode>

    GetUnpinnedUrn(String)

    Gets the unpinned urn.

    Declaration
    public string GetUnpinnedUrn(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.String

    The unpinned urn.

    GetURLInfo(String)

    Gets complete information of the "UniformResourceLocator" set in the Drag-n-Drop data object.

    Declaration
    public ContentInfo GetURLInfo(string url)
    Parameters
    Type Name Description
    System.String url

    The URL.

    Returns
    Type Description
    ContentInfo

    GetVersionInfo(String)

    Gets the version info.

    Declaration
    public string GetVersionInfo(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.String

    IsPinnedUrn(String)

    Determines whether the specified urn is pinned to the specific asset version.

    Declaration
    public bool IsPinnedUrn(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.Boolean

    true if specified urn is pinned to the specific asset version; otherwise, false.

    IsValid(String)

    Determines whether the specified urn is valid.

    Declaration
    public bool IsValid(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Returns
    Type Description
    System.Boolean

    true if the specified urn is valid; otherwise, false.

    SetAssetRelations(Int64, List<ReferenceNode>, Dictionary<ReferenceNode, Dictionary<Int64, AttributeValue>>)

    Sets the asset relations.

    Declaration
    public AssetRelation[] SetAssetRelations(long parentAssetId, List<ReferenceNode> refNodes, Dictionary<ReferenceNode, Dictionary<long, AttributeValue>> attributeMap)
    Parameters
    Type Name Description
    System.Int64 parentAssetId

    AssetId of parent

    System.Collections.Generic.List<ReferenceNode> refNodes

    The ref nodes.

    System.Collections.Generic.Dictionary<ReferenceNode, System.Collections.Generic.Dictionary<System.Int64, AttributeValue>> attributeMap

    The attribute map.

    Returns
    Type Description
    AssetRelation[]

    ValidateReplaceUrn(ref String, String)

    Validates the urn which replaces local urn.

    Declaration
    public void ValidateReplaceUrn(ref string urn, string localUrn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    System.String localUrn

    The local urn.

    Implements

    IReferenceManager

    Extension Methods

    UtilityExtensions.DeepClone<T>(T)
    UtilityExtensions.IsMethodImplemented(Object, String)
    UtilityExtensions.LogError(Object, String)
    UtilityExtensions.ShowAndLogError(Object)
    UtilityExtensions.ShowAndLogError(Object, Window)
    UtilityExtensions.ShowAndLogError(Object, String, Window, String, String)
    UtilityExtensions.GetJsonValue<T>(Object, String, Boolean)
    UtilityExtensions.ToAssetInfo(Object, Nullable<Boolean>)
    In This Article
    Back to top © 2022 Quark Software Inc. All rights reserved.