Class Team
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class Team : BaseEntityWithPermissions, ITeam, IBaseEntityWithPermissions, ISetCopier, ICanBeLocked, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ITeam>, ISetCopierCloneAlterer
Constructors
Team()
Declaration
Properties
AdminPermissions
Indicates if this team has admin permissions and can always access all data.
This permission is locked to the default Admin Team and can not be altered in other teams.
Declaration
[ReadOnly]
public bool AdminPermissions { get; set; }
Property Value
CanApproveCanvasItems
Indicates if the team is allowed to approve canvas items
Declaration
[EnumDataType(typeof(CanApproveCanvasItems))]
public CanApproveCanvasItems CanApproveCanvasItems { get; set; }
Property Value
Declaration
[NotMapped]
public string CanApproveCanvasItems_Tooltip { get; set; }
Property Value
CanCancel
Indicates if users of this team can cancel transactions or not
Declaration
[EnumDataType(typeof(CanCancelTransactions))]
public CanCancelTransactions CanCancel { get; set; }
Property Value
Declaration
[NotMapped]
public string CanCancel_Tooltip { get; set; }
Property Value
CanEditSystemItems
Indicates if the team is allowed to edit items that are marked as being system items
Declaration
public bool CanEditSystemItems { get; set; }
Property Value
CanFinalizeTransactions
Indicates if the team is allowed to finalize transactions
Declaration
[EnumDataType(typeof(CanFinalizeTransactions))]
public CanFinalizeTransactions CanFinalizeTransactions { get; set; }
Property Value
Declaration
[NotMapped]
public string CanFinalizeTransactions_Tooltip { get; set; }
Property Value
CanImpersonateUsersForTasks
Can impersonate users to run tasks as
Declaration
public bool CanImpersonateUsersForTasks { get; set; }
Property Value
CanModifyLockedTransactions
Indicates if the team is allowed to modify locked (cancelled or finalized) transactions.
Declaration
[EnumDataType(typeof(CanModifyLockedTransactions))]
public CanModifyLockedTransactions CanModifyLockedTransactions { get; set; }
Property Value
Declaration
[NotMapped]
public string CanModifyLockedTransactions_Tooltip { get; set; }
Property Value
CanModifySQLWrappers
Indicates if team is allowed to modify code of sql wrapper
Declaration
public bool CanModifySQLWrappers { get; set; }
Property Value
CanRunClientImports
Indicates users of this team can run client imports. Typically only used for testing large imports on the task service. Running on a client can cause heavy use of the web service, and if the imports have errors cause incorrect diagnosis on the web service health
Declaration
public bool CanRunClientImports { get; set; }
Property Value
CopierCloneType
Declaration
public SetCopierCloneType CopierCloneType { get; set; }
Property Value
Description
A user friendly description of the team and its purpose
Declaration
[StringLength(2000)]
public string Description { get; set; }
Property Value
Locked
Indicates the current record is locked and can not be modified until it is unlocked.
Declaration
[Required]
public bool Locked { get; set; }
Property Value
Name
[Key] The user friendly unique name for a team
Declaration
[Unique]
[Required]
[StringLength(500)]
public string Name { get; set; }
Property Value
RunnableTasks
Indicates which tasks that require special permissions this team can run
Declaration
[EnumDataType(typeof(BulkTaskPermissions))]
public BulkTaskPermissions RunnableTasks { get; set; }
Property Value
Declaration
[NotMapped]
public string RunnableTasks_Tooltip { get; set; }
Property Value
ThreeLetterCode
The unique short name for the team that is used throughout the application
Declaration
[Unique]
[PropertyValidation("true", "MyItem.ThreeLetterCode.Length <= 3", "Length of short code must be less than or equal to 3")]
[StringLength(3)]
public string ThreeLetterCode { get; set; }
Property Value
Methods
AlterCopiedItem(IEntityUpdater, UserInfo, IReadOnlyCache, IBaseEntity)
A custom ability to alter this item when it is was copied by the user in the UI, not when it is being imported
Declaration
public Task AlterCopiedItem(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, IBaseEntity sourceItem)
Parameters
Returns
Type |
Description |
Task |
A task inidicating the finishing of this method
|
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(ITeam)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ITeam source)
Parameters
Type |
Name |
Description |
ITeam |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods