Search Results for

    Show / Hide Table of Contents

    Interface IDefaultWatcher

    The system entity for a Default Watcher, which automatically creates configured watchers against specified new items

    See https://web.lemonedge.com/help/default-watchers/ for more information

    Inherited Members
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.GetLabel(String)
    IBaseEntity.SetLabel(String, String)
    IBaseEntity.SetSilentLabel(String, String)
    System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    System.ComponentModel.INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(Object)
    ICloneableAsync.CopyFromSource(Object)
    ICanTrackProperties.HasTrackedPropertyChanged(String)
    ICanTrackProperties.OriginalTrackedPropertyValue(String)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(String)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities
    Assembly: API.dll
    Syntax
    [EntityDefinition(EntityID.DefaultWatcher, "dbo.LT_DefaultWatchers", "DefaultWatcher", IsStandingDataEntity = true, HelpURL = "default-watchers")]
    [DefaultEntityIcon(ImageType.Eye)]
    public interface IDefaultWatcher : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    CurrentRoleID

    Indicates to create a new Watcher attached to the new item with the current Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current role as a watcher.")]
    bool CurrentRoleID { get; set; }
    Property Value
    Type Description
    System.Boolean

    CurrentTeamID

    Indicates to create a new Watcher attached to the new item with the current Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current users team as a watcher.")]
    bool CurrentTeamID { get; set; }
    Property Value
    Type Description
    System.Boolean

    CurrentUserID

    Indicates to create a new Watcher attached to the new item with the current User set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current user as a watcher.")]
    bool CurrentUserID { get; set; }
    Property Value
    Type Description
    System.Boolean

    EntityTypeID

    [Key] The Entity Type to attach this Watcher to when new instances of it are created

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
    Guid EntityTypeID { get; set; }
    Property Value
    Type Description
    System.Guid

    RoleFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified role from the formula result.")]
    string RoleFormula { get; set; }
    Property Value
    Type Description
    System.String

    RoleID

    Links to IRole. Indicates to create a new Watcher attached to the new item with the specified Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Roles, "ID", SingleJoinType.ZeroToOne, "Role", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The role to add as a watcher.")]
    Guid? RoleID { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    TeamFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified team from the formula result.")]
    string TeamFormula { get; set; }
    Property Value
    Type Description
    System.String

    TeamID

    Links to ITeam. Indicates to create a new Watcher attached to the new item with the specified Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Teams, "ID", SingleJoinType.ZeroToOne, "Team", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The team to add as a watcher.")]
    Guid? TeamID { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    UserFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the User set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified user from the formula result.")]
    string UserFormula { get; set; }
    Property Value
    Type Description
    System.String

    UserID

    Links to IUser. Indicates to create a new Watcher attached to the new item with the specified User set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Users, "ID", SingleJoinType.ZeroToOne, "User", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The user to add as a watcher.")]
    Guid? UserID { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Guid>

    ValidFormula

    Only adds the defaults if this formual evaluates to true.

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Only adds the defaults if this formual evaluates to true.")]
    string ValidFormula { get; set; }
    Property Value
    Type Description
    System.String

    WatcherTypeID

    [Key] Links to IWatcherType. The Watcher Type that will be assigned to the new Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityRelationship(EntityID.WatcherType, "ID", SingleJoinType.One, "Watcher Type", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The watcher type.")]
    Guid WatcherTypeID { get; set; }
    Property Value
    Type Description
    System.Guid

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    IWatcher
    IWatcherType
    IWatcherNotification
    IWatcherNotificationListener
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.