Search Results for

    Show / Hide Table of Contents

    Class CustomObjectSaveParameter

    The server task parameters for the custom object calculation processs

    Inherits from the item server task parameter which records the id and label of the ICustomObject that was modified

    Commits any changes in the custom object to the database schema. Can only be done if the object is marked as LoadDynamically.
    Inheritance
    System.Object
    SerializedParam
    ServerTaskParameter
    ItemParameter
    CustomObjectSaveParameter
    Implements
    ICloneable
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ItemParameter.PropertyChanged
    ItemParameter.ID
    ItemParameter.ID_Label
    ItemParameter.OnPropChanged(String)
    ServerTaskParameter.AllowAutoCreateOnLockedItems
    SerializedParam.GetParam<T>(String)
    SerializedParam.GetParam<T>(Byte[])
    SerializedParam.GetParam(String)
    SerializedParam.GetParam(Byte[])
    SerializedParam.ToSerializedString()
    SerializedParam.ToSerializedBytes()
    SerializedParam.ICloneable.Clone()
    SerializedParam.ICloneable.CopyFromSource(Object)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.API.Tasks.Parameters
    Assembly: API.dll
    Syntax
    [DataContract]
    [ServerTaskParameters("Commit Custom Object To Database", "1B7A8C35-2B17-453D-A422-1A3193679332", DefaultForHasSaveProcessingTask = typeof(ICustomObject), Description = "Commits any changes in the custom object to the database schema. Can only be done if the object is marked as LoadDynamically.")]
    public class CustomObjectSaveParameter : ItemParameter, ICloneable, INotifyPropertyChanged

    Constructors

    CustomObjectSaveParameter()

    Creates a new custom object server task process parameter

    Declaration
    public CustomObjectSaveParameter()

    CustomObjectSaveParameter(ICustomObject)

    Creates a new custom object server task process parameter for the specified custom object

    Declaration
    public CustomObjectSaveParameter(ICustomObject item)
    Parameters
    Type Name Description
    ICustomObject item

    An ICustomObject this parameter will make the task run against

    Fields

    UNIQUE_TASK_ID

    The unique id of the custom object server task

    Declaration
    public const string UNIQUE_TASK_ID = "1B7A8C35-2B17-453D-A422-1A3193679332"
    Field Value
    Type Description
    System.String

    Properties

    CommitToDatabase

    Indicates this custom object should have all changes committe to the database

    Declaration
    public bool CommitToDatabase { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask)

    Should ony automatically allow saving without changes if the custom object is marked as LoadDynamically

    Declaration
    public override bool AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask item)
    Parameters
    Type Name Description
    IHasSaveProcessingTask item

    The custom object that has been modified

    Returns
    Type Description
    System.Boolean

    True if the custom object is marked as LoadDynamically

    Overrides
    ServerTaskParameter.AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask)

    Clone()

    Declaration
    public CustomObjectSaveParameter Clone()
    Returns
    Type Description
    CustomObjectSaveParameter

    CopyFromParam(SerializedParam)

    Declaration
    protected override void CopyFromParam(SerializedParam source)
    Parameters
    Type Name Description
    SerializedParam source
    Overrides
    ItemParameter.CopyFromParam(SerializedParam)

    CopyFromSource(CustomObjectSaveParameter)

    Declaration
    public void CopyFromSource(CustomObjectSaveParameter source)
    Parameters
    Type Name Description
    CustomObjectSaveParameter source

    CreateNewParam()

    Declaration
    protected override SerializedParam CreateNewParam()
    Returns
    Type Description
    SerializedParam
    Overrides
    SerializedParam.CreateNewParam()

    DisplayUserParamOnSave(IHasSaveProcessingTask)

    Should ony automatically display the task parameters during save if the custom object is marked as LoadDynamically

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

    The custom object that has been modified

    Returns
    Type Description
    System.Boolean

    True if the custom object is marked as LoadDynamically

    Overrides
    ServerTaskParameter.DisplayUserParamOnSave(IHasSaveProcessingTask)

    GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Returns that this is a custom object save recalculation task against the custom object

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

    The server task for processing the custom object to the database

    Returns
    Type Description
    System.String

    A string stating that this is a custom object save recalculation task against the custom object

    Overrides
    ServerTaskParameter.GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)

    Should ony automatically create a task if the custom object is marked as LoadDynamically

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

    The custom object that has been modified

    IEntityUpdater context

    The current context that it has been modified within

    Returns
    Type Description
    System.Boolean

    True if the custom object is marked as LoadDynamically

    Overrides
    ServerTaskParameter.ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)

    Implements

    ICloneable
    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.