Пример #1
0
        /// <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));
        }
Пример #3
0
        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));
        }
Пример #4
0
 /// <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));
 }