Skip to content
Merged

Dev #2516

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
633bbc3
Merge pull request #1875 from BEXIS2/master
DavidBlaa Sep 26, 2024
56d584d
Merge pull request #1880 from BEXIS2/rc
DavidBlaa Sep 27, 2024
8e6ed5e
Merge pull request #1885 from BEXIS2/master
DavidBlaa Sep 27, 2024
62d0402
Merge pull request #1889 from BEXIS2/master
DavidBlaa Oct 1, 2024
871dd97
Merge pull request #2083 from BEXIS2/rc
DavidBlaa Apr 4, 2025
1f3a6ef
Merge pull request #2093 from BEXIS2/master
DavidBlaa Apr 22, 2025
8cd9bb3
Merge pull request #2108 from BEXIS2/master
DavidBlaa May 6, 2025
c8dd596
Merge pull request #2125 from BEXIS2/master
DavidBlaa May 26, 2025
552f866
Merge pull request #2194 from BEXIS2/rc
DavidBlaa Sep 8, 2025
4eb6c83
#2197 create entity extension with store and seed data
DavidBlaa Sep 10, 2025
9ae9502
#2197 update workspace
DavidBlaa Sep 10, 2025
551fe26
#2196 add properties to entity reference, refactor all functions , mo…
DavidBlaa Sep 10, 2025
19e058d
Merge pull request #2207 from BEXIS2/rc
DavidBlaa Sep 11, 2025
cbfd6b9
#2206 enhance entity temaple with extnsions list
DavidBlaa Sep 11, 2025
0c83670
#2206 fix typing issue in entity template model
DavidBlaa Sep 11, 2025
8dc0df4
Merge pull request #2208 from BEXIS2/dev
DavidBlaa Sep 12, 2025
90addd8
#2209 add extension update into edit of a entity
DavidBlaa Sep 12, 2025
176f0c2
Merge branch '2195-bexis2-entity-extensions-streamlining-the-workflow…
DavidBlaa Sep 12, 2025
3957db5
#2206 refactor extension selection by template
DavidBlaa Sep 19, 2025
89a31f5
Merge pull request #2225 from BEXIS2/2195-bexis2-entity-extensions-st…
DavidBlaa Sep 19, 2025
3118863
#2195 update working branch
DavidBlaa Sep 30, 2025
523dc74
Merge pull request #2230 from BEXIS2/2195-bexis2-entity-extensions-st…
DavidBlaa Sep 30, 2025
258e88b
#2195 remove dependency from smm Microsoft.Web.Infrastructure
DavidBlaa Oct 9, 2025
1289632
#2233 hide options when extension is created as template
DavidBlaa Oct 10, 2025
5acf1d7
#2195 hide extention from create view
DavidBlaa Oct 10, 2025
78d3835
#2200 hide extensions from serach index
DavidBlaa Oct 10, 2025
415268c
#2209 change edit page because of hook update issues with extensions
DavidBlaa Oct 20, 2025
2f3e151
Merge pull request #2234 from BEXIS2/2195-bexis2-entity-extensions-st…
DavidBlaa Oct 20, 2025
70b36d1
#2235 add function to delete extensions
DavidBlaa Oct 21, 2025
3de4309
Merge pull request #2237 from BEXIS2/2195-bexis2-entity-extensions-st…
DavidBlaa Oct 21, 2025
4fa4d09
#2195 fix issue from merging
DavidBlaa Oct 23, 2025
15fb213
#2195 try fixing pipeline with ssm module changes
DavidBlaa Oct 23, 2025
7735cb1
#2195 reinstall nuget packages to fix msbuild error in smm
DavidBlaa Oct 23, 2025
0caa3f1
#2195 merge from rc to dev
DavidBlaa Oct 28, 2025
e0bc8c9
#2195 changes after merge
DavidBlaa Oct 28, 2025
6bc4130
Merge pull request #2250 from BEXIS2/rc
DavidBlaa Oct 28, 2025
b031897
Merge pull request #2254 from BEXIS2/rc
DavidBlaa Nov 3, 2025
828066e
#2256 add links, publish and permissions hook to edit view
DavidBlaa Nov 11, 2025
00e16af
Merge remote-tracking branch 'origin/rc' into dev
DavidBlaa Nov 11, 2025
ce15e68
Merge branch 'dev' of https://github.com/BEXIS2/Core into dev
DavidBlaa Nov 11, 2025
fb1d2c1
#2209 fix issue with extension seed data import schema
DavidBlaa Nov 13, 2025
d5941fe
#2265 hide hooks for extensions
DavidBlaa Nov 14, 2025
c3d3e09
#2195 update to 4.2.0
DavidBlaa Nov 27, 2025
2cb704b
#2195 add label to dataset edit view
DavidBlaa Nov 27, 2025
8d2910a
Merge remote-tracking branch 'origin/rc' into dev
DavidBlaa Nov 27, 2025
194732c
#1744 corrected typos in some comments
aostrow Nov 28, 2025
950f7ac
Merge pull request #2302 from BEXIS2/rc
DavidBlaa Dec 9, 2025
0a1fe2f
Merge pull request #2329 from BEXIS2/rc
DavidBlaa Jan 12, 2026
2441214
#2195 start integrate place for new view and small inprovments
DavidBlaa Jan 20, 2026
94ee24f
#2195 update from 4.2.1
DavidBlaa Jan 20, 2026
ae06b0f
Merge remote-tracking branch 'origin/dev' into dev
DavidBlaa Jun 16, 2026
452136e
#2195 merge from rc to dev
DavidBlaa Jun 16, 2026
39bfe58
#2195 changes after merge from rc to dev
DavidBlaa Jun 16, 2026
aaf5b7b
Merge remote-tracking branch 'origin/rc' into dev
DavidBlaa Jun 16, 2026
cac7d86
Merge remote-tracking branch 'origin/rc' into dev
DavidBlaa Jun 16, 2026
7913be1
Merge pull request #2509 from BEXIS2/rc
DavidBlaa Jun 18, 2026
70811f6
Merge pull request #2512 from BEXIS2/rc
DavidBlaa Jun 19, 2026
32789ce
Merge pull request #2514 from BEXIS2/rc
DavidBlaa Jun 22, 2026
48f0242
#907 set up loading the view dataset page with model
DavidBlaa Jun 22, 2026
ead8e6a
Merge pull request #2515 from BEXIS2/rc
DavidBlaa Jun 22, 2026
66ffbcd
Merge branch 'dev' of https://github.com/BEXIS2/Core into dev
DavidBlaa Jun 22, 2026
ee27300
#907 add citation to view if exist
DavidBlaa Jun 23, 2026
8d8d5ea
#2195 update workspace
DavidBlaa Jun 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BExIS++.sln
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,8 @@ Global
{C1AE3004-853A-4CCF-9099-AE919C6121C8} = {96384857-88D4-4282-8EFD-FE8FCB0319B7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35;packages\Unity.2.1.505.2\lib\NET35
SolutionGuid = {9B6E4921-8EBA-487D-A098-3E473A0EAC64}
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35;packages\Unity.2.1.505.2\lib\NET35
EndGlobalSection
GlobalSection(SubversionScc) = preSolution
Svn-Managed = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class EntityReference : BaseEntity
public virtual int TargetVersion { get; set; }
public virtual string Context { get; set; }
public virtual string ReferenceType { get; set; }
public virtual string LinkType { get; set; }
public virtual string Category { get; set; }
public virtual DateTime CreationDate { get; set; }

public EntityReference()
Expand All @@ -37,9 +39,14 @@ public EntityReference()
TargetEntityId = 0;
Context = "";
ReferenceType = "";
CreationDate = DateTime.Now;
LinkType = "";
Category = "";
SourceVersion = 0;
TargetVersion = 0;
}

