public DocumentAssetAdminModulePermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.AdminModule("Document Assets"); }
public ImageAssetAdminModulePermission() { EntityDefinition = new ImageAssetEntityDefinition(); PermissionType = CommonPermissionTypes.AdminModule("Image Assets"); }
public ImageAssetUpdatePermission() { EntityDefinition = new ImageAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Image Assets"); }
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); } }
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"); }
public PageTemplateReadPermission() { EntityDefinition = new PageTemplateEntityDefinition(); PermissionType = CommonPermissionTypes.Read("Page Templates"); }
public SettingsAdminModulePermission() { EntityDefinition = new SettingsEntityDefinition(); PermissionType = CommonPermissionTypes.AdminModule("Settings"); }
public PageDirectoryReadPermission() { EntityDefinition = new PageDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.Read("Page Directories"); }
public RewriteRuleCreatePermission() { EntityDefinition = new RewriteRuleEntityDefinition(); PermissionType = CommonPermissionTypes.Create("Rewrite Rules"); }
public CurrentUserAdminModulePermission() { EntityDefinition = new CurrentUserEntityDefinition(); PermissionType = CommonPermissionTypes.AdminModule("Current User Account"); }
public PageDirectoryAdminModulePermission() { EntityDefinition = new PageDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.AdminModule("Page Directories"); }
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"); }
public NonCofoundryUserDeletePermission() { EntityDefinition = new NonCofoundryUserEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Non Cofoundry Users"); }
public PageDeletePermission() { EntityDefinition = new PageEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Pages"); }
public RewriteRuleReadPermission() { EntityDefinition = new RewriteRuleEntityDefinition(); PermissionType = CommonPermissionTypes.Read("Rewrite Rules"); }
public CofoundryUserReadPermission() { EntityDefinition = new UserEntityDefinition(); PermissionType = CommonPermissionTypes.Read("Cofoundry Users"); }
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"); }
public DocumentAssetCreatePermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Create("Document Assets"); }
/// <summary> /// Constructor used internally by AuthorizePermissionAttribute. /// </summary> public CustomEntityUpdatePermission() { PermissionType = CommonPermissionTypes.Update("Not Set"); }
public PageDirectoryCreatePermission() { EntityDefinition = new PageDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.Create("Page Directories"); }
/// <summary> /// Constructor used internally by AuthorizePermissionAttribute. /// </summary> public CustomEntityReadPermission() { PermissionType = CommonPermissionTypes.Read("Not Set"); }
public RoleDeletePermission() { EntityDefinition = new RoleEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Roles"); }
public DocumentAssetReadPermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Read("Document Assets"); }