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 RoleDeletePermission() { EntityDefinition = new RoleEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Roles"); }
public DocumentAssetDeletePermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Document Assets"); }
public WebDirectoryDeletePermission() { EntityDefinition = new WebDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Web Directories"); }
public NonCofoundryUserDeletePermission() { EntityDefinition = new NonCofoundryUserEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Non Cofoundry Users"); }
public CustomEntityDeletePermission(ICustomEntityDefinition customEntityDefinition) { EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition); PermissionType = CommonPermissionTypes.Delete(customEntityDefinition.NamePlural); }
public PageDeletePermission() { EntityDefinition = new PageEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Pages"); }
public ImageAssetDeletePermission() { EntityDefinition = new ImageAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Delete("Image Assets"); }