public EntityReference(long sourceId, long sourceEntityId, int sourceVersion, long targetId, long targetEntityId, int targetVersion, string context, string type, DateTime creationDate)
public EntityReference(long sourceId, long sourceEntityId, int sourceVersion, long targetId, long targetEntityId, int targetVersion, string context, string type, DateTime creationDate, string linkType , string category)
{
SourceId = sourceId;
SourceEntityId = sourceEntityId;
Expand All @@ -50,6 +57,8 @@ public EntityReference(long sourceId, long sourceEntityId, int sourceVersion, lo
Context = context;
ReferenceType = type;
CreationDate = creationDate;
Category = category;
LinkType = linkType;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

<property name="Context" type="string" />
<property name="ReferenceType" type="string" />
<property name="LinkType" type="string" />
<property name="Category" type="string" />
<property name="CreationDate" type="DateTime" />
</class>
</hibernate-mapping>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BExIS.Security.Entities.Objects;
using System;
using System.Collections.Generic;
using System.Linq;
using Vaiona.Persistence.Api;

Expand Down Expand Up @@ -42,7 +43,9 @@ public bool Exist(EntityReference entityReference, bool includeVersion = false,
r.TargetEntityId.Equals(entityReference.TargetEntityId) &&
r.TargetVersion.Equals(entityReference.TargetVersion) &&
r.Context.Equals(entityReference.Context) &&
r.ReferenceType.Equals(entityReference.ReferenceType)
r.ReferenceType.Equals(entityReference.ReferenceType) &&
r.LinkType.Equals(entityReference.LinkType) &&
r.Category.Equals(entityReference.Category)

).Count() == 0) return false;
}
Expand All @@ -55,7 +58,10 @@ public bool Exist(EntityReference entityReference, bool includeVersion = false,
r.TargetEntityId.Equals(entityReference.TargetEntityId) &&
r.TargetVersion.Equals(entityReference.TargetVersion) &&
r.Context.Equals(entityReference.Context) &&
r.ReferenceType.Equals(entityReference.ReferenceType)
r.ReferenceType.Equals(entityReference.ReferenceType) &&
r.LinkType.Equals(entityReference.LinkType) &&
r.Category.Equals(entityReference.Category)


).Count() == 0) return false;
}
Expand All @@ -67,7 +73,10 @@ public bool Exist(EntityReference entityReference, bool includeVersion = false,
r.TargetId.Equals(entityReference.TargetId) &&
r.TargetEntityId.Equals(entityReference.TargetEntityId) &&
r.Context.Equals(entityReference.Context) &&
r.ReferenceType.Equals(entityReference.ReferenceType)
r.ReferenceType.Equals(entityReference.ReferenceType) &&
r.LinkType.Equals(entityReference.LinkType) &&
r.Category.Equals(entityReference.Category)

).Count() == 0) return false;
}

