Example #1
0
 public DocumentAssetAdminModulePermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Document Assets");
 }
Example #2
0
 public ImageAssetAdminModulePermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Image Assets");
 }
 public ImageAssetUpdatePermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Image Assets");
 }
Example #4
0
        public IEnumerable <IPermissionApplication> GetPermissions(DeleteUnstructuredDataDependenciesCommand command)
        {
            var entityDefinition = _entityDefinitionRepository.GetByCode(command.RootEntityDefinitionCode);

            EntityNotFoundException.ThrowIfNull(entityDefinition, command.RootEntityDefinitionCode);

            // Try and get a delete permission for the root entity.
            var permission = _permissionRepository.GetByEntityAndPermissionType(entityDefinition, CommonPermissionTypes.Delete("Entity"));

            if (permission != null)
            {
                yield return(permission);
            }
        }
Example #5
0
 public PageTemplateAdminModulePermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Page Templates");
 }
 public CofoundryUserAdminModulePermission()
 {
     EntityDefinition = new UserEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Cofoundry Users");
 }
 public PageTemplateCreatePermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.Create("Page Templates");
 }
Example #8
0
 public PageTemplateReadPermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Page Templates");
 }
 public SettingsAdminModulePermission()
 {
     EntityDefinition = new SettingsEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Settings");
 }
Example #10
0
 public PageDirectoryReadPermission()
 {
     EntityDefinition = new PageDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Page Directories");
 }
 public RewriteRuleCreatePermission()
 {
     EntityDefinition = new RewriteRuleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Create("Rewrite Rules");
 }
Example #12
0
 public CurrentUserAdminModulePermission()
 {
     EntityDefinition = new CurrentUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Current User Account");
 }
 public PageDirectoryAdminModulePermission()
 {
     EntityDefinition = new PageDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Page Directories");
 }
Example #14
0
        public IEnumerable <IPermissionApplication> GetPermissions(GetEntityDependencySummaryByRelatedEntityIdRangeQuery query)
        {
            var entityDefinition = _entityDefinitionRepository.GetRequiredByCode(query.EntityDefinitionCode);

            if (entityDefinition == null)
            {
                yield break;
            }

            var permission = _permissionRepository.GetByEntityAndPermissionType(entityDefinition, CommonPermissionTypes.Read("Entity"));

            if (permission != null)
            {
                yield return(permission);
            }
        }
 public CustomEntityReadPermission(ICustomEntityDefinition customEntityDefinition)
 {
     EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition);
     PermissionType   = CommonPermissionTypes.Read(customEntityDefinition.NamePlural);
 }
 public ImageAssetReadPermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Image Assets");
 }
Example #17
0
 public NonCofoundryUserDeletePermission()
 {
     EntityDefinition = new NonCofoundryUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Non Cofoundry Users");
 }
 public PageDeletePermission()
 {
     EntityDefinition = new PageEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Pages");
 }
Example #19
0
 public RewriteRuleReadPermission()
 {
     EntityDefinition = new RewriteRuleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Rewrite Rules");
 }
Example #20
0
 public CofoundryUserReadPermission()
 {
     EntityDefinition = new UserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Cofoundry Users");
 }
Example #21
0
 public CurrentUserUpdatePermission()
 {
     EntityDefinition = new CurrentUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Current User");
 }
 /// <summary>
 /// Constructor used internally by AuthorizePermissionAttribute.
 /// </summary>
 public CustomEntityDeletePermission()
 {
     PermissionType = CommonPermissionTypes.Delete("Not Set");
 }
 public RewriteRuleAdminModulePermission()
 {
     EntityDefinition = new RewriteRuleEntityDefinition();
     PermissionType   = CommonPermissionTypes.AdminModule("Rewrite Rules");
 }
 public CofoundryUserUpdatePermission()
 {
     EntityDefinition = new UserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Cofoundry Users");
 }
Example #25
0
 public DocumentAssetCreatePermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Create("Document Assets");
 }
 /// <summary>
 /// Constructor used internally by AuthorizePermissionAttribute.
 /// </summary>
 public CustomEntityUpdatePermission()
 {
     PermissionType = CommonPermissionTypes.Update("Not Set");
 }
Example #27
0
 public PageDirectoryCreatePermission()
 {
     EntityDefinition = new PageDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.Create("Page Directories");
 }
 /// <summary>
 /// Constructor used internally by AuthorizePermissionAttribute.
 /// </summary>
 public CustomEntityReadPermission()
 {
     PermissionType = CommonPermissionTypes.Read("Not Set");
 }
Example #29
0
 public RoleDeletePermission()
 {
     EntityDefinition = new RoleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Roles");
 }
Example #30
0
 public DocumentAssetReadPermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Document Assets");
 }