Interface ITeamDefaultPermission
The system entity for team default permissions, which defines the default permissions the parent ITeam get to any specified type of item in the system
See https://help.lemonedge.com/help/open-architecture/admin/teams/default-permissions-view.html for more information
Inherited Members
Namespace: LemonEdge.API.Entities.Administration
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.TeamDefaultPermissions, "dbo.LT_TeamDefaultPermissions", "TeamDefaultPermission", IsStandingDataEntity = true)]
[MultipleUnique(new string[] { "TeamID", "EntityID", "PermissionSafeID" })]
[DefaultEntityIcon(ImageType.UserPermission)]
[EntityIndex(Name = "DefaultPermissions", ColumnNames = new string[] { "TeamID", "EntityID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending, IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
public interface ITeamDefaultPermission : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, IPermissionChecker
Properties
CanCreate
Indicates this team has permissions to create new instances of entities of this type.
If they do not have this permission, the team will never be able to create new instances of records of this type through any function in the system be that the API, web services, applications, etc.
Declaration
[EntityProperty(SQLType.Bit, false)]
[DBTrackChanges]
bool CanCreate { get; set; }
Property Value
Type | Description |
---|---|
bool |
EntityID
[Key] Holds the entity type you want to assign default permissions for this team to.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
[EntityKeyProperty]
[RequiredNoDefaultIDValidation]
Guid EntityID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
PermissionSafeID
[Key] Holds the safe you want to assign default permissions for this team to.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityKeyProperty]
[EntityRelationship(EntityID.Safe, "ID", SingleJoinType.ZeroToOne, "Safe", "Default Permissions", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = false)]
Guid? PermissionSafeID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
TeamID
[Key] Links to ITeam. The parent team this default permission belongs to
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityKeyProperty]
[EntityRelationship(EntityID.Teams, "ID", SingleJoinType.One, "Team", "Default Permissions", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
Guid TeamID { get; set; }
Property Value
Type | Description |
---|---|
Guid |