Expand All @@ -85,9 +94,9 @@ public void Create(EntityReference entityReference)
}
}

public EntityReference Create(long sourceId, long sourceEntityId, int sourceEntityVersion, long targetId, long targetEntityId, int targetEntityVersion, string context, string type)
public EntityReference Create(long sourceId, long sourceEntityId, int sourceEntityVersion, long targetId, long targetEntityId, int targetEntityVersion, string context, string type, string linkType, string category)
{
EntityReference entityReference = new EntityReference(sourceId, sourceEntityId, sourceEntityVersion, targetId, targetEntityId, targetEntityVersion, context, type, DateTime.Now);
EntityReference entityReference = new EntityReference(sourceId, sourceEntityId, sourceEntityVersion, targetId, targetEntityId, targetEntityVersion, context, type, DateTime.Now, linkType, category);

using (var uow = this.GetUnitOfWork())
{
Expand All @@ -110,6 +119,17 @@ public void Delete(long id)
}
}

public void Delete(IEnumerable<long> ids)
{
using (var uow = this.GetUnitOfWork())
{
var repo = uow.GetRepository<EntityReference>();
var entityReferences = repo.Query(l=> ids.Contains(l.Id)).Select(l=>l.Id).ToList();
repo.Delete(entityReferences);
uow.Commit();
}
}

public void Delete(EntityReference entityReference)
{
using (var uow = this.GetUnitOfWork())
Expand Down
11 changes: 11 additions & 0 deletions Components/DLM/BExIS.Dlm.Entities/Data/Dataset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
/// </summary>
namespace BExIS.Dlm.Entities.Data
{
/// <summary>
/// This is a list fo currently used entity types in BExIS. It is used to identify the type of the entity in a generic way.
/// </summary>
public enum EntityType
{
Dataset = 1,
Publication = 2,
Sample = 3,
Extension = 4,
}

/// <summary>
///
/// </summary>
Expand Down
45 changes: 42 additions & 3 deletions Components/DLM/BExIS.Dlm.Entities/Data/EntityTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public virtual List<int> MetadataFields
public virtual bool MetadataInvalidSaveMode { get; set; }

/// <summary>
/// should the user be able to save the metadata if not alle mandatory are filled correct
/// if true - also not valid metadat will be stored
/// if false - only valid metadata will be stored
/// should the user be able to select a datastructure
/// </summary>
public virtual bool HasDatastructure { get; set; }

Expand All @@ -84,6 +82,27 @@ public virtual List<long> DatastructureList
JsonDatastructureList = JsonConvert.SerializeObject(value);
}
}
/// <summary>
/// should the user be able to select a extension
/// </summary>
public virtual bool HasExtension { get; set; }

/// <summary>
/// List of available Extensions
/// </summary>
public virtual string JsonExtensionList { get; set; }

public virtual List<ExtensionType> ExtensionList
{
get
{
return JsonConvert.DeserializeObject<List<ExtensionType>>(JsonExtensionList);
}
set
{
JsonExtensionList = JsonConvert.SerializeObject(value);
}
}

