Search Results for

    Show / Hide Table of Contents

    Class DocumentSaveParameter

    A standard parameter for saving document binary data.

    Inheritance
    object
    SerializedParam
    ServerTaskParameter
    ItemParameter
    DocumentSaveParameter
    Implements
    ICloneable
    INotifyPropertyChanged
    Inherited Members
    ItemParameter.OnPropChanged(string)
    ItemParameter.CopyFromParam(SerializedParam)
    ItemParameter.ID
    ItemParameter.ID_Label
    ItemParameter.PropertyChanged
    ServerTaskParameter.ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)
    ServerTaskParameter.AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask, IEntityUpdater)
    ServerTaskParameter.AllowAutoCreateOnLockedItems
    SerializedParam.GetParam<T>(string)
    SerializedParam.GetParam<T>(byte[])
    SerializedParam.GetParam(string)
    SerializedParam.GetParam(string, bool)
    SerializedParam.GetParam(byte[])
    SerializedParam.ToSerializedString()
    SerializedParam.ToSerializedBytes()
    SerializedParam.Clone()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Tasks.Parameters
    Assembly: LemonEdge.API.dll
    Syntax
    [DataContract]
    [ServerTaskParameters("Save document binary data", "E272734E-EEDC-4C9A-8F54-0832F522D904", DefaultForHasSaveProcessingTask = typeof(IDocument), Description = "Saves document binary data to the database, or a custom file share or storage account.")]
    public class DocumentSaveParameter : ItemParameter, ICloneable, INotifyPropertyChanged

    Constructors

    DocumentSaveParameter(IDocument)

    Declaration
    public DocumentSaveParameter(IDocument item)
    Parameters
    Type Name Description
    IDocument item

    Fields

    UNIQUE_TASK_ID

    The unique id of the document save server task

    Declaration
    public const string UNIQUE_TASK_ID = "E272734E-EEDC-4C9A-8F54-0832F522D904"
    Field Value
    Type Description
    string

    Methods

    CreateNewParam()

    Must be implemented by inheriting classes to provide a new instance of the current class type.

    Used when cloning this SerializedParam to create a new instance of the same type

    Declaration
    protected override SerializedParam CreateNewParam()
    Returns
    Type Description
    SerializedParam

    A new instance of the current SerializedParam type

    Overrides
    SerializedParam.CreateNewParam()

    DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)

    Indicates when this item is being saved from the client UI that the system should display the parameters for the task being created for user modification

    This allows the automatic integration of save popups with parameters relating to the item being saved

    Declaration
    public override bool DisplayUserParamOnSave(IHasSaveProcessingTask item, IEntityUpdater context)
    Parameters
    Type Name Description
    IHasSaveProcessingTask item

    The item being saved from the client UI

    IEntityUpdater context
    Returns
    Type Description
    bool

    True (the default) if the specified item should have the parameters for the task it automatically creates displayed to the user during the save

    Overrides
    ServerTaskParameter.DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)

    GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Returns a user friendly string for the type of task being processed that these parameters work against

    Declaration
    public override string GetUserFriendlyTaskInstanceIdentityInfo(IServerTask task)
    Parameters
    Type Name Description
    IServerTask task

    An instance of a task that these parameters work for

    Returns
    Type Description
    string

    A user friendly string for the type of task being processed that these parameters work against

    Overrides
    ServerTaskParameter.GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Implements

    ICloneable
    INotifyPropertyChanged

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.