/// <summary> /// <see cref="ISspEntityRepository.SetEntitySspAllowed(Guid)"/> /// </summary> public void SetEntitySspAllowed(Guid entityUId) { var item = _entitySchemaManager.FindItemByUId(entityUId); if (IsEntitySspAllowed(item.Name)) { SetEntitySchemaPropertyEnabled(item, "IsSSPAvailable"); } }
public override bool CheckModuleReadingRights(Guid entitySchemaId) { var hiddenModuleList = new List <string> { "VwSysAdminUnit", "SysAdminOperation", "SysSettings" }; EntitySchemaManager entitySchemaManager = Page.Schema.SchemaManagerProvider.GetManager("EntitySchemaManager") as EntitySchemaManager; string schemaName = entitySchemaManager.FindItemByUId(entitySchemaId).Name; if (hiddenModuleList.Contains(schemaName)) { return(false); } return(base.CheckModuleReadingRights(entitySchemaId)); }
public override bool CheckModuleReadingRights(Guid entitySchemaId) { var hiddenModuleList = new List <string> { "VwSysAdminUnit", "SysAdminOperation", "SysSettings" }; if (Terrasoft.Configuration.FeatureUtilities.GetIsFeatureEnabled(UserConnection, "NewRightsManagementUI")) { hiddenModuleList.Add("VwAdministrativeObjects"); } EntitySchemaManager entitySchemaManager = Page.Schema.SchemaManagerProvider.GetManager("EntitySchemaManager") as EntitySchemaManager; string schemaName = entitySchemaManager.FindItemByUId(entitySchemaId).Name; if (hiddenModuleList.Contains(schemaName)) { return(false); } return(base.CheckModuleReadingRights(entitySchemaId)); }
/// <summary> /// Returns <see cref="ISchemaManagerItem"/> used by <paramref name="section"/>. /// </summary> /// <param name="section"><see cref="Section"/> instance.</param> /// <returns><see cref="ISchemaManagerItem"/> used by <paramref name="section"/>.</returns> protected ISchemaManagerItem GetSectionEntitySchemaItem(Section section) { return(EntitySchemaManager.FindItemByUId(section.EntityUId)); }