/// <summary>
///
Expand Down Expand Up @@ -174,13 +193,16 @@ public EntityTemplate()
PermissionGroups = new PermissionsType();
NotificationGroups = new List<long>();
MetadataInvalidSaveMode = true;
ExtensionList = new List<ExtensionType>();

Order = 0;
JsonAllowedFileTypes = "";
JsonDatastructureList = "";
JsonDisabledHooks = "";
JsonMetadataFields = "";
JsonPermissionGroups = "";
JsonNotificationGroups = "";
JsonExtensionList = "";
}

public EntityTemplate(string name, string description, Entity entityType, MetadataStructure.MetadataStructure metadataStructure)
Expand All @@ -192,6 +214,7 @@ public EntityTemplate(string name, string description, Entity entityType, Metada
AllowedFileTypes = new List<string>();
DisabledHooks = new List<string>();
DatastructureList = new List<long>();
ExtensionList = new List<ExtensionType>();
MetadataFields = new List<int>();
PermissionGroups = new PermissionsType();
NotificationGroups = new List<long>();
Expand All @@ -203,6 +226,7 @@ public EntityTemplate(string name, string description, Entity entityType, Metada
JsonMetadataFields = "";
JsonPermissionGroups = "";
JsonNotificationGroups = "";
JsonExtensionList = "";
}
}

Expand All @@ -221,4 +245,19 @@ public PermissionsType()
ViewEdit = new List<long>();
}
}

public class ExtensionType
{
public long TemplateId { get; set; }
public string ReferenceType { get; set; }
public bool Unique { get; set; }


public ExtensionType()
{
TemplateId = 0;
ReferenceType = "";
Unique = true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
<column name="JsonDatastructureList" />
</property>

<property name="HasExtension" type="Boolean">
<column name="HasExtension" />
</property>

<property name="JsonExtensionList" type="string">
<column name="JsonExtensionList" />
</property>

<property name="JsonAllowedFileTypes" type="string">
<column name="JsonAllowedFileTypes" />
</property>
Expand Down
1 change: 1 addition & 0 deletions Components/UI/BExIS.UI/BExIS.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<Compile Include="Hooks\View.cs" />
<Compile Include="Models\DataTable.cs" />
<Compile Include="Models\EntitySelectorModel.cs" />
<Compile Include="Models\ExtensionItem.cs" />
<Compile Include="Models\FileUploader.cs" />
<Compile Include="Models\ListItem.cs" />
<Compile Include="Models\Menu.cs" />
Expand Down
18 changes: 18 additions & 0 deletions Components/UI/BExIS.UI/Models/ExtensionItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BExIS.UI.Models
{
public class ExtensionItem
{
public long Id { get; set; }
public int Version { get; set; }
public string Title { get; set; }

public string LinkType { get; set; }
public string ReferenceType { get; set; }
}
}
40 changes: 40 additions & 0 deletions Components/UI/BExIS.UI/Models/ReferenceModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class ReferenceModel

public string Context { get; set; }
public string ReferenceType { get; set; }
public string LinkType { get; set; }
public string Category { get; set; }

public ReferenceModel()
{
Expand All @@ -48,6 +50,8 @@ public ReferenceModel()
Source = new ReferenceElementModel();
Context = "";
ReferenceType = "";
LinkType = "";
Category = "";
}
}

Expand Down Expand Up @@ -100,6 +104,7 @@ public class CreateSimpleReferenceModel
[Required]
public String ReferenceType { get; set; }


public CreateSimpleReferenceModel()
{
Context = "";
Expand All @@ -113,4 +118,39 @@ public CreateSimpleReferenceModel(long sourceId, long sourceTypeId, int sourceVe
Context = "";
}
}

public class ReferenceConfig
{
public List<ReferenceConfigElement> ReferenceTypes { get; set; }
public List<string> EntityWhiteList { get; set; }

public ReferenceConfig()
{
ReferenceTypes = new List<ReferenceConfigElement>();
EntityWhiteList = new List<string>();
}
}

public class ReferenceConfigElement
{
/*
"description": "has dwc:Event extension",
"referenceType": "HasEvent",
"linkType": "extension",
"category": "extension"
},
*/
public string ReferenceType { get; set; }
public string Description { get; set; }
public string LinkType { get; set; }
public string Category { get; set; }

public ReferenceConfigElement()
{
ReferenceType="";
Description = "";
LinkType = "";
Category = "";
}
}
}
3 changes: 3 additions & 0 deletions Components/Utils/BExIS.Utils.Data/BExIS.Utils.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<Reference Include="Microsoft.Web.Infrastructure, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Web.Infrastructure.2.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down
Loading
Loading